@Override public DefinitionBase getDefinition() { return super.getDefinition(); }
@Override public DefinitionBase getDefinition() { return super.getDefinition(); }
public InstructionList reduce_typedBindableVariableDecl(IASNode iNode, Name name, Binding var_type, Vector<InstructionList> chained_decls) { BaseVariableNode vn = (BaseVariableNode)iNode; currentScope.getMethodBodySemanticChecker().checkBindableVariableDeclaration(iNode, vn.getDefinition()); InstructionList result = createInstructionList(iNode); Binding var = currentScope.resolveName((IdentifierNode)vn.getNameExpressionNode()); currentScope.makeBindableVariable(var, var_type.getName(), vn.getMetaInfos()); for ( InstructionList decl: chained_decls ) result.addAll(decl); return result; } public InstructionList reduce_typedBindableVariableDeclWithInitializer(IASNode iNode, Name var_name, Binding var_type, InstructionList var_initializer, Vector<InstructionList> chained_decls)
public InstructionList reduce_typedBindableVariableDecl(IASNode iNode, Name name, Binding var_type, Vector<InstructionList> chained_decls) { BaseVariableNode vn = (BaseVariableNode)iNode; currentScope.getMethodBodySemanticChecker().checkBindableVariableDeclaration(iNode, vn.getDefinition()); InstructionList result = createInstructionList(iNode); Binding var = currentScope.resolveName((IdentifierNode)vn.getNameExpressionNode()); currentScope.makeBindableVariable(var, var_type.getName(), vn.getMetaInfos()); for ( InstructionList decl: chained_decls ) result.addAll(decl); return result; } public InstructionList reduce_typedBindableVariableDeclWithInitializer(IASNode iNode, Name var_name, Binding var_type, InstructionList var_initializer, Vector<InstructionList> chained_decls)
public InstructionList reduce_typedBindableVariableDeclWithInitializer(IASNode iNode, Name var_name, Binding var_type, InstructionList var_initializer, Vector<InstructionList> chained_decls) { BaseVariableNode vn = (BaseVariableNode)iNode; currentScope.getMethodBodySemanticChecker().checkBindableVariableDeclaration(iNode, vn.getDefinition()); Binding var = currentScope.resolveName((IdentifierNode)vn.getNameExpressionNode()); currentScope.makeBindableVariable(var, var_type.getName(), vn.getMetaInfos()); // pass in null as definition so the assignment goes to the backing var and not the setter // maybe we'll have to get the actual var def someday. InstructionList result = generateAssignment(iNode, new Binding(iNode, BindableHelper.getBackingPropertyName(var_name), null), var_initializer); for ( InstructionList decl: chained_decls ) result.addAll(decl); return result; } public Binding reduce_typedVariableExpression(IASNode iNode, Name var_name, Binding var_type)
public InstructionList reduce_typedBindableVariableDeclWithInitializer(IASNode iNode, Name var_name, Binding var_type, InstructionList var_initializer, Vector<InstructionList> chained_decls) { BaseVariableNode vn = (BaseVariableNode)iNode; currentScope.getMethodBodySemanticChecker().checkBindableVariableDeclaration(iNode, vn.getDefinition()); Binding var = currentScope.resolveName((IdentifierNode)vn.getNameExpressionNode()); currentScope.makeBindableVariable(var, var_type.getName(), vn.getMetaInfos()); // pass in null as definition so the assignment goes to the backing var and not the setter // maybe we'll have to get the actual var def someday. InstructionList result = generateAssignment(iNode, new Binding(iNode, BindableHelper.getBackingPropertyName(var_name), null), var_initializer); for ( InstructionList decl: chained_decls ) result.addAll(decl); return result; } public Binding reduce_typedVariableExpression(IASNode iNode, Name var_name, Binding var_type)