Skip to content

Commit 1ae5dd6

Browse files
committed
Rename NODE_NEW_TEMPORAL as NODE_NEW_INTERNAL
1 parent 719f834 commit 1ae5dd6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

parse.y

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -875,10 +875,10 @@ static NODE* node_newnode_with_locals(struct parser_params *, enum node_type, VA
875875
static NODE* node_newnode(struct parser_params *, enum node_type, VALUE, VALUE, VALUE, const rb_code_location_t*);
876876
#define rb_node_newnode(type, a1, a2, a3, loc) node_newnode(p, (type), (a1), (a2), (a3), (loc))
877877

878-
/* Make a new temporal node, which should not be appeared in the
878+
/* Make a new internal node, which should not be appeared in the
879879
* result AST and does not have node_id and location. */
880-
static NODE* node_new_temporal(struct parser_params *p, enum node_type type, VALUE a0, VALUE a1, VALUE a2);
881-
#define NODE_NEW_TEMPORAL(t,a0,a1,a2) node_new_temporal(p, (t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2))
880+
static NODE* node_new_internal(struct parser_params *p, enum node_type type, VALUE a0, VALUE a1, VALUE a2);
881+
#define NODE_NEW_INTERNAL(t,a0,a1,a2) node_new_internal(p, (t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2))
882882

883883
static NODE *nd_set_loc(NODE *nd, const YYLTYPE *loc);
884884

@@ -2177,7 +2177,7 @@ def_name : fname
21772177
YYSTYPE c = {.ctxt = p->ctxt};
21782178
numparam_name(p, fname);
21792179
NODE *save =
2180-
NODE_NEW_TEMPORAL(NODE_SELF,
2180+
NODE_NEW_INTERNAL(NODE_SELF,
21812181
/*head*/numparam_push(p),
21822182
/*nth*/p->max_numparam,
21832183
/*cval*/c.val);
@@ -10578,7 +10578,7 @@ yylex(YYSTYPE *lval, YYLTYPE *yylloc, struct parser_params *p)
1057810578
#define LVAR_USED ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))
1057910579

1058010580
static NODE*
10581-
node_new_temporal(struct parser_params *p, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
10581+
node_new_internal(struct parser_params *p, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
1058210582
{
1058310583
NODE *n = rb_ast_newnode(p->ast, type);
1058410584

@@ -10589,7 +10589,7 @@ node_new_temporal(struct parser_params *p, enum node_type type, VALUE a0, VALUE
1058910589
static NODE*
1059010590
node_newnode(struct parser_params *p, enum node_type type, VALUE a0, VALUE a1, VALUE a2, const rb_code_location_t *loc)
1059110591
{
10592-
NODE *n = node_new_temporal(p, type, a0, a1, a2);
10592+
NODE *n = node_new_internal(p, type, a0, a1, a2);
1059310593

1059410594
nd_set_loc(n, loc);
1059510595
nd_set_node_id(n, parser_get_node_id(p));

0 commit comments

Comments
 (0)