ESCGrammarStmts.Block
Extends: ESCGrammarStmt
Description
Represents a block of statements in a script.
Members
Methods
init
func init(statements: Array) -> void
Initialization method. Must be called after instantiation.
Parameters
Name |
Type |
Description |
Required? |
|---|---|---|---|
statements |
|
Statements contained within the block body. |
yes |
Returns
Returns nothing.
get_statements
func get_statements() -> Array
The statements contained in this block as an array.
Parameters
None.
Returns
Returns the statements contained in this block as an array. (Array)
accept
func accept(visitor: Variant) -> Variant
Method to invoke visitor-specific code.
Parameters
Name |
Type |
Description |
Required? |
|---|---|---|---|
visitor |
|
Visitor instance invoked to process this statement. |
yes |
Returns
Returns nothing.