private void recordReference(NameReference nameReference) { if (!this.skipRecord && this.recordFrom <= nameReference.sourceStart && nameReference.sourceEnd <= this.recordTo && !isAlreadyPotentialName(nameReference.sourceStart)) { char[] token; if (nameReference instanceof SingleNameReference) { token = ((SingleNameReference) nameReference).token; } else { token = ((QualifiedNameReference) nameReference).tokens[0]; } // Most of the time a name which start with an uppercase is a type name. // As we don't want to resolve names to avoid to slow down performances then this name will be ignored if (Character.isUpperCase(token[0])) return; addPotentialName(token, nameReference.sourceStart, nameReference.sourceEnd); } } @Override
private void recordReference(NameReference nameReference) { if (!this.skipRecord && this.recordFrom <= nameReference.sourceStart && nameReference.sourceEnd <= this.recordTo && !isAlreadyPotentialName(nameReference.sourceStart)) { char[] token; if (nameReference instanceof SingleNameReference) { token = ((SingleNameReference) nameReference).token; } else { token = ((QualifiedNameReference) nameReference).tokens[0]; } // Most of the time a name which start with an uppercase is a type name. // As we don't want to resolve names to avoid to slow down performances then this name will be ignored if (Character.isUpperCase(token[0])) return; addPotentialName(token, nameReference.sourceStart, nameReference.sourceEnd); } } public void recoveryExitFromVariable() {
private void recordReference(NameReference nameReference) { if (!this.skipRecord && this.recordFrom <= nameReference.sourceStart && nameReference.sourceEnd <= this.recordTo && !isAlreadyPotentialName(nameReference.sourceStart)) { char[] token; if (nameReference instanceof SingleNameReference) { token = ((SingleNameReference) nameReference).token; } else { token = ((QualifiedNameReference) nameReference).tokens[0]; } // Most of the time a name which start with an uppercase is a type name. // As we don't want to resolve names to avoid to slow down performances then this name will be ignored if (Character.isUpperCase(token[0])) return; addPotentialName(token, nameReference.sourceStart, nameReference.sourceEnd); } } public void recoveryExitFromVariable() {
private void recordReference(NameReference nameReference) { if (!this.skipRecord && this.recordFrom <= nameReference.sourceStart && nameReference.sourceEnd <= this.recordTo && !isAlreadyPotentialName(nameReference.sourceStart)) { char[] token; if (nameReference instanceof SingleNameReference) { token = ((SingleNameReference) nameReference).token; } else { token = ((QualifiedNameReference) nameReference).tokens[0]; } // Most of the time a name which start with an uppercase is a type name. // As we don't want to resolve names to avoid to slow down performances then this name will be ignored if (Character.isUpperCase(token[0])) return; addPotentialName(token, nameReference.sourceStart, nameReference.sourceEnd); } } public void recoveryExitFromVariable() {
private void recordReference(NameReference nameReference) { if (!this.skipRecord && this.recordFrom <= nameReference.sourceStart && nameReference.sourceEnd <= this.recordTo && !isAlreadyPotentialName(nameReference.sourceStart)) { char[] token; if (nameReference instanceof SingleNameReference) { token = ((SingleNameReference) nameReference).token; } else { token = ((QualifiedNameReference) nameReference).tokens[0]; } // Most of the time a name which start with an uppercase is a type name. // As we don't want to resolve names to avoid to slow down performances then this name will be ignored if (Character.isUpperCase(token[0])) return; addPotentialName(token, nameReference.sourceStart, nameReference.sourceEnd); } } public void recoveryExitFromVariable() {
private void recordReference(NameReference nameReference) { if (!this.skipRecord && this.recordFrom <= nameReference.sourceStart && nameReference.sourceEnd <= this.recordTo && !isAlreadyPotentialName(nameReference.sourceStart)) { char[] token; if (nameReference instanceof SingleNameReference) { token = ((SingleNameReference) nameReference).token; } else { token = ((QualifiedNameReference) nameReference).tokens[0]; } // Most of the time a name which start with an uppercase is a type name. // As we don't want to resolve names to avoid to slow down performances then this name will be ignored if (Character.isUpperCase(token[0])) return; addPotentialName(token, nameReference.sourceStart, nameReference.sourceEnd); } } public void recoveryExitFromVariable() {
protected void consumeStatementBreakWithLabel() { super.consumeStatementBreakWithLabel(); if (this.record) { ASTNode breakStatement = this.astStack[this.astPtr]; if (!isAlreadyPotentialName(breakStatement.sourceStart)) { addPotentialName(null, breakStatement.sourceStart, breakStatement.sourceEnd); } } } protected void consumeStatementLabel() {
@Override protected void consumeStatementBreakWithLabel() { super.consumeStatementBreakWithLabel(); if (this.record) { ASTNode breakStatement = this.astStack[this.astPtr]; if (!isAlreadyPotentialName(breakStatement.sourceStart)) { addPotentialName(null, breakStatement.sourceStart, breakStatement.sourceEnd); } } } @Override
protected void consumeStatementBreakWithLabel() { super.consumeStatementBreakWithLabel(); if (this.record) { ASTNode breakStatement = this.astStack[this.astPtr]; if (!isAlreadyPotentialName(breakStatement.sourceStart)) { addPotentialName(null, breakStatement.sourceStart, breakStatement.sourceEnd); } } } protected void consumeStatementLabel() {
protected void consumeStatementBreakWithLabel() { super.consumeStatementBreakWithLabel(); if (this.record) { ASTNode breakStatement = this.astStack[this.astPtr]; if (!isAlreadyPotentialName(breakStatement.sourceStart)) { addPotentialName(null, breakStatement.sourceStart, breakStatement.sourceEnd); } } } protected void consumeStatementLabel() {
protected void consumeStatementBreakWithLabel() { super.consumeStatementBreakWithLabel(); if (this.record) { ASTNode breakStatement = this.astStack[this.astPtr]; if (!isAlreadyPotentialName(breakStatement.sourceStart)) { addPotentialName(null, breakStatement.sourceStart, breakStatement.sourceEnd); } } } protected void consumeStatementLabel() {
protected void consumeStatementBreakWithLabel() { super.consumeStatementBreakWithLabel(); if (this.record) { ASTNode breakStatement = this.astStack[this.astPtr]; if (!isAlreadyPotentialName(breakStatement.sourceStart)) { addPotentialName(null, breakStatement.sourceStart, breakStatement.sourceEnd); } } } protected void consumeStatementLabel() {
protected void consumeInsideCastExpressionLL1() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1(); if (this.record) { Expression typeReference = this.expressionStack[this.expressionPtr]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } protected void consumeInsideCastExpressionLL1WithBounds() {
protected void consumeInsideCastExpressionLL1() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1(); if (this.record) { Expression typeReference = this.expressionStack[this.expressionPtr]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } protected void consumeInsideCastExpressionWithQualifiedGenerics() {
@Override protected void consumeInsideCastExpressionLL1() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1(); if (this.record) { Expression typeReference = this.expressionStack[this.expressionPtr]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } @Override
@Override protected void consumeInsideCastExpressionLL1WithBounds() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1WithBounds(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1WithBounds(); if (this.record) { int length = this.expressionLengthStack[this.expressionLengthPtr]; for (int i = 0; i < length; i++) { Expression typeReference = this.expressionStack[this.expressionPtr - length + i + 1]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } @Override
protected void consumeInsideCastExpressionLL1() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1(); if (this.record) { Expression typeReference = this.expressionStack[this.expressionPtr]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } protected void consumeInsideCastExpressionLL1WithBounds() {
protected void consumeInsideCastExpressionLL1() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1(); if (this.record) { Expression typeReference = this.expressionStack[this.expressionPtr]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } protected void consumeInsideCastExpressionLL1WithBounds() {
protected void consumeInsideCastExpressionLL1() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1(); if (this.record) { Expression typeReference = this.expressionStack[this.expressionPtr]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } protected void consumeInsideCastExpressionLL1WithBounds() {
protected void consumeInsideCastExpressionLL1WithBounds() { if(topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_PARAMETERIZED_CAST) { popElement(K_PARAMETERIZED_CAST); } if (!this.record) { super.consumeInsideCastExpressionLL1WithBounds(); } else { boolean temp = this.skipRecord; try { this.skipRecord = true; super.consumeInsideCastExpressionLL1WithBounds(); if (this.record) { int length = this.expressionLengthStack[this.expressionLengthPtr]; for (int i = 0; i < length; i++) { Expression typeReference = this.expressionStack[this.expressionPtr - length + i + 1]; if (!isAlreadyPotentialName(typeReference.sourceStart)) { addPotentialName(null, typeReference.sourceStart, typeReference.sourceEnd); } } } } finally { this.skipRecord = temp; } } pushOnElementStack(K_CAST_STATEMENT); } protected void consumeInsideCastExpressionWithQualifiedGenerics() {