aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/seattlerb/heredoc_lineno.txt
blob: 8d050ae8fe5c9d44b3f78f73375506bd84373d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@ ProgramNode (location: (0...41))
├── locals: [:c, :d]
└── statements:
    @ StatementsNode (location: (0...41))
    └── body: (length: 2)
        ├── @ LocalVariableWriteNode (location: (0...11))
        │   ├── name: :c
        │   ├── depth: 0
        │   ├── name_loc: (0...1) = "c"
        │   ├── value:
        │   │   @ InterpolatedStringNode (location: (4...11))
        │   │   ├── opening_loc: (4...11) = "<<'CCC'"
        │   │   ├── parts: (length: 1)
        │   │   │   └── @ StringNode (location: (12...30))
        │   │   │       ├── opening_loc: ∅
        │   │   │       ├── content_loc: (12...30) = "line2\nline3\nline4\n"
        │   │   │       ├── closing_loc: ∅
        │   │   │       └── unescaped: "line2\nline3\nline4\n"
        │   │   └── closing_loc: (30...34) = "CCC\n"
        │   └── operator_loc: (2...3) = "="
        └── @ LocalVariableWriteNode (location: (35...41))
            ├── name: :d
            ├── depth: 0
            ├── name_loc: (35...36) = "d"
            ├── value:
            │   @ IntegerNode (location: (39...41))
            │   └── flags: decimal
            └── operator_loc: (37...38) = "="