summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/str_str_str.txt
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-04-29 15:31:41 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-01 12:34:29 -0400
commitcfe7019ef517804e0b36c5beeb520191d7eb9b52 (patch)
treea8d51ad7d9c7be4dbc6ec695115452ab4cb20c74 /test/prism/snapshots/seattlerb/str_str_str.txt
parentb6fa18fbe90c63b2979a4f1f8aecab1de4373664 (diff)
[ruby/prism] Match CRuby interpolation semantics
If a single string that is a static literal is interpolated, it does not impact whether or not the parent is a static literal. In this way, if you have something like a regular expression that interpolates a string literal, it's possible that you will end up pushing just a single regexp onto the stack as opposed to calling out to toregexp. https://github.com/ruby/prism/commit/4f096c2257
Diffstat (limited to 'test/prism/snapshots/seattlerb/str_str_str.txt')
-rw-r--r--test/prism/snapshots/seattlerb/str_str_str.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/prism/snapshots/seattlerb/str_str_str.txt b/test/prism/snapshots/seattlerb/str_str_str.txt
index b01f2b5794..b592d380ef 100644
--- a/test/prism/snapshots/seattlerb/str_str_str.txt
+++ b/test/prism/snapshots/seattlerb/str_str_str.txt
@@ -4,7 +4,7 @@
@ StatementsNode (location: (1,0)-(1,12))
└── body: (length: 1)
└── @ InterpolatedStringNode (location: (1,0)-(1,12))
- ├── flags: ∅
+ ├── flags: mutable
├── opening_loc: (1,0)-(1,1) = "\""
├── parts: (length: 3)
│ ├── @ StringNode (location: (1,1)-(1,3))
@@ -19,7 +19,7 @@
│ │ │ @ StatementsNode (location: (1,5)-(1,8))
│ │ │ └── body: (length: 1)
│ │ │ └── @ StringNode (location: (1,5)-(1,8))
- │ │ │ ├── flags: ∅
+ │ │ │ ├── flags: frozen
│ │ │ ├── opening_loc: (1,5)-(1,6) = "'"
│ │ │ ├── content_loc: (1,6)-(1,7) = "b"
│ │ │ ├── closing_loc: (1,7)-(1,8) = "'"