mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
Remove not used argument from tokenize_ident
This has not been used since 5e59be3edd
This commit is contained in:
parent
5eeebd68cf
commit
e82cef1762
Notes:
git
2023-01-25 01:52:55 +00:00
1 changed files with 4 additions and 4 deletions
8
parse.y
8
parse.y
|
@ -9433,7 +9433,7 @@ tokadd_ident(struct parser_params *p, int c)
|
|||
}
|
||||
|
||||
static ID
|
||||
tokenize_ident(struct parser_params *p, const enum lex_state_e last_state)
|
||||
tokenize_ident(struct parser_params *p)
|
||||
{
|
||||
ID ident = TOK_INTERN();
|
||||
|
||||
|
@ -9568,7 +9568,7 @@ parse_gvar(struct parser_params *p, const enum lex_state_e last_state)
|
|||
|
||||
if (tokadd_ident(p, c)) return 0;
|
||||
SET_LEX_STATE(EXPR_END);
|
||||
tokenize_ident(p, last_state);
|
||||
tokenize_ident(p);
|
||||
return tGVAR;
|
||||
}
|
||||
|
||||
|
@ -9643,7 +9643,7 @@ parse_atmark(struct parser_params *p, const enum lex_state_e last_state)
|
|||
}
|
||||
|
||||
if (tokadd_ident(p, c)) return 0;
|
||||
tokenize_ident(p, last_state);
|
||||
tokenize_ident(p);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -9762,7 +9762,7 @@ parse_ident(struct parser_params *p, int c, int cmd_state)
|
|||
SET_LEX_STATE(EXPR_END);
|
||||
}
|
||||
|
||||
ident = tokenize_ident(p, last_state);
|
||||
ident = tokenize_ident(p);
|
||||
if (result == tCONSTANT && is_local_id(ident)) result = tIDENTIFIER;
|
||||
if (!IS_lex_state_for(last_state, EXPR_DOT|EXPR_FNAME) &&
|
||||
(result == tIDENTIFIER) && /* not EXPR_FNAME, not attrasgn */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue