Skip to content

Commit 028da46

Browse files
committed
Do not give a SourceSection to the SplatCastNode of a MultipleAssignmentNode
* Otherwise it is consired instrumentable, but instrumentation cannot replace it safely in MultipleAssignmentNode, as RubyNodeWrapper does not have `#execute(Object value)`.
1 parent b1e4506 commit 028da46

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/org/truffleruby/parser/BodyTranslator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,7 +2212,6 @@ public RubyNode visitMultipleAsgnNode(MultipleAsgnParseNode node) {
22122212
: SplatCastNode.NilBehavior.ARRAY_WITH_NIL,
22132213
true,
22142214
null);
2215-
splatCastNode.unsafeSetSourceSection(sourceSection);
22162215

22172216
final MultipleAssignmentNode ret = new MultipleAssignmentNode(
22182217
preNodes,

0 commit comments

Comments
 (0)