diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-07-02 15:52:35 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2024-07-11 14:25:54 -0400 |
commit | aca42a24783e3a7d17eafb43a031e397bfb70323 (patch) | |
tree | b306703c25c49b84543345536e9f252642cc5a4f /test/prism/snapshots/whitequark/cond_begin_masgn.txt | |
parent | 687be43c79a6fb119e52b09ea561cf958a9aabf2 (diff) | |
download | ruby-aca42a24783e3a7d17eafb43a031e397bfb70323.tar.gz |
[ruby/prism] Expose common flags in inspect output
https://github.com/ruby/prism/commit/d0143865c2
Diffstat (limited to 'test/prism/snapshots/whitequark/cond_begin_masgn.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/cond_begin_masgn.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/prism/snapshots/whitequark/cond_begin_masgn.txt b/test/prism/snapshots/whitequark/cond_begin_masgn.txt index b4e6d8682c..fa81cd977f 100644 --- a/test/prism/snapshots/whitequark/cond_begin_masgn.txt +++ b/test/prism/snapshots/whitequark/cond_begin_masgn.txt @@ -1,17 +1,22 @@ @ ProgramNode (location: (1,0)-(1,25)) +├── flags: ∅ ├── locals: [:a, :b] └── statements: @ StatementsNode (location: (1,0)-(1,25)) + ├── flags: ∅ └── body: (length: 1) └── @ IfNode (location: (1,0)-(1,25)) + ├── flags: newline ├── if_keyword_loc: (1,0)-(1,2) = "if" ├── predicate: │ @ ParenthesesNode (location: (1,3)-(1,20)) + │ ├── flags: ∅ │ ├── body: │ │ @ StatementsNode (location: (1,4)-(1,19)) + │ │ ├── flags: ∅ │ │ └── body: (length: 2) │ │ ├── @ CallNode (location: (1,4)-(1,7)) - │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ ├── flags: newline, variable_call, ignore_visibility │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── name: :bar @@ -21,11 +26,14 @@ │ │ │ ├── closing_loc: ∅ │ │ │ └── block: ∅ │ │ └── @ MultiWriteNode (location: (1,9)-(1,19)) + │ │ ├── flags: newline │ │ ├── lefts: (length: 2) │ │ │ ├── @ LocalVariableTargetNode (location: (1,9)-(1,10)) + │ │ │ │ ├── flags: ∅ │ │ │ │ ├── name: :a │ │ │ │ └── depth: 0 │ │ │ └── @ LocalVariableTargetNode (location: (1,12)-(1,13)) + │ │ │ ├── flags: ∅ │ │ │ ├── name: :b │ │ │ └── depth: 0 │ │ ├── rest: ∅ |