private void fixPositions(JavadocAllocationExpression node) { node.sourceEnd = sourceEnd; node.sourceStart = sourceStart; node.statementEnd = sourceEnd; node.memberStart = sourceStart; node.tagSourceEnd = sourceEnd; node.tagSourceStart = sourceStart; }
public CompletionOnJavadocAllocationExpression(JavadocAllocationExpression allocation, int position) { super(allocation.sourceStart, allocation.sourceEnd); this.arguments = allocation.arguments; this.type = allocation.type; this.tagValue = allocation.tagValue; this.sourceEnd = allocation.sourceEnd; this.separatorPosition = position; this.qualification = allocation.qualification; }
synchronized IBinding resolveReference(MethodRef ref) { org.eclipse.jdt.internal.compiler.ast.Expression expression = (org.eclipse.jdt.internal.compiler.ast.Expression) this.newAstToOldAst.get(ref); if (expression instanceof JavadocMessageSend) { return getMethodBinding(((JavadocMessageSend)expression).binding); } else if (expression instanceof JavadocAllocationExpression) { return getMethodBinding(((JavadocAllocationExpression)expression).binding); } return null; }
@Override public boolean visit(JavadocAllocationExpression node, BlockScope scope) { fixPositions(setGeneratedBy(node, source)); return super.visit(node, scope); }
@Override public boolean visit(JavadocAllocationExpression node, ClassScope scope) { fixPositions(setGeneratedBy(node, source)); return super.visit(node, scope); }
public CompletionOnJavadocAllocationExpression(JavadocAllocationExpression allocation, int position, int flags) { this(allocation, position); this.completionFlags |= flags; }
private void applyOffset(JavadocAllocationExpression node) { applyOffsetExpression(node); node.memberStart = newSourceStart; node.tagSourceEnd = newSourceEnd; node.tagSourceStart = newSourceStart; }
@Override public boolean visit(JavadocAllocationExpression node, BlockScope scope) { setGeneratedBy(node, source); applyOffset(node); return super.visit(node, scope); }
@Override public boolean visit(JavadocAllocationExpression node, ClassScope scope) { setGeneratedBy(node, source); applyOffset(node); return super.visit(node, scope); }