Skip to content

Commit

Permalink
Fix up implicit flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Jul 15, 2024
1 parent f1f3dff commit f4152c1
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -2575,10 +2575,10 @@ pm_break_node_create(pm_parser_t *parser, const pm_token_t *keyword, pm_argument
// There are certain flags that we want to use internally but don't want to
// expose because they are not relevant beyond parsing. Therefore we'll define
// them here and not define them in config.yml/a header file.
static const pm_node_flags_t PM_WRITE_NODE_FLAGS_IMPLICIT_ARRAY = 0x1;
static const pm_node_flags_t PM_CALL_NODE_FLAGS_IMPLICIT_ARRAY = 0x10;
static const pm_node_flags_t PM_CALL_NODE_FLAGS_COMPARISON = 0x20;
static const pm_node_flags_t PM_CALL_NODE_FLAGS_INDEX = 0x40;
static const pm_node_flags_t PM_WRITE_NODE_FLAGS_IMPLICIT_ARRAY = 0x4;
static const pm_node_flags_t PM_CALL_NODE_FLAGS_IMPLICIT_ARRAY = 0x40;
static const pm_node_flags_t PM_CALL_NODE_FLAGS_COMPARISON = 0x80;
static const pm_node_flags_t PM_CALL_NODE_FLAGS_INDEX = 0x100;

/**
* Allocate and initialize a new CallNode node. This sets everything to NULL or
Expand Down
8 changes: 4 additions & 4 deletions test/prism/snapshots/integer_operations.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/prism/snapshots/multi_write.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions test/prism/snapshots/ranges.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/prism/snapshots/seattlerb/call_gt.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/prism/snapshots/seattlerb/call_lt.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/prism/snapshots/seattlerb/call_lte.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions test/prism/snapshots/whitequark/send_binary_op.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4152c1

Please sign in to comment.