summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/single_method_call_with_bang.txt
diff options
context:
space:
mode:
authorMax Prokopiev <maxprokopiev@github.com>2024-02-16 14:43:35 +0100
committergit <svn-admin@ruby-lang.org>2024-02-16 14:08:56 +0000
commitf012ce0d18b19a8dfc815498108b9b5fdde26b46 (patch)
treee3ab256625f897656b45098a3316af6987eed402 /test/prism/snapshots/single_method_call_with_bang.txt
parentfbc29ce032ef18887b935b48da1b94863ca407d9 (diff)
[ruby/prism] Fix lexing of `foo!` when it's a first thing to parse
https://github.com/ruby/prism/commit/7597aca76a
Diffstat (limited to 'test/prism/snapshots/single_method_call_with_bang.txt')
-rw-r--r--test/prism/snapshots/single_method_call_with_bang.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/prism/snapshots/single_method_call_with_bang.txt b/test/prism/snapshots/single_method_call_with_bang.txt
new file mode 100644
index 0000000000..4c68e0adac
--- /dev/null
+++ b/test/prism/snapshots/single_method_call_with_bang.txt
@@ -0,0 +1,15 @@
+@ ProgramNode (location: (1,0)-(1,4))
+├── locals: []
+└── statements:
+ @ StatementsNode (location: (1,0)-(1,4))
+ └── body: (length: 1)
+ └── @ CallNode (location: (1,0)-(1,4))
+ ├── flags: ignore_visibility
+ ├── receiver: ∅
+ ├── call_operator_loc: ∅
+ ├── name: :foo!
+ ├── message_loc: (1,0)-(1,4) = "foo!"
+ ├── opening_loc: ∅
+ ├── arguments: ∅
+ ├── closing_loc: ∅
+ └── block: ∅