diff options
author | Kevin Menard <kevin@nirvdrum.com> | 2024-01-24 16:39:06 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-01-26 20:15:19 +0000 |
commit | 2a509787cb8869301b614139218432aef9b68f9b (patch) | |
tree | 93c7e278fd5124be8697581b1a53d78b923ffed7 /test/prism/snapshots/seattlerb/case_in_37.txt | |
parent | 3d996e827f2ff74a1bb7e978d754cea7d957b9eb (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/case_in_37.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/case_in_37.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/prism/snapshots/seattlerb/case_in_37.txt b/test/prism/snapshots/seattlerb/case_in_37.txt index 117b27503a..1a1d887b4f 100644 --- a/test/prism/snapshots/seattlerb/case_in_37.txt +++ b/test/prism/snapshots/seattlerb/case_in_37.txt @@ -6,7 +6,7 @@ └── @ CaseMatchNode (location: (1,0)-(4,3)) ├── predicate: │ @ SymbolNode (location: (1,5)-(1,7)) - │ ├── flags: ∅ + │ ├── flags: forced_us_ascii_encoding │ ├── opening_loc: (1,5)-(1,6) = ":" │ ├── value_loc: (1,6)-(1,7) = "a" │ ├── closing_loc: ∅ @@ -20,7 +20,7 @@ │ │ │ └── @ AssocNode (location: (2,5)-(2,17)) │ │ │ ├── key: │ │ │ │ @ SymbolNode (location: (2,5)-(2,7)) - │ │ │ │ ├── flags: ∅ + │ │ │ │ ├── flags: forced_us_ascii_encoding │ │ │ │ ├── opening_loc: ∅ │ │ │ │ ├── value_loc: (2,5)-(2,6) = "b" │ │ │ │ ├── closing_loc: (2,6)-(2,7) = ":" @@ -46,7 +46,7 @@ │ │ @ StatementsNode (location: (3,2)-(3,4)) │ │ └── body: (length: 1) │ │ └── @ SymbolNode (location: (3,2)-(3,4)) - │ │ ├── flags: ∅ + │ │ ├── flags: forced_us_ascii_encoding │ │ ├── opening_loc: (3,2)-(3,3) = ":" │ │ ├── value_loc: (3,3)-(3,4) = "c" │ │ ├── closing_loc: ∅ |