protected Object syntaxRecoverEmptyArgumentType(Object methodRef) throws InvalidInputException { if (methodRef instanceof JavadocMessageSend) { JavadocMessageSend msgSend = (JavadocMessageSend) methodRef; if (this.index > this.cursorLocation) { msgSend.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocMessageSend(msgSend, this.memberStart); } else if (methodRef instanceof JavadocAllocationExpression) { JavadocAllocationExpression allocExp = (JavadocAllocationExpression) methodRef; if (this.index > this.cursorLocation) { allocExp.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart); } if (CompletionEngine.DEBUG) { System.out.println(" completion method="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; }
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
private void completionOnJavadocAllocationExpression(ASTNode astNode, Binding qualifiedBinding, Scope scope) { // setSourceRange(astNode.sourceStart, astNode.sourceEnd, false); CompletionOnJavadocAllocationExpression allocExpression = (CompletionOnJavadocAllocationExpression) astNode; this.javadocTagPosition = allocExpression.tagSourceStart; int rangeStart = astNode.sourceStart; if (allocExpression.type.isThis()) { if (allocExpression.completeInText()) { rangeStart = allocExpression.separatorPosition; } } else if (allocExpression.completeInText()) { rangeStart = allocExpression.type.sourceStart; } setSourceAndTokenRange(rangeStart, astNode.sourceEnd, false); TypeBinding[] argTypes = computeTypes(allocExpression.arguments); ReferenceBinding ref = (ReferenceBinding) qualifiedBinding; if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF) && ref.isClass()) { findConstructors(ref, argTypes, scope, allocExpression, false, null, null, null, false); } } //TODO
private void completionOnJavadocAllocationExpression(ASTNode astNode, Binding qualifiedBinding, Scope scope) { // setSourceRange(astNode.sourceStart, astNode.sourceEnd, false); CompletionOnJavadocAllocationExpression allocExpression = (CompletionOnJavadocAllocationExpression) astNode; this.javadocTagPosition = allocExpression.tagSourceStart; int rangeStart = astNode.sourceStart; if (allocExpression.type.isThis()) { if (allocExpression.completeInText()) { rangeStart = allocExpression.separatorPosition; } } else if (allocExpression.completeInText()) { rangeStart = allocExpression.type.sourceStart; } setSourceAndTokenRange(rangeStart, astNode.sourceEnd, false); TypeBinding[] argTypes = computeTypes(allocExpression.arguments); ReferenceBinding ref = (ReferenceBinding) qualifiedBinding; if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF) && ref.isClass()) { findConstructors(ref, argTypes, scope, allocExpression, false, null, null, null, false); } } //TODO
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object syntaxRecoverEmptyArgumentType(Object methodRef) throws InvalidInputException { if (methodRef instanceof JavadocMessageSend) { JavadocMessageSend msgSend = (JavadocMessageSend) methodRef; if (this.index > this.cursorLocation) { msgSend.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocMessageSend(msgSend, this.memberStart); } else if (methodRef instanceof JavadocAllocationExpression) { JavadocAllocationExpression allocExp = (JavadocAllocationExpression) methodRef; if (this.index > this.cursorLocation) { allocExp.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart); } if (CompletionEngine.DEBUG) { System.out.println(" completion method="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; }
private void completionOnJavadocAllocationExpression(ASTNode astNode, Binding qualifiedBinding, Scope scope) { // setSourceRange(astNode.sourceStart, astNode.sourceEnd, false); CompletionOnJavadocAllocationExpression allocExpression = (CompletionOnJavadocAllocationExpression) astNode; this.javadocTagPosition = allocExpression.tagSourceStart; int rangeStart = astNode.sourceStart; if (allocExpression.type.isThis()) { if (allocExpression.completeInText()) { rangeStart = allocExpression.separatorPosition; } } else if (allocExpression.completeInText()) { rangeStart = allocExpression.type.sourceStart; } setSourceAndTokenRange(rangeStart, astNode.sourceEnd, false); TypeBinding[] argTypes = computeTypes(allocExpression.arguments); ReferenceBinding ref = (ReferenceBinding) qualifiedBinding; if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF) && ref.isClass()) { findConstructors(ref, argTypes, scope, allocExpression, false, null, null, null, false); } } //TODO
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object syntaxRecoverEmptyArgumentType(Object methodRef) throws InvalidInputException { if (methodRef instanceof JavadocMessageSend) { JavadocMessageSend msgSend = (JavadocMessageSend) methodRef; if (this.index > this.cursorLocation) { msgSend.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocMessageSend(msgSend, this.memberStart); } else if (methodRef instanceof JavadocAllocationExpression) { JavadocAllocationExpression allocExp = (JavadocAllocationExpression) methodRef; if (this.index > this.cursorLocation) { allocExp.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart); } if (CompletionEngine.DEBUG) { System.out.println(" completion method="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; }
private void completionOnJavadocAllocationExpression(ASTNode astNode, Binding qualifiedBinding, Scope scope) { // setSourceRange(astNode.sourceStart, astNode.sourceEnd, false); CompletionOnJavadocAllocationExpression allocExpression = (CompletionOnJavadocAllocationExpression) astNode; this.javadocTagPosition = allocExpression.tagSourceStart; int rangeStart = astNode.sourceStart; if (allocExpression.type.isThis()) { if (allocExpression.completeInText()) { rangeStart = allocExpression.separatorPosition; } } else if (allocExpression.completeInText()) { rangeStart = allocExpression.type.sourceStart; } setSourceAndTokenRange(rangeStart, astNode.sourceEnd, false); TypeBinding[] argTypes = computeTypes(allocExpression.arguments); ReferenceBinding ref = (ReferenceBinding) qualifiedBinding; if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF) && ref.isClass()) { findConstructors(ref, argTypes, scope, allocExpression, false, null, null, null, false); } } //TODO
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object syntaxRecoverEmptyArgumentType(Object methodRef) throws InvalidInputException { if (methodRef instanceof JavadocMessageSend) { JavadocMessageSend msgSend = (JavadocMessageSend) methodRef; if (this.index > this.cursorLocation) { msgSend.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocMessageSend(msgSend, this.memberStart); } else if (methodRef instanceof JavadocAllocationExpression) { JavadocAllocationExpression allocExp = (JavadocAllocationExpression) methodRef; if (this.index > this.cursorLocation) { allocExp.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart); } if (CompletionEngine.DEBUG) { System.out.println(" completion method="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; }
private void completionOnJavadocAllocationExpression(ASTNode astNode, Binding qualifiedBinding, Scope scope) { // setSourceRange(astNode.sourceStart, astNode.sourceEnd, false); CompletionOnJavadocAllocationExpression allocExpression = (CompletionOnJavadocAllocationExpression) astNode; this.javadocTagPosition = allocExpression.tagSourceStart; int rangeStart = astNode.sourceStart; if (allocExpression.type.isThis()) { if (allocExpression.completeInText()) { rangeStart = allocExpression.separatorPosition; } } else if (allocExpression.completeInText()) { rangeStart = allocExpression.type.sourceStart; } setSourceAndTokenRange(rangeStart, astNode.sourceEnd, false); TypeBinding[] argTypes = computeTypes(allocExpression.arguments); ReferenceBinding ref = (ReferenceBinding) qualifiedBinding; if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF) && ref.isClass()) { findConstructors(ref, argTypes, scope, allocExpression, false, null, null, null, false); } } //TODO
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object syntaxRecoverEmptyArgumentType(Object methodRef) throws InvalidInputException { if (methodRef instanceof JavadocMessageSend) { JavadocMessageSend msgSend = (JavadocMessageSend) methodRef; if (this.index > this.cursorLocation) { msgSend.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocMessageSend(msgSend, this.memberStart); } else if (methodRef instanceof JavadocAllocationExpression) { JavadocAllocationExpression allocExp = (JavadocAllocationExpression) methodRef; if (this.index > this.cursorLocation) { allocExp.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart); } if (CompletionEngine.DEBUG) { System.out.println(" completion method="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; }
private void completionOnJavadocAllocationExpression(ASTNode astNode, Binding qualifiedBinding, Scope scope) { // setSourceRange(astNode.sourceStart, astNode.sourceEnd, false); CompletionOnJavadocAllocationExpression allocExpression = (CompletionOnJavadocAllocationExpression) astNode; this.javadocTagPosition = allocExpression.tagSourceStart; int rangeStart = astNode.sourceStart; if (allocExpression.type.isThis()) { if (allocExpression.completeInText()) { rangeStart = allocExpression.separatorPosition; } } else if (allocExpression.completeInText()) { rangeStart = allocExpression.type.sourceStart; } setSourceAndTokenRange(rangeStart, astNode.sourceEnd, false); TypeBinding[] argTypes = computeTypes(allocExpression.arguments); ReferenceBinding ref = (ReferenceBinding) qualifiedBinding; if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF) && ref.isClass()) { findConstructors(ref, argTypes, scope, allocExpression, false, null, null, null, false); } } //TODO
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object syntaxRecoverEmptyArgumentType(Object methodRef) throws InvalidInputException { if (methodRef instanceof JavadocMessageSend) { JavadocMessageSend msgSend = (JavadocMessageSend) methodRef; if (this.index > this.cursorLocation) { msgSend.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocMessageSend(msgSend, this.memberStart); } else if (methodRef instanceof JavadocAllocationExpression) { JavadocAllocationExpression allocExp = (JavadocAllocationExpression) methodRef; if (this.index > this.cursorLocation) { allocExp.sourceEnd = this.tokenPreviousPosition-1; } this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart); } if (CompletionEngine.DEBUG) { System.out.println(" completion method="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; }
allocExp.sourceEnd = this.tokenPreviousPosition-1; this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart);
allocExp.sourceEnd = this.tokenPreviousPosition-1; this.completionNode = new CompletionOnJavadocAllocationExpression(allocExp, this.memberStart);