Lines Matching refs:token

43  * and discarding input tokens until an input token is reached that
85 ((Scanner)this).token = scanner.token;
102 * except for <code>this.token</code> and <code>this.pos</code>
299 * Expect a token, return its value, scan the next token or
303 if (token != t) {
309 env.error(scanner.prevPos, "token.expected", opNames[t]);
321 switch (token) {
343 while (token == FIELD) {
361 if (token != RPAREN) {
363 while (token == COMMA) {
374 * token is the '(' of the argument list.
379 if (token != RPAREN) {
381 while (token == COMMA) {
388 if (token == LBRACE && !(type instanceof TypeExpression)) {
398 if (token == IMPLEMENTS || token == EXTENDS) {
416 switch (token) {
448 return (token == LPAREN) ?
461 return (token == LPAREN) ? parseMethodExpression(e, idInit) : e;
465 return (token == LPAREN) ? parseMethodExpression(e, idInit) : e;
481 switch (token) {
507 switch (token) {
547 switch (token) {
587 if (token != RBRACE) {
589 while (token == COMMA) {
591 if (token == RBRACE) {
605 if (token == LPAREN) {
615 if (token == LSQBRACKET) {
616 while (token == LSQBRACKET) {
618 addArgument((token != RSQBRACKET) ? parseExpression() : null);
622 if (token == LBRACE) {
632 // System.err.println("NEAR: " + opNames[token]);
656 switch (token) {
660 Expression index = (token != RSQBRACKET) ? parseExpression() : null;
674 if (token == THIS) {
678 if (token == LPAREN) {
686 if (token == SUPER) {
692 if (token == LPAREN) {
702 if (token == NEW) {
705 if (token != IDENT)
710 if (token == CLASS) {
719 if (token == LPAREN) {
856 switch (token) {
905 * has been parsed and the current token is IDENT.
909 if (token == IDENT) {
911 while (token == COMMA) {
952 switch (token) {
968 if (token == ELSE) {
989 if (token != SEMICOLON) {
994 if (token == IDENT) {
1001 while (token == COMMA) {
1011 if (token != SEMICOLON) {
1015 if (token != RPAREN) {
1018 while (token == COMMA) {
1057 if (token == IDENT) {
1070 if (token == IDENT) {
1084 if (token != SEMICOLON) {
1101 while ((token != EOF) && (token != RBRACE)) {
1104 switch (token) {
1135 while (token == CASE) {
1158 if (false && token == LPAREN) {
1164 if (token == IDENT) {
1182 while (token == CATCH) {
1192 // while (token == LSQBRACKET) {
1204 if (token == FINALLY) {
1228 } while (token == CATCH);
1230 if (token == FINALLY) {
1291 switch (token) {
1310 if (token != IDENT) {
1338 if (token == IDENT) {
1344 if (token == COLON) {
1360 if (token != LBRACE) {
1363 env.error(scanner.prevPos, "token.expected", opNames[LBRACE]);
1368 while ((token != EOF) && (token != RBRACE)) {
1394 if (token != FIELD) {
1400 while (token == FIELD) {
1402 if ((token == MUL) && star) {
1409 if (token == IDENT) {
1434 switch (token) {
1488 while (token == LSQBRACKET) {
1490 if (token != RSQBRACKET) {
1533 if (token==CONST) {
1539 switch (token) {
1574 if (token == SEMICOLON) {
1592 if ((mod == (mod & M_STATIC)) && (token == LBRACE)) {
1602 if (token == CLASS || token == INTERFACE) {
1615 switch (token) {
1632 // If the next token is a left-bracket then we
1635 if (token == LPAREN) {
1640 if (token != RPAREN) {
1652 // If the next token is a comma then there are
1654 while (token == COMMA) {
1684 if (token == THROWS) {
1688 while (token == COMMA) {
1699 switch (token) {
1743 if (token == ASSIGN) {
1752 // If the next token is a comma, then there is more
1753 if (token != COMMA) {
1759 // The next token must be an identifier
1772 switch (token) {
1864 switch (token) {
1906 if (token == EXTENDS) {
1909 while (token == COMMA) {
1916 if (token == IMPLEMENTS) {
1919 while (token == COMMA) {
1962 while ((token != EOF) && (token != RBRACE)) {
1986 switch (token) {
2024 if (token == PACKAGE) {
2034 while (token == IMPORT) {
2051 while (token != EOF) {
2053 switch (token) {
2098 * except for <code>this.token</code> and <code>this.pos</code>
2114 ((Scanner)this).token = scanner.token;
2124 ((Scanner)this).token = scanner.token;