File: issue269061.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 (246 lines) | stat: -rw-r--r-- 8,921 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<FunctionNode name='issue269061.js' kind='MODULE' start='0' end='541'>
  <hasDeclaredFunctions/>
  <isProgram/>
  <ImportNode start='21' end='49'>
    <ImportClauseNode start='28' end='38'>
      <NamedImportsNode start='28' end='38'>
        <ImportSpecifierNode start='29' end='37'>
          <IdentNode start='29' end='37'>
            <name>basename</name>
          </IdentNode>
        </ImportSpecifierNode>
      </NamedImportsNode>
    </ImportClauseNode>
    <FromNode start='39' end='49'>
      <StringLiteralNode value='path' start='45' end='43'/>
    </FromNode>
  </ImportNode>
  <ImportNode start='51' end='93'>
    <ImportClauseNode start='58' end='84'>
      <NamedImportsNode start='58' end='84'>
        <ImportSpecifierNode start='59' end='83'>
          <IdentNode start='59' end='71'>
            <name>readFileSync</name>
          </IdentNode>
          <IdentNode start='75' end='83'>
            <name>readFile</name>
          </IdentNode>
        </ImportSpecifierNode>
      </NamedImportsNode>
    </ImportClauseNode>
    <FromNode start='85' end='93'>
      <StringLiteralNode value='fs' start='91' end='89'/>
    </FromNode>
  </ImportNode>
  <ImportNode start='95' end='135'>
    <ImportClauseNode start='102' end='112'>
      <NameSpaceImportNode start='102' end='112'>
        <IdentNode start='107' end='112'>
          <name>acorn</name>
        </IdentNode>
      </NameSpaceImportNode>
    </ImportClauseNode>
    <FromNode start='113' end='135'>
      <StringLiteralNode value='../dist/acorn.js' start='119' end='117'/>
    </FromNode>
  </ImportNode>
  <!-- FunctionNode Parameters -->
  <!-- FunctionNode Body -->
  <Block start='0' end='541'>
    <isFunctionBody/>
    <isSynthetic/>
    <!-- Block Statements -->
    <VarNode name='help' start='231' end='541'>
      <hasInit/>
      <isAssignment/>
      <isFunctionDeclaration/>
      <!-- VarNode Assignment Dest -->
      <IdentNode start='240' end='244'>
        <name>help</name>
        <isInitializedHere/>
      </IdentNode>
      <!-- VarNode Init -->
      <FunctionNode name='help' kind='NORMAL' start='231' end='541'>
        <isDeclared/>
        <!-- FunctionNode Parameters -->
        <IdentNode start='245' end='251'>
          <name>status</name>
        </IdentNode>
        <!-- FunctionNode Body -->
        <Block start='253' end='539'>
          <isFunctionBody/>
          <!-- Block Statements -->
          <VarNode name='print' start='263' end='314'>
            <hasInit/>
            <isAssignment/>
            <isBlockScoped/>
            <isConst/>
            <!-- VarNode Assignment Dest -->
            <IdentNode start='263' end='268'>
              <name>print</name>
              <isDeclaredHere/>
              <isInitializedHere/>
            </IdentNode>
            <!-- VarNode Init -->
            <TernaryNode start='285' end='314'>
              <BinaryNode type='EQ' start='272' end='283'>
                <isComparison/>
                <!-- BinaryNode lhs -->
                <IdentNode start='272' end='278'>
                  <name>status</name>
                </IdentNode>
                <!-- BinaryNode rhs -->
                <NumberLiteralNode value='0' start='282' end='283'/>
              </BinaryNode>
              <JoinPredecessorExpression start='287' end='298'>
                <AccessNode property='log' start='287' end='298'>
                  <!-- AccessNode Base -->
                  <IdentNode start='287' end='294'>
                    <name>console</name>
                  </IdentNode>
                </AccessNode>
              </JoinPredecessorExpression>
              <JoinPredecessorExpression start='301' end='314'>
                <AccessNode property='error' start='301' end='314'>
                  <!-- AccessNode Base -->
                  <IdentNode start='301' end='308'>
                    <name>console</name>
                  </IdentNode>
                </AccessNode>
              </JoinPredecessorExpression>
            </TernaryNode>
          </VarNode>
          <ExpressionStatement start='317' end='392'>
            <CallNode start='317' end='392'>
              <!-- CallNode Arguments -->
              <BinaryNode type='ADD' start='324' end='390'>
                <!-- BinaryNode lhs -->
                <BinaryNode type='ADD' start='324' end='360'>
                  <!-- BinaryNode lhs -->
                  <StringLiteralNode value='usage:' start='324' end='331'/>
                  <!-- BinaryNode rhs -->
                  <CallNode start='335' end='360'>
                    <!-- CallNode Arguments -->
                    <IndexNode start='344' end='359'>
                      <isIndex/>
                      <!-- IndexNode Base -->
                      <AccessNode property='argv' start='344' end='356'>
                        <!-- AccessNode Base -->
                        <IdentNode start='344' end='351'>
                          <name>process</name>
                        </IdentNode>
                      </AccessNode>
                      <!-- IndexNode Index -->
                      <NumberLiteralNode value='1' start='357' end='358'/>
                    </IndexNode>
                    <!-- CallNode Function -->
                    <IdentNode start='335' end='343'>
                      <name>basename</name>
                    </IdentNode>
                  </CallNode>
                </BinaryNode>
                <!-- BinaryNode rhs -->
                <StringLiteralNode value='[--ecma3|--ecma5|--ecma6]' start='364' end='390'/>
              </BinaryNode>
              <!-- CallNode Function -->
              <IdentNode start='317' end='322'>
                <name>print</name>
              </IdentNode>
            </CallNode>
          </ExpressionStatement>
          <ExpressionStatement start='395' end='516'>
            <CallNode start='395' end='516'>
              <!-- CallNode Arguments -->
              <StringLiteralNode value='[--tokenize] [--locations] [---allow-hash-bang] [--compact] [--silent] [--module] [--help] [--] [infile]' start='402' end='514'/>
              <!-- CallNode Function -->
              <IdentNode start='395' end='400'>
                <name>print</name>
              </IdentNode>
            </CallNode>
          </ExpressionStatement>
          <ExpressionStatement start='519' end='539'>
            <CallNode start='519' end='539'>
              <!-- CallNode Arguments -->
              <IdentNode start='532' end='538'>
                <name>status</name>
              </IdentNode>
              <!-- CallNode Function -->
              <AccessNode property='exit' start='519' end='531'>
                <!-- AccessNode Base -->
                <IdentNode start='519' end='526'>
                  <name>process</name>
                </IdentNode>
              </AccessNode>
            </CallNode>
          </ExpressionStatement>
        </Block>
      </FunctionNode>
    </VarNode>
    <VarNode name='infile' start='142' end='148'>
      <isBlockScoped/>
      <isLet/>
    </VarNode>
    <VarNode name='forceFile' start='150' end='159'>
      <isBlockScoped/>
      <isLet/>
    </VarNode>
    <VarNode name='silent' start='161' end='175'>
      <hasInit/>
      <isAssignment/>
      <isBlockScoped/>
      <isLet/>
      <!-- VarNode Assignment Dest -->
      <IdentNode start='161' end='167'>
        <name>silent</name>
        <isDeclaredHere/>
        <isInitializedHere/>
      </IdentNode>
      <!-- VarNode Init -->
      <BooleanLiteralNode value='false' start='170' end='175'/>
    </VarNode>
    <VarNode name='compact' start='177' end='192'>
      <hasInit/>
      <isAssignment/>
      <isBlockScoped/>
      <isLet/>
      <!-- VarNode Assignment Dest -->
      <IdentNode start='177' end='184'>
        <name>compact</name>
        <isDeclaredHere/>
        <isInitializedHere/>
      </IdentNode>
      <!-- VarNode Init -->
      <BooleanLiteralNode value='false' start='187' end='192'/>
    </VarNode>
    <VarNode name='tokenize' start='194' end='210'>
      <hasInit/>
      <isAssignment/>
      <isBlockScoped/>
      <isLet/>
      <!-- VarNode Assignment Dest -->
      <IdentNode start='194' end='202'>
        <name>tokenize</name>
        <isDeclaredHere/>
        <isInitializedHere/>
      </IdentNode>
      <!-- VarNode Init -->
      <BooleanLiteralNode value='false' start='205' end='210'/>
    </VarNode>
    <VarNode name='options' start='217' end='229'>
      <hasInit/>
      <isAssignment/>
      <isBlockScoped/>
      <isConst/>
      <!-- VarNode Assignment Dest -->
      <IdentNode start='217' end='224'>
        <name>options</name>
        <isDeclaredHere/>
        <isInitializedHere/>
      </IdentNode>
      <!-- VarNode Init -->
      <ObjectNode start='227' end='229'>
        <!-- ObjectNode Elements -->
      </ObjectNode>
    </VarNode>
  </Block>
</FunctionNode>