consumeToken();
break;
case TerminalTokens.TokenNameDOT :
if ((iToken & 1) == 0) { // dots must be even tokens
throw new InvalidInputException();
}
consumeToken();
break;
case TerminalTokens.TokenNamevoid :
case TerminalTokens.TokenNameboolean :
case TerminalTokens.TokenNamebyte :
case TerminalTokens.TokenNamechar :
case TerminalTokens.TokenNamedouble :
case TerminalTokens.TokenNamefloat :
case TerminalTokens.TokenNameint :
case TerminalTokens.TokenNamelong :
case TerminalTokens.TokenNameshort :
if (iToken > 0) {
throw new InvalidInputException();
}
pushIdentifier(true, false);
primitiveToken = token;
consumeToken();
break nextToken;
default :
if (iToken == 0) {
if (this.identifierPtr>=0) {
this.lastIdentifierEndPosition = (int) this.identifierPositionStack[this.identifierPtr];
}
return null;
}
if ((iToken & 1) == 0) { // cannot leave on a dot
switch (parserKind) {
case COMPLETION_PARSER:
if (this.identifierPtr>=0) {
this.lastIdentifierEndPosition = (int) this.identifierPositionStack[this.identifierPtr];
}
return syntaxRecoverQualifiedName(primitiveToken);
case DOM_PARSER:
if (this.currentTokenType != -1) {
// Reset position: we want to rescan last token
this.index = this.tokenPreviousPosition;
this.scanner.currentPosition = this.tokenPreviousPosition;
this.currentTokenType = -1;
}
// $FALL-THROUGH$ - fall through default case to raise exception
default:
throw new InvalidInputException();
}
}
break nextToken;
}
}