| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":223,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":16,"column":1,"index":223}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":223,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":16,"column":1,"index":223}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "FunctionDeclaration", |
| 12 |
"start":0,"end":223,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":16,"column":1,"index":223}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"}, |
| 16 |
"name": "foo" |
| 17 |
}, |
| 18 |
"generator": false, |
| 19 |
"async": false, |
| 20 |
"params": [], |
| 21 |
"body": { |
| 22 |
"type": "BlockStatement", |
| 23 |
"start":15,"end":223,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":16,"column":1,"index":223}}, |
| 24 |
"body": [ |
| 25 |
{ |
| 26 |
"type": "ReturnStatement", |
| 27 |
"start":19,"end":221,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":15,"column":4,"index":221}}, |
| 28 |
"argument": { |
| 29 |
"type": "JSXElement", |
| 30 |
"start":32,"end":216,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":14,"column":10,"index":216}}, |
| 31 |
"openingElement": { |
| 32 |
"type": "JSXOpeningElement", |
| 33 |
"start":32,"end":37,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":9,"index":37}}, |
| 34 |
"name": { |
| 35 |
"type": "JSXIdentifier", |
| 36 |
"start":33,"end":36,"loc":{"start":{"line":3,"column":5,"index":33},"end":{"line":3,"column":8,"index":36}}, |
| 37 |
"name": "nav" |
| 38 |
}, |
| 39 |
"attributes": [], |
| 40 |
"selfClosing": false |
| 41 |
}, |
| 42 |
"closingElement": { |
| 43 |
"type": "JSXClosingElement", |
| 44 |
"start":210,"end":216,"loc":{"start":{"line":14,"column":4,"index":210},"end":{"line":14,"column":10,"index":216}}, |
| 45 |
"name": { |
| 46 |
"type": "JSXIdentifier", |
| 47 |
"start":212,"end":215,"loc":{"start":{"line":14,"column":6,"index":212},"end":{"line":14,"column":9,"index":215}}, |
| 48 |
"name": "nav" |
| 49 |
} |
| 50 |
}, |
| 51 |
"children": [ |
| 52 |
{ |
| 53 |
"type": "JSXText", |
| 54 |
"start":37,"end":44,"loc":{"start":{"line":3,"column":9,"index":37},"end":{"line":4,"column":6,"index":44}}, |
| 55 |
"extra": { |
| 56 |
"rawValue": "\n ", |
| 57 |
"raw": "\n " |
| 58 |
}, |
| 59 |
"value": "\n " |
| 60 |
}, |
| 61 |
{ |
| 62 |
"type": "JSXElement", |
| 63 |
"start":44,"end":52,"loc":{"start":{"line":4,"column":6,"index":44},"end":{"line":4,"column":14,"index":52}}, |
| 64 |
"openingElement": { |
| 65 |
"type": "JSXOpeningElement", |
| 66 |
"start":44,"end":52,"loc":{"start":{"line":4,"column":6,"index":44},"end":{"line":4,"column":14,"index":52}}, |
| 67 |
"name": { |
| 68 |
"type": "JSXIdentifier", |
| 69 |
"start":45,"end":49,"loc":{"start":{"line":4,"column":7,"index":45},"end":{"line":4,"column":11,"index":49}}, |
| 70 |
"name": "Home" |
| 71 |
}, |
| 72 |
"attributes": [], |
| 73 |
"selfClosing": true |
| 74 |
}, |
| 75 |
"closingElement": null, |
| 76 |
"children": [] |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "JSXText", |
| 80 |
"start":52,"end":59,"loc":{"start":{"line":4,"column":14,"index":52},"end":{"line":5,"column":6,"index":59}}, |
| 81 |
"extra": { |
| 82 |
"rawValue": "\n ", |
| 83 |
"raw": "\n " |
| 84 |
}, |
| 85 |
"value": "\n " |
| 86 |
}, |
| 87 |
{ |
| 88 |
"type": "JSXExpressionContainer", |
| 89 |
"start":59,"end":205,"loc":{"start":{"line":5,"column":6,"index":59},"end":{"line":13,"column":7,"index":205}}, |
| 90 |
"expression": { |
| 91 |
"type": "DoExpression", |
| 92 |
"start":69,"end":197,"loc":{"start":{"line":6,"column":8,"index":69},"end":{"line":12,"column":9,"index":197}}, |
| 93 |
"async": false, |
| 94 |
"body": { |
| 95 |
"type": "BlockStatement", |
| 96 |
"start":72,"end":197,"loc":{"start":{"line":6,"column":11,"index":72},"end":{"line":12,"column":9,"index":197}}, |
| 97 |
"body": [ |
| 98 |
{ |
| 99 |
"type": "IfStatement", |
| 100 |
"start":84,"end":187,"loc":{"start":{"line":7,"column":10,"index":84},"end":{"line":11,"column":11,"index":187}}, |
| 101 |
"test": { |
| 102 |
"type": "Identifier", |
| 103 |
"start":88,"end":96,"loc":{"start":{"line":7,"column":14,"index":88},"end":{"line":7,"column":22,"index":96},"identifierName":"loggedIn"}, |
| 104 |
"name": "loggedIn" |
| 105 |
}, |
| 106 |
"consequent": { |
| 107 |
"type": "BlockStatement", |
| 108 |
"start":98,"end":140,"loc":{"start":{"line":7,"column":24,"index":98},"end":{"line":9,"column":11,"index":140}}, |
| 109 |
"body": [ |
| 110 |
{ |
| 111 |
"type": "ExpressionStatement", |
| 112 |
"start":112,"end":128,"loc":{"start":{"line":8,"column":12,"index":112},"end":{"line":8,"column":28,"index":128}}, |
| 113 |
"expression": { |
| 114 |
"type": "JSXElement", |
| 115 |
"start":112,"end":128,"loc":{"start":{"line":8,"column":12,"index":112},"end":{"line":8,"column":28,"index":128}}, |
| 116 |
"openingElement": { |
| 117 |
"type": "JSXOpeningElement", |
| 118 |
"start":112,"end":128,"loc":{"start":{"line":8,"column":12,"index":112},"end":{"line":8,"column":28,"index":128}}, |
| 119 |
"name": { |
| 120 |
"type": "JSXIdentifier", |
| 121 |
"start":113,"end":125,"loc":{"start":{"line":8,"column":13,"index":113},"end":{"line":8,"column":25,"index":125}}, |
| 122 |
"name": "LogoutButton" |
| 123 |
}, |
| 124 |
"attributes": [], |
| 125 |
"selfClosing": true |
| 126 |
}, |
| 127 |
"closingElement": null, |
| 128 |
"children": [] |
| 129 |
} |
| 130 |
} |
| 131 |
], |
| 132 |
"directives": [] |
| 133 |
}, |
| 134 |
"alternate": { |
| 135 |
"type": "BlockStatement", |
| 136 |
"start":146,"end":187,"loc":{"start":{"line":9,"column":17,"index":146},"end":{"line":11,"column":11,"index":187}}, |
| 137 |
"body": [ |
| 138 |
{ |
| 139 |
"type": "ExpressionStatement", |
| 140 |
"start":160,"end":175,"loc":{"start":{"line":10,"column":12,"index":160},"end":{"line":10,"column":27,"index":175}}, |
| 141 |
"expression": { |
| 142 |
"type": "JSXElement", |
| 143 |
"start":160,"end":175,"loc":{"start":{"line":10,"column":12,"index":160},"end":{"line":10,"column":27,"index":175}}, |
| 144 |
"openingElement": { |
| 145 |
"type": "JSXOpeningElement", |
| 146 |
"start":160,"end":175,"loc":{"start":{"line":10,"column":12,"index":160},"end":{"line":10,"column":27,"index":175}}, |
| 147 |
"name": { |
| 148 |
"type": "JSXIdentifier", |
| 149 |
"start":161,"end":172,"loc":{"start":{"line":10,"column":13,"index":161},"end":{"line":10,"column":24,"index":172}}, |
| 150 |
"name": "LoginButton" |
| 151 |
}, |
| 152 |
"attributes": [], |
| 153 |
"selfClosing": true |
| 154 |
}, |
| 155 |
"closingElement": null, |
| 156 |
"children": [] |
| 157 |
} |
| 158 |
} |
| 159 |
], |
| 160 |
"directives": [] |
| 161 |
} |
| 162 |
} |
| 163 |
], |
| 164 |
"directives": [] |
| 165 |
} |
| 166 |
} |
| 167 |
}, |
| 168 |
{ |
| 169 |
"type": "JSXText", |
| 170 |
"start":205,"end":210,"loc":{"start":{"line":13,"column":7,"index":205},"end":{"line":14,"column":4,"index":210}}, |
| 171 |
"extra": { |
| 172 |
"rawValue": "\n ", |
| 173 |
"raw": "\n " |
| 174 |
}, |
| 175 |
"value": "\n " |
| 176 |
} |
| 177 |
], |
| 178 |
"extra": { |
| 179 |
"parenthesized": true, |
| 180 |
"parenStart": 26 |
| 181 |
} |
| 182 |
} |
| 183 |
} |
| 184 |
], |
| 185 |
"directives": [] |
| 186 |
} |
| 187 |
} |
| 188 |
], |
| 189 |
"directives": [] |
| 190 |
} |
| 191 |
} |