File: jsx6.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 (167 lines) | stat: -rw-r--r-- 7,773 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
<FunctionNode name=':program' kind='SCRIPT' start='0' end='302'>
  <isProgram/>
  <!-- FunctionNode Parameters -->
  <!-- FunctionNode Body -->
  <Block start='0' end='302'>
    <isFunctionBody/>
    <isSynthetic/>
    <!-- Block Statements -->
    <VarNode name='Test' start='0' end='10'>
      <hasInit/>
      <isAssignment/>
      <isBlockScoped/>
      <isConst/>
      <!-- VarNode Assignment Dest -->
      <IdentNode start='6' end='10'>
        <name>Test</name>
        <isInitializedHere/>
      </IdentNode>
      <!-- VarNode Init -->
      <ClassNode ident='Test' start='0' end='302'>
        <!-- ClassNode Constructor -->
        <PropertyNode name='Test' start='0' end='302'>
          <!-- PropertyNode Key -->
          <IdentNode start='6' end='10'>
            <name>Test</name>
          </IdentNode>
          <!-- PropertyNode Value -->
          <FunctionNode name='Test' kind='NORMAL' start='0' end='302'>
            <isClassConstructor/>
            <isMethod/>
            <isNamedFunctionExpression/>
            <!-- FunctionNode Parameters -->
            <!-- FunctionNode Body -->
            <Block start='0' end='302'>
              <isFunctionBody/>
              <!-- Block Statements -->
            </Block>
          </FunctionNode>
          <!-- PropertyNode Decorators -->
        </PropertyNode>
        <!-- ClassNode Elements -->
        <PropertyNode name='render' start='15' end='300'>
          <!-- PropertyNode Key -->
          <IdentNode start='15' end='21'>
            <name>render</name>
            <isPropertyName/>
          </IdentNode>
          <!-- PropertyNode Value -->
          <FunctionNode name='render' kind='NORMAL' start='15' end='300'>
            <isMethod/>
            <isNamedFunctionExpression/>
            <!-- FunctionNode Parameters -->
            <!-- FunctionNode Body -->
            <Block start='24' end='296'>
              <isFunctionBody/>
              <isTerminal/>
              <!-- Block Statements -->
              <ReturnNode start='30' end='296'>
                <JsxElementNode name='div' start='45' end='289'>
                  <!-- JSX Element Attributes -->
                  <JsxAttributeNode name='className' start='50' end='68'>
                    <!-- JSX Attribute Value -->
                    <AccessNode property='root' start='61' end='67'>
                      <!-- AccessNode Base -->
                      <IdentNode start='61' end='62'>
                        <name>s</name>
                      </IdentNode>
                    </AccessNode>
                  </JsxAttributeNode>
                  <!-- JSX Element Children -->
                  <JsxElementNode name='div' start='78' end='276'>
                    <!-- JSX Element Attributes -->
                    <JsxAttributeNode name='className' start='83' end='106'>
                      <!-- JSX Attribute Value -->
                      <AccessNode property='container' start='94' end='105'>
                        <!-- AccessNode Base -->
                        <IdentNode start='94' end='95'>
                          <name>s</name>
                        </IdentNode>
                      </AccessNode>
                    </JsxAttributeNode>
                    <!-- JSX Element Children -->
                    <TernaryNode start='143' end='179'>
                      <BinaryNode type='EQ_STRICT' start='119' end='141'>
                        <isComparison/>
                        <!-- BinaryNode lhs -->
                        <AccessNode property='path' start='119' end='134'>
                          <!-- AccessNode Base -->
                          <AccessNode property='props' start='119' end='129'>
                            <!-- AccessNode Base -->
                            <IdentNode start='119' end='123'>
                              <name>this</name>
                            </IdentNode>
                          </AccessNode>
                        </AccessNode>
                        <!-- BinaryNode rhs -->
                        <StringLiteralNode value='/' start='140' end='141'/>
                      </BinaryNode>
                      <JoinPredecessorExpression start='145' end='149'>
                        <NullLiteralNode start='145' end='149'/>
                      </JoinPredecessorExpression>
                      <JoinPredecessorExpression start='152' end='179'>
                        <JsxElementNode name='h1' start='152' end='179'>
                          <!-- JSX Element Attributes -->
                          <!-- JSX Element Children -->
                          <AccessNode property='title' start='157' end='173'>
                            <!-- AccessNode Base -->
                            <AccessNode property='props' start='157' end='167'>
                              <!-- AccessNode Base -->
                              <IdentNode start='157' end='161'>
                                <name>this</name>
                              </IdentNode>
                            </AccessNode>
                          </AccessNode>
                        </JsxElementNode>
                      </JoinPredecessorExpression>
                    </TernaryNode>
                    <JsxElementNode name='div' start='191' end='261'>
                      <!-- JSX Element Attributes -->
                      <JsxAttributeNode name='dangerouslySetInnerHTML' start='196' end='258'>
                        <!-- JSX Attribute Value -->
                        <ObjectNode start='221' end='257'>
                          <!-- ObjectNode Elements -->
                          <PropertyNode name='__html' start='223' end='254'>
                            <!-- PropertyNode Key -->
                            <IdentNode start='223' end='229'>
                              <name>__html</name>
                              <isPropertyName/>
                            </IdentNode>
                            <!-- PropertyNode Value -->
                            <BinaryNode type='OR' start='231' end='254'>
                              <isLogical/>
                              <!-- BinaryNode lhs -->
                              <JoinPredecessorExpression start='231' end='249'>
                                <AccessNode property='content' start='231' end='249'>
                                  <!-- AccessNode Base -->
                                  <AccessNode property='props' start='231' end='241'>
                                    <!-- AccessNode Base -->
                                    <IdentNode start='231' end='235'>
                                      <name>this</name>
                                    </IdentNode>
                                  </AccessNode>
                                </AccessNode>
                              </JoinPredecessorExpression>
                              <!-- BinaryNode rhs -->
                              <JoinPredecessorExpression start='254' end='254'>
                                <StringLiteralNode value='' start='254' end='254'/>
                              </JoinPredecessorExpression>
                            </BinaryNode>
                            <!-- PropertyNode Decorators -->
                          </PropertyNode>
                        </ObjectNode>
                      </JsxAttributeNode>
                      <!-- JSX Element Children -->
                    </JsxElementNode>
                  </JsxElementNode>
                </JsxElementNode>
              </ReturnNode>
            </Block>
          </FunctionNode>
          <!-- PropertyNode Decorators -->
        </PropertyNode>
        <!-- ClassNode Decorators -->
      </ClassNode>
    </VarNode>
  </Block>
</FunctionNode>