Beispiel #1
0
 public ASTDeclarationCtor(ASTModifierList accessModifiers, String name, ASTFormalList formals, ASTStatementList body)
 {
     Modifiers = accessModifiers;
     Name      = name;
     Formals   = formals;
     Body      = body;
 }
Beispiel #2
0
 public ASTDeclarationMethod(ASTModifierList accessModifiers, ASTType returnType, String name, ASTFormalList formals, ASTStatementList body)
 {
     Modifiers  = accessModifiers;
     ReturnType = returnType;
     Name       = name;
     Formals    = formals;
     Body       = body;
 }
Beispiel #3
0
 public virtual void VisitFormalList(ASTFormalList n)
 {
     if (!n.IsEmpty)
     {
         n.Formal.Visit(this);
         n.Tail.Visit(this);
     }
 }
Beispiel #4
0
 public ASTFormalList(ASTFormal formal, ASTFormalList tail)
 {
     IsEmpty = false;
     Formal  = formal;
     Tail    = tail;
 }