diff options
Diffstat (limited to 'test/yarp/snapshots/whitequark/var_op_asgn.txt')
-rw-r--r-- | test/yarp/snapshots/whitequark/var_op_asgn.txt | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/test/yarp/snapshots/whitequark/var_op_asgn.txt b/test/yarp/snapshots/whitequark/var_op_asgn.txt index 6085055890..7160141b07 100644 --- a/test/yarp/snapshots/whitequark/var_op_asgn.txt +++ b/test/yarp/snapshots/whitequark/var_op_asgn.txt @@ -1,53 +1,53 @@ -@ ProgramNode (location: (0...53)) +@ ProgramNode (location: (1,0)-(7,23)) ├── locals: [:a] └── statements: - @ StatementsNode (location: (0...53)) + @ StatementsNode (location: (1,0)-(7,23)) └── body: (length: 4) - ├── @ ClassVariableOperatorWriteNode (location: (0...11)) + ├── @ ClassVariableOperatorWriteNode (location: (1,0)-(1,11)) │ ├── name: :@@var - │ ├── name_loc: (0...5) = "@@var" - │ ├── operator_loc: (6...8) = "|=" + │ ├── name_loc: (1,0)-(1,5) = "@@var" + │ ├── operator_loc: (1,6)-(1,8) = "|=" │ ├── value: - │ │ @ IntegerNode (location: (9...11)) + │ │ @ IntegerNode (location: (1,9)-(1,11)) │ │ └── flags: decimal │ └── operator: :| - ├── @ InstanceVariableOperatorWriteNode (location: (13...20)) + ├── @ InstanceVariableOperatorWriteNode (location: (3,0)-(3,7)) │ ├── name: :@a - │ ├── name_loc: (13...15) = "@a" - │ ├── operator_loc: (16...18) = "|=" + │ ├── name_loc: (3,0)-(3,2) = "@a" + │ ├── operator_loc: (3,3)-(3,5) = "|=" │ ├── value: - │ │ @ IntegerNode (location: (19...20)) + │ │ @ IntegerNode (location: (3,6)-(3,7)) │ │ └── flags: decimal │ └── operator: :| - ├── @ LocalVariableOperatorWriteNode (location: (22...28)) - │ ├── name_loc: (22...23) = "a" - │ ├── operator_loc: (24...26) = "+=" + ├── @ LocalVariableOperatorWriteNode (location: (5,0)-(5,6)) + │ ├── name_loc: (5,0)-(5,1) = "a" + │ ├── operator_loc: (5,2)-(5,4) = "+=" │ ├── value: - │ │ @ IntegerNode (location: (27...28)) + │ │ @ IntegerNode (location: (5,5)-(5,6)) │ │ └── flags: decimal │ ├── name: :a │ ├── operator: :+ │ └── depth: 0 - └── @ DefNode (location: (30...53)) + └── @ DefNode (location: (7,0)-(7,23)) ├── name: :a - ├── name_loc: (34...35) = "a" + ├── name_loc: (7,4)-(7,5) = "a" ├── receiver: ∅ ├── parameters: ∅ ├── body: - │ @ StatementsNode (location: (37...48)) + │ @ StatementsNode (location: (7,7)-(7,18)) │ └── body: (length: 1) - │ └── @ ClassVariableOperatorWriteNode (location: (37...48)) + │ └── @ ClassVariableOperatorWriteNode (location: (7,7)-(7,18)) │ ├── name: :@@var - │ ├── name_loc: (37...42) = "@@var" - │ ├── operator_loc: (43...45) = "|=" + │ ├── name_loc: (7,7)-(7,12) = "@@var" + │ ├── operator_loc: (7,13)-(7,15) = "|=" │ ├── value: - │ │ @ IntegerNode (location: (46...48)) + │ │ @ IntegerNode (location: (7,16)-(7,18)) │ │ └── flags: decimal │ └── operator: :| ├── locals: [] - ├── def_keyword_loc: (30...33) = "def" + ├── def_keyword_loc: (7,0)-(7,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: ∅ ├── rparen_loc: ∅ ├── equal_loc: ∅ - └── end_keyword_loc: (50...53) = "end" + └── end_keyword_loc: (7,20)-(7,23) = "end" |