コード例 #1
0
ファイル: MethodDeclNode.cs プロジェクト: ssarangi/minijava
 public MethodDeclNode(TypeNode typeNode, IdentifierNode identifierNode, ParamDeclListNode paramListNode, VariableDeclListNode variableListNode, StatementListNode statementListNode, int lineNumber)
 {
     this.methodType = typeNode;
     this.methodName = identifierNode;
     this.paramDeclList = paramListNode;
     this.variableDeclList = variableListNode;
     this.statementList = statementListNode;
     this.lineNumber = lineNumber;
 }
コード例 #2
0
 public MethodDeclNode(TypeNode typeNode, IdentifierNode identifierNode, ParamDeclListNode paramListNode, VariableDeclListNode variableListNode, StatementListNode statementListNode, int lineNumber)
 {
     this.methodType       = typeNode;
     this.methodName       = identifierNode;
     this.paramDeclList    = paramListNode;
     this.variableDeclList = variableListNode;
     this.statementList    = statementListNode;
     this.lineNumber       = lineNumber;
 }
コード例 #3
0
 public StatementBlockNode(StatementListNode statementListNode, int lineNumber)
 {
     this.statementList = statementListNode;
     this.lineNumber    = lineNumber;
 }
コード例 #4
0
 public StatementBlockNode(StatementListNode statementListNode, int lineNumber)
 {
     this.statementList = statementListNode;
     this.lineNumber = lineNumber;
 }