private void fixPositions(JavadocMessageSend node) { node.sourceEnd = sourceEnd; node.sourceStart = sourceStart; node.statementEnd = sourceEnd; node.nameSourcePosition = sourcePos; node.tagSourceEnd = sourceEnd; node.tagSourceStart = sourceStart; }
public CompletionOnJavadocMessageSend(JavadocMessageSend method, int position) { super(method.selector, method.nameSourcePosition); this.arguments = method.arguments; this.receiver = method.receiver; this.sourceEnd = method.sourceEnd; this.tagValue = method.tagValue; this.separatorPosition = position; }
public CompletionOnJavadocFieldReference(JavadocMessageSend msgSend, int position) { super(msgSend.selector, ((msgSend.nameSourcePosition>>32)<<32)+msgSend.sourceEnd); this.receiver = msgSend.receiver; this.separatorPosition = position; this.tagSourceStart = msgSend.tagSourceStart; this.tagSourceEnd = msgSend.tagSourceEnd; this.tagValue = msgSend.tagValue; }
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(JavadocMessageSend node, BlockScope scope) { fixPositions(setGeneratedBy(node, source)); return super.visit(node, scope); }
@Override public boolean visit(JavadocMessageSend node, ClassScope scope) { fixPositions(setGeneratedBy(node, source)); return super.visit(node, scope); }
public CompletionOnJavadocMessageSend(JavadocMessageSend method, int position, int flags) { this(method, position); this.completionFlags |= flags; }
private void applyOffset(JavadocMessageSend node) { applyOffsetMessageSend(node); node.tagSourceEnd = newSourceEnd; node.tagSourceStart = newSourceStart; }
@Override public boolean visit(JavadocMessageSend node, BlockScope scope) { setGeneratedBy(node, source); applyOffset(node); return super.visit(node, scope); }
@Override public boolean visit(JavadocMessageSend node, ClassScope scope) { setGeneratedBy(node, source); applyOffset(node); return super.visit(node, scope); }