예제 #1
0
 public ASTDeclarationCtor(ASTModifierList accessModifiers, String name, ASTFormalList formals, ASTStatementList body)
 {
     Modifiers = accessModifiers;
     Name      = name;
     Formals   = formals;
     Body      = body;
 }
예제 #2
0
 public ASTDeclarationMethod(ASTModifierList accessModifiers, ASTType returnType, String name, ASTFormalList formals, ASTStatementList body)
 {
     Modifiers  = accessModifiers;
     ReturnType = returnType;
     Name       = name;
     Formals    = formals;
     Body       = body;
 }
예제 #3
0
 public virtual void VisitStatementList(ASTStatementList n)
 {
     if (!n.IsEmpty)
     {
         n.Statement.Visit(this);
         n.Tail.Visit(this);
     }
 }
예제 #4
0
 public ASTStatementList(ASTStatement statement, ASTStatementList tail)
 {
     IsEmpty   = false;
     Statement = statement;
     Tail      = tail;
 }