public ConstructorNode(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code) { super("<init>",modifiers,ClassHelper.VOID_TYPE,parameters,exceptions,code); // This variable scope is thrown out and replaced with a different one during semantic analysis. VariableScope scope = new VariableScope(); for (int i = 0; i < parameters.length; i++) { scope.putDeclaredVariable(parameters[i]); } this.setVariableScope(scope); }
public ConstructorNode(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code) { super("<init>",modifiers,ClassHelper.VOID_TYPE,parameters,exceptions,code); VariableScope scope = new VariableScope(); for (int i = 0; i < parameters.length; i++) { scope.putDeclaredVariable(parameters[i]); } this.setVariableScope(scope); }
public ConstructorNode(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code) { super("<init>",modifiers,ClassHelper.VOID_TYPE,parameters,exceptions,code); VariableScope scope = new VariableScope(); for (int i = 0; i < parameters.length; i++) { scope.putDeclaredVariable(parameters[i]); } this.setVariableScope(scope); }
public ConstructorNode(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code) { super("<init>",modifiers,ClassHelper.VOID_TYPE,parameters,exceptions,code); // This variable scope is thrown out and replaced with a different one during semantic analysis. VariableScope scope = new VariableScope(); for (int i = 0; i < parameters.length; i++) { scope.putDeclaredVariable(parameters[i]); } this.setVariableScope(scope); }
public ConstructorNode(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code) { super("<init>",modifiers,ClassHelper.VOID_TYPE,parameters,exceptions,code); VariableScope scope = new VariableScope(); for (int i = 0; i < parameters.length; i++) { scope.putDeclaredVariable(parameters[i]); } this.setVariableScope(scope); }