summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/symbols_interp.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/symbols_interp.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/symbols_interp.txt')
-rw-r--r--test/prism/snapshots/seattlerb/symbols_interp.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/prism/snapshots/seattlerb/symbols_interp.txt b/test/prism/snapshots/seattlerb/symbols_interp.txt
index d141c9a5a2..2ad3cc502d 100644
--- a/test/prism/snapshots/seattlerb/symbols_interp.txt
+++ b/test/prism/snapshots/seattlerb/symbols_interp.txt
@@ -7,19 +7,19 @@
├── flags: ∅
├── elements: (length: 3)
│ ├── @ SymbolNode (location: (1,3)-(1,4))
- │ │ ├── flags: ∅
+ │ │ ├── flags: forced_us_ascii_encoding
│ │ ├── opening_loc: ∅
│ │ ├── value_loc: (1,3)-(1,4) = "a"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "a"
│ ├── @ SymbolNode (location: (1,5)-(1,12))
- │ │ ├── flags: ∅
+ │ │ ├── flags: forced_us_ascii_encoding
│ │ ├── opening_loc: ∅
│ │ ├── value_loc: (1,5)-(1,12) = "b\#{1+1}"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "b\#{1+1}"
│ └── @ SymbolNode (location: (1,13)-(1,14))
- │ ├── flags: ∅
+ │ ├── flags: forced_us_ascii_encoding
│ ├── opening_loc: ∅
│ ├── value_loc: (1,13)-(1,14) = "c"
│ ├── closing_loc: ∅