StatementHolder

This interface denotes an AST node that can contain code. This code is stored as statements. This includes Translation units namespaces and classes as some languages, mainly scripting languages allow code placement outside explicit functions.

The reason for not only using a statement property that encapsulates all code in an implicit compound statements is that code can be distributed between functions and an encapsulating compound statement would imply a block of code with a code region containing only the statements.

Inheritors

Properties

Link copied to clipboard

List of statements as property edges.

Link copied to clipboard

Virtual property to access statementEdges without property edges.

Functions

Link copied to clipboard
open operator override fun plusAssign(node: Statement)

Adds a Node to the list of "held" nodes.

Link copied to clipboard
open override fun replace(old: Statement, new: Statement): Boolean

Replaces the existing node specified in old with the one in new. Implementation how to do that might be specific to the holder.