File: arrayDestructuring01.js.ast.xml

package info (click to toggle)
libnb-platform18-java 12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 729,800 kB
  • sloc: java: 5,059,097; xml: 574,432; php: 78,788; javascript: 29,039; ansic: 10,278; sh: 6,386; cpp: 4,612; jsp: 3,643; sql: 1,097; makefile: 540; objc: 288; perl: 277; haskell: 93
file content (124 lines) | stat: -rw-r--r-- 4,091 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<FunctionNode name=':program' kind='SCRIPT' start='0' end='156'>
  <isProgram/>
  <!-- FunctionNode Parameters -->
  <!-- FunctionNode Body -->
  <Block start='0' end='156'>
    <isFunctionBody/>
    <isSynthetic/>
    <!-- Block Statements -->
    <VarNode name='a' start='4' end='5'>
    </VarNode>
    <VarNode name='b' start='7' end='8'>
    </VarNode>
    <VarNode name='c' start='10' end='11'>
    </VarNode>
    <VarNode name='d' start='17' end='22'>
      <hasInit/>
      <isAssignment/>
      <!-- VarNode Assignment Dest -->
      <IdentNode start='17' end='18'>
        <name>d</name>
        <isDeclaredHere/>
        <isInitializedHere/>
      </IdentNode>
      <!-- VarNode Init -->
      <NumberLiteralNode value='4' start='21' end='22'/>
    </VarNode>
    <ExpressionStatement start='24' end='60'>
      <BinaryNode type='ASSIGN' start='24' end='59'>
        <isAssignment/>
        <!-- BinaryNode lhs -->
        <ArrayLiteralNode start='24' end='35'>
          <IdentNode start='25' end='26'>
            <name>a</name>
          </IdentNode>
          <IdentNode start='27' end='28'>
            <name>b</name>
          </IdentNode>
          <IdentNode start='30' end='31'>
            <name>c</name>
          </IdentNode>
          <IdentNode start='33' end='34'>
            <name>d</name>
          </IdentNode>
        </ArrayLiteralNode>
        <!-- BinaryNode rhs -->
        <ArrayLiteralNode start='38' end='59'>
          <NumberLiteralNode value='1' start='39' end='40'/>
          <NumberLiteralNode value='2' start='42' end='43'/>
          <StringLiteralNode value='testik' start='46' end='52'/>
          <BinaryNode type='ADD' start='55' end='58'>
            <!-- BinaryNode lhs -->
            <IdentNode start='55' end='56'>
              <name>d</name>
            </IdentNode>
            <!-- BinaryNode rhs -->
            <IdentNode start='57' end='58'>
              <name>d</name>
            </IdentNode>
          </BinaryNode>
        </ArrayLiteralNode>
      </BinaryNode>
    </ExpressionStatement>
    <ExpressionStatement start='66' end='86'>
      <CallNode start='66' end='80'>
        <!-- CallNode Arguments -->
        <IdentNode start='78' end='79'>
          <name>a</name>
        </IdentNode>
        <!-- CallNode Function -->
        <AccessNode property='log' start='66' end='77'>
          <!-- AccessNode Base -->
          <IdentNode start='66' end='73'>
            <name>console</name>
          </IdentNode>
        </AccessNode>
      </CallNode>
    </ExpressionStatement>
    <ExpressionStatement start='87' end='107'>
      <CallNode start='87' end='101'>
        <!-- CallNode Arguments -->
        <IdentNode start='99' end='100'>
          <name>b</name>
        </IdentNode>
        <!-- CallNode Function -->
        <AccessNode property='log' start='87' end='98'>
          <!-- AccessNode Base -->
          <IdentNode start='87' end='94'>
            <name>console</name>
          </IdentNode>
        </AccessNode>
      </CallNode>
    </ExpressionStatement>
    <ExpressionStatement start='108' end='135'>
      <CallNode start='108' end='122'>
        <!-- CallNode Arguments -->
        <IdentNode start='120' end='121'>
          <name>c</name>
        </IdentNode>
        <!-- CallNode Function -->
        <AccessNode property='log' start='108' end='119'>
          <!-- AccessNode Base -->
          <IdentNode start='108' end='115'>
            <name>console</name>
          </IdentNode>
        </AccessNode>
      </CallNode>
    </ExpressionStatement>
    <ExpressionStatement start='136' end='156'>
      <CallNode start='136' end='150'>
        <!-- CallNode Arguments -->
        <IdentNode start='148' end='149'>
          <name>d</name>
        </IdentNode>
        <!-- CallNode Function -->
        <AccessNode property='log' start='136' end='147'>
          <!-- AccessNode Base -->
          <IdentNode start='136' end='143'>
            <name>console</name>
          </IdentNode>
        </AccessNode>
      </CallNode>
    </ExpressionStatement>
  </Block>
</FunctionNode>