protected NameReference getUnspecifiedReferenceOptimized() { int index = indexOfAssistIdentifier(); NameReference reference = super.getUnspecifiedReferenceOptimized(); if (index >= 0){ if (!this.diet){ this.restartRecovery = true; // force to restart in recovery mode this.lastIgnoredToken = -1; } this.isOrphanCompletionNode = true; } return reference; } public void initializeScanner(){
protected NameReference getUnspecifiedReferenceOptimized() { int index = indexOfAssistIdentifier(); NameReference reference = super.getUnspecifiedReferenceOptimized(); if (index >= 0){ if (!this.diet){ this.restartRecovery = true; // force to restart in recovery mode this.lastIgnoredToken = -1; } this.isOrphanCompletionNode = true; } return reference; } public void initializeScanner(){
protected void consumeInstanceOfExpressionWithName() { if (indexOfAssistIdentifier() < 0) { super.consumeInstanceOfExpressionWithName(); } else { getTypeReference(this.intStack[this.intPtr--]); this.isOrphanCompletionNode = true; this.restartRecovery = true; this.lastIgnoredToken = -1; } } @Override
@Override protected LocalDeclaration createLocalDeclaration(char[] assistName,int sourceStart,int sourceEnd) { if (this.indexOfAssistIdentifier() < 0) { return super.createLocalDeclaration(assistName, sourceStart, sourceEnd); } else { SelectionOnLocalName local = new SelectionOnLocalName(assistName, sourceStart, sourceEnd); this.assistNode = local; this.lastCheckPoint = sourceEnd + 1; return local; } } @Override
protected LocalDeclaration createLocalDeclaration(char[] assistName,int sourceStart,int sourceEnd) { if (this.indexOfAssistIdentifier() < 0) { return super.createLocalDeclaration(assistName, sourceStart, sourceEnd); } else { SelectionOnLocalName local = new SelectionOnLocalName(assistName, sourceStart, sourceEnd); this.assistNode = local; this.lastCheckPoint = sourceEnd + 1; return local; } } public NameReference createQualifiedAssistNameReference(char[][] previousIdentifiers, char[] assistName, long[] positions){
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 LocalDeclaration createLocalDeclaration(char[] assistName,int sourceStart,int sourceEnd) { if (this.indexOfAssistIdentifier() < 0) { return super.createLocalDeclaration(assistName, sourceStart, sourceEnd); } else { SelectionOnLocalName local = new SelectionOnLocalName(assistName, sourceStart, sourceEnd); this.assistNode = local; this.lastCheckPoint = sourceEnd + 1; return local; } } public NameReference createQualifiedAssistNameReference(char[][] previousIdentifiers, char[] assistName, long[] positions){
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 LocalDeclaration createLocalDeclaration(char[] assistName,int sourceStart,int sourceEnd) { if (this.indexOfAssistIdentifier() < 0) { return super.createLocalDeclaration(assistName, sourceStart, sourceEnd); } else { SelectionOnLocalName local = new SelectionOnLocalName(assistName, sourceStart, sourceEnd); this.assistNode = local; this.lastCheckPoint = sourceEnd + 1; return local; } } public NameReference createQualifiedAssistNameReference(char[][] previousIdentifiers, char[] assistName, long[] positions){
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 LocalDeclaration createLocalDeclaration(char[] assistName,int sourceStart,int sourceEnd) { if (this.indexOfAssistIdentifier() < 0) { return super.createLocalDeclaration(assistName, sourceStart, sourceEnd); } else { SelectionOnLocalName local = new SelectionOnLocalName(assistName, sourceStart, sourceEnd); this.assistNode = local; this.lastCheckPoint = sourceEnd + 1; return local; } } public NameReference createQualifiedAssistNameReference(char[][] previousIdentifiers, char[] assistName, long[] positions){
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 LocalDeclaration createLocalDeclaration(char[] assistName,int sourceStart,int sourceEnd) { if (this.indexOfAssistIdentifier() < 0) { return super.createLocalDeclaration(assistName, sourceStart, sourceEnd); } else { SelectionOnLocalName local = new SelectionOnLocalName(assistName, sourceStart, sourceEnd); this.assistNode = local; this.lastCheckPoint = sourceEnd + 1; return local; } } public NameReference createQualifiedAssistNameReference(char[][] previousIdentifiers, char[] assistName, long[] positions){
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() {