diff options
Diffstat (limited to 'test/prism/snapshots/unparser/corpus/literal/since')
3 files changed, 41 insertions, 41 deletions
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/27.txt b/test/prism/snapshots/unparser/corpus/literal/since/27.txt index 3d1763e9b4..2099e84209 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/27.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/27.txt @@ -16,6 +16,7 @@ │ @ StatementsNode (location: (2,2)-(2,9)) │ └── body: (length: 1) │ └── @ CallNode (location: (2,2)-(2,9)) + │ ├── flags: ∅ │ ├── receiver: │ │ @ LocalVariableReadNode (location: (2,2)-(2,4)) │ │ ├── name: :_1 @@ -26,24 +27,23 @@ │ ├── opening_loc: ∅ │ ├── arguments: │ │ @ ArgumentsNode (location: (2,7)-(2,9)) - │ │ ├── arguments: (length: 1) - │ │ │ └── @ LocalVariableReadNode (location: (2,7)-(2,9)) - │ │ │ ├── name: :_2 - │ │ │ └── depth: 0 - │ │ └── flags: ∅ + │ │ ├── flags: ∅ + │ │ └── arguments: (length: 1) + │ │ └── @ LocalVariableReadNode (location: (2,7)-(2,9)) + │ │ ├── name: :_2 + │ │ └── depth: 0 │ ├── closing_loc: ∅ - │ ├── block: ∅ - │ └── flags: ∅ + │ └── block: ∅ └── @ ParenthesesNode (location: (4,0)-(4,5)) ├── body: │ @ StatementsNode (location: (4,1)-(4,4)) │ └── body: (length: 1) │ └── @ RangeNode (location: (4,1)-(4,4)) + │ ├── flags: ∅ │ ├── left: ∅ │ ├── right: │ │ @ IntegerNode (location: (4,3)-(4,4)) │ │ └── flags: decimal - │ ├── operator_loc: (4,1)-(4,3) = ".." - │ └── flags: ∅ + │ └── operator_loc: (4,1)-(4,3) = ".." ├── opening_loc: (4,0)-(4,1) = "(" └── closing_loc: (4,4)-(4,5) = ")" diff --git a/test/prism/snapshots/unparser/corpus/literal/since/31.txt b/test/prism/snapshots/unparser/corpus/literal/since/31.txt index 6756860cde..d5bc8d0903 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/31.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/31.txt @@ -24,6 +24,7 @@ │ │ @ StatementsNode (location: (2,2)-(2,7)) │ │ └── body: (length: 1) │ │ └── @ CallNode (location: (2,2)-(2,7)) + │ │ ├── flags: ∅ │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ │ │ ├── name: :bar @@ -31,11 +32,10 @@ │ │ ├── opening_loc: (2,5)-(2,6) = "(" │ │ ├── arguments: ∅ │ │ ├── closing_loc: (2,7)-(2,8) = ")" - │ │ ├── block: - │ │ │ @ BlockArgumentNode (location: (2,6)-(2,7)) - │ │ │ ├── expression: ∅ - │ │ │ └── operator_loc: (2,6)-(2,7) = "&" - │ │ └── flags: ∅ + │ │ └── block: + │ │ @ BlockArgumentNode (location: (2,6)-(2,7)) + │ │ ├── expression: ∅ + │ │ └── operator_loc: (2,6)-(2,7) = "&" │ ├── locals: [:&] │ ├── locals_body_index: 1 │ ├── def_keyword_loc: (1,0)-(1,3) = "def" @@ -67,6 +67,7 @@ │ @ StatementsNode (location: (6,2)-(6,7)) │ └── body: (length: 1) │ └── @ CallNode (location: (6,2)-(6,7)) + │ ├── flags: ∅ │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ │ ├── name: :bar @@ -74,11 +75,10 @@ │ ├── opening_loc: (6,5)-(6,6) = "(" │ ├── arguments: ∅ │ ├── closing_loc: (6,7)-(6,8) = ")" - │ ├── block: - │ │ @ BlockArgumentNode (location: (6,6)-(6,7)) - │ │ ├── expression: ∅ - │ │ └── operator_loc: (6,6)-(6,7) = "&" - │ └── flags: ∅ + │ └── block: + │ @ BlockArgumentNode (location: (6,6)-(6,7)) + │ ├── expression: ∅ + │ └── operator_loc: (6,6)-(6,7) = "&" ├── locals: [:a, :&] ├── locals_body_index: 2 ├── def_keyword_loc: (5,0)-(5,3) = "def" diff --git a/test/prism/snapshots/unparser/corpus/literal/since/32.txt b/test/prism/snapshots/unparser/corpus/literal/since/32.txt index 24ba7fb851..09bc0e1575 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/32.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/32.txt @@ -26,6 +26,7 @@ │ │ @ StatementsNode (location: (2,2)-(2,19)) │ │ └── body: (length: 1) │ │ └── @ CallNode (location: (2,2)-(2,19)) + │ │ ├── flags: ∅ │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ │ │ ├── name: :bar @@ -33,19 +34,18 @@ │ │ ├── opening_loc: (2,5)-(2,6) = "(" │ │ ├── arguments: │ │ │ @ ArgumentsNode (location: (2,6)-(2,18)) - │ │ │ ├── arguments: (length: 2) - │ │ │ │ ├── @ LocalVariableReadNode (location: (2,6)-(2,14)) - │ │ │ │ │ ├── name: :argument - │ │ │ │ │ └── depth: 0 - │ │ │ │ └── @ KeywordHashNode (location: (2,16)-(2,18)) - │ │ │ │ └── elements: (length: 1) - │ │ │ │ └── @ AssocSplatNode (location: (2,16)-(2,18)) - │ │ │ │ ├── value: ∅ - │ │ │ │ └── operator_loc: (2,16)-(2,18) = "**" - │ │ │ └── flags: contains_keyword_splat + │ │ │ ├── flags: contains_keyword_splat + │ │ │ └── arguments: (length: 2) + │ │ │ ├── @ LocalVariableReadNode (location: (2,6)-(2,14)) + │ │ │ │ ├── name: :argument + │ │ │ │ └── depth: 0 + │ │ │ └── @ KeywordHashNode (location: (2,16)-(2,18)) + │ │ │ └── elements: (length: 1) + │ │ │ └── @ AssocSplatNode (location: (2,16)-(2,18)) + │ │ │ ├── value: ∅ + │ │ │ └── operator_loc: (2,16)-(2,18) = "**" │ │ ├── closing_loc: (2,18)-(2,19) = ")" - │ │ ├── block: ∅ - │ │ └── flags: ∅ + │ │ └── block: ∅ │ ├── locals: [:argument, :**] │ ├── locals_body_index: 2 │ ├── def_keyword_loc: (1,0)-(1,3) = "def" @@ -77,6 +77,7 @@ │ @ StatementsNode (location: (6,2)-(6,18)) │ └── body: (length: 1) │ └── @ CallNode (location: (6,2)-(6,18)) + │ ├── flags: ∅ │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ │ ├── name: :bar @@ -84,17 +85,16 @@ │ ├── opening_loc: (6,5)-(6,6) = "(" │ ├── arguments: │ │ @ ArgumentsNode (location: (6,6)-(6,17)) - │ │ ├── arguments: (length: 2) - │ │ │ ├── @ LocalVariableReadNode (location: (6,6)-(6,14)) - │ │ │ │ ├── name: :argument - │ │ │ │ └── depth: 0 - │ │ │ └── @ SplatNode (location: (6,16)-(6,17)) - │ │ │ ├── operator_loc: (6,16)-(6,17) = "*" - │ │ │ └── expression: ∅ - │ │ └── flags: ∅ + │ │ ├── flags: ∅ + │ │ └── arguments: (length: 2) + │ │ ├── @ LocalVariableReadNode (location: (6,6)-(6,14)) + │ │ │ ├── name: :argument + │ │ │ └── depth: 0 + │ │ └── @ SplatNode (location: (6,16)-(6,17)) + │ │ ├── operator_loc: (6,16)-(6,17) = "*" + │ │ └── expression: ∅ │ ├── closing_loc: (6,17)-(6,18) = ")" - │ ├── block: ∅ - │ └── flags: ∅ + │ └── block: ∅ ├── locals: [:argument, :*] ├── locals_body_index: 2 ├── def_keyword_loc: (5,0)-(5,3) = "def" |