private boolean checkRecoveredType() { if (this.currentElement instanceof RecoveredType){ /* check if current awaiting identifier is the completion identifier */ if (this.indexOfAssistIdentifier() < 0) return false; if ((this.lastErrorEndPosition >= this.selectionStart) && (this.lastErrorEndPosition <= this.selectionEnd+1)){ return false; } RecoveredType recoveredType = (RecoveredType)this.currentElement; /* filter out cases where scanner is still inside type header */ if (recoveredType.foundOpeningBrace) { this.assistNode = this.getTypeReference(0); this.lastCheckPoint = this.assistNode.sourceEnd + 1; this.isOrphanCompletionNode = true; return true; } } return false; } protected void classInstanceCreation(boolean hasClassBody) {
private boolean checkRecoveredType() { if (this.currentElement instanceof RecoveredType){ /* check if current awaiting identifier is the completion identifier */ if (this.indexOfAssistIdentifier() < 0) return false; if ((this.lastErrorEndPosition >= this.selectionStart) && (this.lastErrorEndPosition <= this.selectionEnd+1)){ return false; } RecoveredType recoveredType = (RecoveredType)this.currentElement; /* filter out cases where scanner is still inside type header */ if (recoveredType.foundOpeningBrace) { this.assistNode = this.getTypeReference(0); this.lastCheckPoint = this.assistNode.sourceEnd + 1; this.isOrphanCompletionNode = true; return true; } } return false; } protected void classInstanceCreation(boolean hasClassBody) {
private boolean checkRecoveredType() { if (this.currentElement instanceof RecoveredType){ /* check if current awaiting identifier is the completion identifier */ if (this.indexOfAssistIdentifier() < 0) return false; if ((this.lastErrorEndPosition >= this.selectionStart) && (this.lastErrorEndPosition <= this.selectionEnd+1)){ return false; } RecoveredType recoveredType = (RecoveredType)this.currentElement; /* filter out cases where scanner is still inside type header */ if (recoveredType.foundOpeningBrace) { this.assistNode = this.getTypeReference(0); this.lastCheckPoint = this.assistNode.sourceEnd + 1; this.isOrphanCompletionNode = true; return true; } } return false; } protected void classInstanceCreation(boolean hasClassBody) {
private boolean checkRecoveredType() { if (this.currentElement instanceof RecoveredType){ /* check if current awaiting identifier is the completion identifier */ if (this.indexOfAssistIdentifier() < 0) return false; if ((this.lastErrorEndPosition >= this.selectionStart) && (this.lastErrorEndPosition <= this.selectionEnd+1)){ return false; } RecoveredType recoveredType = (RecoveredType)this.currentElement; /* filter out cases where scanner is still inside type header */ if (recoveredType.foundOpeningBrace) { this.assistNode = this.getTypeReference(0); this.lastCheckPoint = this.assistNode.sourceEnd + 1; this.isOrphanCompletionNode = true; return true; } } return false; } @Override
private boolean checkRecoveredType() { if (this.currentElement instanceof RecoveredType){ /* check if current awaiting identifier is the completion identifier */ if (this.indexOfAssistIdentifier() < 0) return false; if ((this.lastErrorEndPosition >= this.selectionStart) && (this.lastErrorEndPosition <= this.selectionEnd+1)){ return false; } RecoveredType recoveredType = (RecoveredType)this.currentElement; /* filter out cases where scanner is still inside type header */ if (recoveredType.foundOpeningBrace) { this.assistNode = this.getTypeReference(0); this.lastCheckPoint = this.assistNode.sourceEnd + 1; this.isOrphanCompletionNode = true; return true; } } return false; } protected void classInstanceCreation(boolean hasClassBody) {
private boolean checkRecoveredType() { if (this.currentElement instanceof RecoveredType){ /* check if current awaiting identifier is the completion identifier */ if (this.indexOfAssistIdentifier() < 0) return false; if ((this.lastErrorEndPosition >= this.selectionStart) && (this.lastErrorEndPosition <= this.selectionEnd+1)){ return false; } RecoveredType recoveredType = (RecoveredType)this.currentElement; /* filter out cases where scanner is still inside type header */ if (recoveredType.foundOpeningBrace) { this.assistNode = this.getTypeReference(0); this.lastCheckPoint = this.assistNode.sourceEnd + 1; this.isOrphanCompletionNode = true; return true; } } return false; } protected void classInstanceCreation(boolean hasClassBody) {
protected void consumeInstanceOfExpressionWithName() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpressionWithName(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } @Override
protected void consumeInstanceOfExpression() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpression(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } protected void consumeInstanceOfExpressionWithName() {
protected void consumeInstanceOfExpressionWithName() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpressionWithName(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } @Override
protected void consumeInstanceOfExpression() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpression(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } protected void consumeInstanceOfExpressionWithName() {
protected void consumeInstanceOfExpressionWithName() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpressionWithName(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } protected void consumeLocalVariableDeclarationStatement() {
@Override protected void consumeInstanceOfExpression() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpression(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } @Override
@Override protected void consumeInstanceOfExpressionWithName() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpressionWithName(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } @Override
protected void consumeInstanceOfExpressionWithName() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpressionWithName(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } @Override
protected void consumeInstanceOfExpression() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpression(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } protected void consumeInstanceOfExpressionWithName() {
protected void consumeInstanceOfExpressionWithName() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpressionWithName(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } @Override
protected void consumeInstanceOfExpression() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpression(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } protected void consumeInstanceOfExpressionWithName() {
protected void consumeInstanceOfExpression() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpression(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } protected void consumeInstanceOfExpressionWithName() {