Example #1
0
 public Block(VarDeclaration[] varDeclarations, Statement[] statements)
 {
     VarDeclarations = varDeclarations;
     Statements = statements;
     AddChildren(varDeclarations);
     AddChildren(statements);
 }
Example #2
0
 public Program(VarDeclaration[] varDeclarations, FuncDeclaration[] funcDeclarations)
 {
     VarDeclarations = varDeclarations;
     FuncDeclarations = funcDeclarations;
     AddChildren(VarDeclarations);
     AddChildren(FuncDeclarations);
 }
Example #3
0
 private Type GetVarType(VarDeclaration declaration)
 {
     return GetType(declaration.Type, declaration is ArrayDeclaration);
 }