summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
diff options
context:
space:
mode:
authorKevin Menard <kevin@nirvdrum.com>2024-01-24 16:39:06 -0500
committergit <svn-admin@ruby-lang.org>2024-01-26 20:15:19 +0000
commit2a509787cb8869301b614139218432aef9b68f9b (patch)
tree93c7e278fd5124be8697581b1a53d78b923ffed7 /test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
parent3d996e827f2ff74a1bb7e978d754cea7d957b9eb (diff)
[ruby/prism] Track whether a Symbol should have its encoding changed from the source encoding.
Ruby sets a Symbol literal's encoding to US-ASCII if the symbols consists only of US ASCII code points. Character escapes can also lead a Symbol to have a different encoding than its source's encoding. https://github.com/ruby/prism/commit/f315660b31
Diffstat (limited to 'test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt')
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
index 154e75fe10..4d6d8f6f18 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
@@ -24,7 +24,7 @@
│ │ @ StatementsNode (location: (2,2)-(2,8))
│ │ └── body: (length: 1)
│ │ └── @ SymbolNode (location: (2,2)-(2,8))
- │ │ ├── flags: ∅
+ │ │ ├── flags: forced_us_ascii_encoding
│ │ ├── opening_loc: (2,2)-(2,3) = ":"
│ │ ├── value_loc: (2,3)-(2,8) = "begin"
│ │ ├── closing_loc: ∅
@@ -39,7 +39,7 @@
│ │ │ @ StatementsNode (location: (4,2)-(4,9))
│ │ │ └── body: (length: 1)
│ │ │ └── @ SymbolNode (location: (4,2)-(4,9))
- │ │ │ ├── flags: ∅
+ │ │ │ ├── flags: forced_us_ascii_encoding
│ │ │ ├── opening_loc: (4,2)-(4,3) = ":"
│ │ │ ├── value_loc: (4,3)-(4,9) = "rescue"
│ │ │ ├── closing_loc: ∅
@@ -52,7 +52,7 @@
│ │ │ @ StatementsNode (location: (6,2)-(6,7))
│ │ │ └── body: (length: 1)
│ │ │ └── @ SymbolNode (location: (6,2)-(6,7))
- │ │ │ ├── flags: ∅
+ │ │ │ ├── flags: forced_us_ascii_encoding
│ │ │ ├── opening_loc: (6,2)-(6,3) = ":"
│ │ │ ├── value_loc: (6,3)-(6,7) = "else"
│ │ │ ├── closing_loc: ∅
@@ -65,7 +65,7 @@
│ │ │ @ StatementsNode (location: (8,2)-(8,9))
│ │ │ └── body: (length: 1)
│ │ │ └── @ SymbolNode (location: (8,2)-(8,9))
- │ │ │ ├── flags: ∅
+ │ │ │ ├── flags: forced_us_ascii_encoding
│ │ │ ├── opening_loc: (8,2)-(8,3) = ":"
│ │ │ ├── value_loc: (8,3)-(8,9) = "ensure"
│ │ │ ├── closing_loc: ∅