예제 #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 VisitFormalList(ASTFormalList n)
 {
     if (!n.IsEmpty)
     {
         n.Formal.Visit(this);
         n.Tail.Visit(this);
     }
 }
예제 #4
0
 public ASTFormalList(ASTFormal formal, ASTFormalList tail)
 {
     IsEmpty = false;
     Formal  = formal;
     Tail    = tail;
 }