@Override public void visitConstructor(ConstructorNode node) { scope = node.getVariableScope(); super.visitConstructor(node); }
@Override public void visitConstructor(ConstructorNode node) { addNode(constructors, node.getDeclaringClass().getNameWithoutPackage(), node); super.visitConstructor(node); }
public void visitConstructor(ConstructorNode node) { inConstructor = true; inStaticConstructor = node.isStaticConstructor(); checkGenericsUsage(node, node.getParameters()); super.visitConstructor(node); }
public void visitConstructor(ConstructorNode node) { visitNode(node); super.visitConstructor(node); }
private static void doAddConstructor(final ClassNode cNode, final ConstructorNode constructorNode) { markAsGenerated(cNode, constructorNode); cNode.addConstructor(constructorNode); // GROOVY-5814: Immutable is not compatible with @CompileStatic Parameter argsParam = null; for (Parameter p : constructorNode.getParameters()) { if ("args".equals(p.getName())) { argsParam = p; break; } } if (argsParam != null) { final Parameter arg = argsParam; ClassCodeVisitorSupport variableExpressionFix = new ClassCodeVisitorSupport() { @Override protected SourceUnit getSourceUnit() { return cNode.getModule().getContext(); } @Override public void visitVariableExpression(final VariableExpression expression) { super.visitVariableExpression(expression); if ("args".equals(expression.getName())) { expression.setAccessedVariable(arg); } } }; variableExpressionFix.visitConstructor(constructorNode); } }
@Override public void visitConstructor(final ConstructorNode node) { if (shouldSkipMethodNode(node)) { // method has already been visited by a static type checking visitor return; } for (Parameter parameter : node.getParameters()) { if (parameter.getInitialExpression() != null) { parameter.getInitialExpression().visit(this); } } super.visitConstructor(node); }
@Override public final void visitConstructor(ConstructorNode node) { super.visitConstructor(node); }
@Override public void visitConstructor(ConstructorNode node) { scope = node.getVariableScope(); super.visitConstructor(node); }
@Override public void visitConstructor(ConstructorNode node) { if (!blocks.remove(node)) { return; } for (Parameter param : node.getParameters()) { variables.put(param.getName(), param); } super.visitConstructor(node); }
@Override public void visitConstructor(ConstructorNode node) { if (isInSource(node)) { // Beware, a ConstructorNode is a MethodNode as well, (see below) // but we have to catch the Constructors first. OffsetRange range = ASTUtils.getRange(node, doc); highlights.put(range, ColoringAttributes.CONSTRUCTOR_SET); } super.visitConstructor(node); }
@Override public void visitConstructor(ConstructorNode node) { // we don't want synthetic constructors duplicating field initial expressions if (!node.isSynthetic() && isInside(node, line, column)) { super.visitConstructor(node); } }
public void visitConstructor(ConstructorNode node) { inConstructor = true; inStaticConstructor = node.isStaticConstructor(); checkGenericsUsage(node, node.getParameters()); super.visitConstructor(node); }
visitParameters(constructor.getParameters(), variable); super.visitConstructor(constructor); } else if (scope instanceof ForStatement) { VariableScope variableScope = ((ForStatement) scope).getVariableScope();