public MethodDecl(TypeDecl typeDeclaration, Token methodId, List <VarDecl> variables, List <StatementDecl> statements, ExpressionDecl expression) : base(NonTermType.Method) { TypeDeclaration = typeDeclaration; MethodId = methodId; Variables = variables; Statements = statements; Expression = expression; }
public VarDecl(TypeDecl typeDeclaration, Token id) : base(NonTermType.Variable) { TypeDeclaration = typeDeclaration; Id = id; }