public boolean exitArgumentDeclaration(ArgumentDeclaration ast, TScope scope) { if (ASSIT_ARGUMENT && ast.getName() != null) { if (fData.pretreatment) { if (fData.selection == ast) { // String name=GrammarUtil.getArgumentName(ast.getName()); // TScope scope=fData.processor.getCurrentWalkControler().getDataScope(); // DataReference<ArgumentDeclaration, ISqlTypeDefine> ref=scope.getArgument(name); fData.target = new SelectionTargetData<TScope>(ast, scope); } } else { if (fData.target != null && fData.target.ast == ast) { fData.assit(ast.getPosition(), fData.target); } } } return false; }
public boolean exitArgumentReference(ArgumentReference ast, TScope scope) { if (ASSIT_ARGUMENT && ast.getArgumentName() != null) { if (fData.pretreatment) { if (fData.selection == ast) { String name = DnaSqlUtils.getArgumentName(ast.getArgumentName()); // TScope scope=fData.processor.getCurrentWalkControler().getDataScope(); DataReference<ArgumentDeclaration, ISqlTypeDefine> ref = scope.getArgument(name); if (ref != null) { fData.target = new SelectionTargetData<TScope>(ref.ast, scope); } } } else { if (fData.target != null && (fData.target.ast instanceof ArgumentDeclaration)) { ArgumentDeclaration arguDec = (ArgumentDeclaration) fData.target.ast; if (arguDec.getName() != null && ast.getArgumentName().equals(arguDec.getName().getTexture())) { fData.assit(ast.getPosition(), fData.target); } } } } return false; }