diff options
Diffstat (limited to 'test/yarp/snapshots/unparser/corpus/literal')
5 files changed, 22 insertions, 13 deletions
diff --git a/test/yarp/snapshots/unparser/corpus/literal/assignment.txt b/test/yarp/snapshots/unparser/corpus/literal/assignment.txt index bcf853886f..6166e0cd26 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/assignment.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/assignment.txt @@ -66,8 +66,8 @@ ProgramNode(0...704)( (74...75) ), MultiWriteNode(85...102)( - [InstanceVariableTargetNode(86...88)(), - InstanceVariableTargetNode(90...92)()], + [InstanceVariableTargetNode(86...88)(:a), + InstanceVariableTargetNode(90...92)(:b)], (94...95), ArrayNode(96...102)( [IntegerNode(97...98)(), IntegerNode(100...101)()], @@ -296,6 +296,7 @@ ProgramNode(0...704)( (306...307) ), InstanceVariableWriteNode(310...316)( + :a, (310...312), IntegerNode(315...316)(), (313...314) @@ -605,6 +606,7 @@ ProgramNode(0...704)( (543...546) ), InstanceVariableOrWriteNode(551...561)( + :a, (551...553), (554...557), StringNode(558...561)((558...560), (560...560), (560...561), "") @@ -698,6 +700,7 @@ ProgramNode(0...704)( (665...668) ), InstanceVariableOrWriteNode(687...704)( + :a, (687...689), (690...693), InterpolatedStringNode(694...704)( diff --git a/test/yarp/snapshots/unparser/corpus/literal/defined.txt b/test/yarp/snapshots/unparser/corpus/literal/defined.txt index c2d6a71bb1..1d39c45c83 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/defined.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/defined.txt @@ -3,7 +3,7 @@ ProgramNode(0...56)( StatementsNode(0...56)( [DefinedNode(0...14)( (8...9), - InstanceVariableReadNode(9...13)(), + InstanceVariableReadNode(9...13)(:foo), (13...14), (0...8) ), diff --git a/test/yarp/snapshots/unparser/corpus/literal/dstr.txt b/test/yarp/snapshots/unparser/corpus/literal/dstr.txt index 8466149369..49d08824bf 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/dstr.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/dstr.txt @@ -75,7 +75,7 @@ ProgramNode(0...299)( [StringNode(160...161)(nil, (160...161), nil, "a"), EmbeddedVariableNode(161...164)( (161...162), - InstanceVariableReadNode(162...164)() + InstanceVariableReadNode(162...164)(:a) )], (164...165) ), diff --git a/test/yarp/snapshots/unparser/corpus/literal/literal.txt b/test/yarp/snapshots/unparser/corpus/literal/literal.txt index bc9f86842d..a38a7f4f88 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/literal.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/literal.txt @@ -153,7 +153,7 @@ ProgramNode(0...916)( (206...207), [EmbeddedVariableNode(207...210)( (207...208), - InstanceVariableReadNode(208...210)() + InstanceVariableReadNode(208...210)(:a) ), StringNode(210...211)(nil, (210...211), nil, " "), EmbeddedVariableNode(211...215)( @@ -267,7 +267,9 @@ ProgramNode(0...916)( [StringNode(419...422)(nil, (419...422), nil, "foo"), EmbeddedStatementsNode(422...429)( (422...424), - StatementsNode(424...428)([InstanceVariableReadNode(424...428)()]), + StatementsNode(424...428)( + [InstanceVariableReadNode(424...428)(:bar)] + ), (428...429) )], (429...430) @@ -300,7 +302,9 @@ ProgramNode(0...916)( [StringNode(516...519)(nil, (516...519), nil, "foo"), EmbeddedStatementsNode(519...526)( (519...521), - StatementsNode(521...525)([InstanceVariableReadNode(521...525)()]), + StatementsNode(521...525)( + [InstanceVariableReadNode(521...525)(:bar)] + ), (525...526) )], (526...527), @@ -311,7 +315,9 @@ ProgramNode(0...916)( [StringNode(529...532)(nil, (529...532), nil, "foo"), EmbeddedStatementsNode(532...539)( (532...534), - StatementsNode(534...538)([InstanceVariableReadNode(534...538)()]), + StatementsNode(534...538)( + [InstanceVariableReadNode(534...538)(:bar)] + ), (538...539) )], (539...543), @@ -501,7 +507,7 @@ ProgramNode(0...916)( [IntegerNode(693...694)(), SplatNode(696...701)( (696...697), - InstanceVariableReadNode(697...701)() + InstanceVariableReadNode(697...701)(:foo) )], (692...693), (701...702) @@ -509,7 +515,7 @@ ProgramNode(0...916)( ArrayNode(703...713)( [SplatNode(704...709)( (704...705), - InstanceVariableReadNode(705...709)() + InstanceVariableReadNode(705...709)(:foo) ), IntegerNode(711...712)()], (703...704), @@ -518,11 +524,11 @@ ProgramNode(0...916)( ArrayNode(714...728)( [SplatNode(715...720)( (715...716), - InstanceVariableReadNode(716...720)() + InstanceVariableReadNode(716...720)(:foo) ), SplatNode(722...727)( (722...723), - InstanceVariableReadNode(723...727)() + InstanceVariableReadNode(723...727)(:baz) )], (714...715), (727...728) diff --git a/test/yarp/snapshots/unparser/corpus/literal/variables.txt b/test/yarp/snapshots/unparser/corpus/literal/variables.txt index b7ab14e36c..29857ec53c 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/variables.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/variables.txt @@ -2,7 +2,7 @@ ProgramNode(0...66)( [], StatementsNode(0...66)( [CallNode(0...1)(nil, nil, (0...1), nil, nil, nil, nil, 2, "a"), - InstanceVariableReadNode(2...4)(), + InstanceVariableReadNode(2...4)(:a), ClassVariableReadNode(5...8)(), GlobalVariableReadNode(9...11)(), NumberedReferenceReadNode(12...14)(), |