The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
|
Encapsulates a block of statements. More...
Public Member Functions | |
Block (Location location) | |
Constructor of Block More... | |
Block (List< Statement > stats, Location location) | |
Constructor of Block More... | |
void | AddStatement (Statement statement) |
Add a new statement to the end of the block. More... | |
void | AddStatementToTheBeginning (Statement statement) |
Add a new statement. More... | |
void | AddStatementAtIndex (Statement statement, int index) |
Add a new statement at the specified index. More... | |
int | SearchPosition (string id) |
Searches the identifier and returns its position. More... | |
Statement | GetStatementElement (int index) |
Gets the element stored in the specified index. More... | |
override Object | Accept (Visitor v, Object o) |
Accept method of a concrete visitor. More... | |
![]() | |
override object | AcceptOperation (AstOperation op, object arg) |
Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically More... | |
![]() | |
override bool | Equals (object obj) |
AntLR compares Nodes with the class name. This is not correct for our purposes. More... | |
override int | GetHashCode () |
Properties | |
int | StatementCount [get] |
Gets the number of statements. More... | |
![]() | |
Location | Location [get] |
Additional Inherited Members | |
![]() | |
Statement (Location location) | |
Protected constructor of Statement. More... | |
![]() | |
AstNode (Location location) | |
Protected constructor of NodeAst More... | |
![]() | |
Location | location |
Location: Encapsulates in one object the line, column and filename More... | |
Encapsulates a block of statements.
Inheritance: Statement. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].
AST.Block.Block | ( | Location | location | ) |
|
virtual |
Accept method of a concrete visitor.
v | Concrete visitor |
o | Optional information to use in the visit. |
Implements AST.AstNode.
void AST.Block.AddStatement | ( | Statement | statement | ) |
void AST.Block.AddStatementAtIndex | ( | Statement | statement, |
int | index | ||
) |
void AST.Block.AddStatementToTheBeginning | ( | Statement | statement | ) |
Statement AST.Block.GetStatementElement | ( | int | index | ) |
int AST.Block.SearchPosition | ( | string | id | ) |
|
get |