| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":102,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":102,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ClassDeclaration", |
| 12 |
"start":0,"end":102,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":6,"end":15,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":15},"identifierName":"NodeUtils"}, |
| 16 |
"name": "NodeUtils" |
| 17 |
}, |
| 18 |
"superClass": { |
| 19 |
"type": "Identifier", |
| 20 |
"start":24,"end":34,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":34},"identifierName":"UtilParser"}, |
| 21 |
"name": "UtilParser" |
| 22 |
}, |
| 23 |
"body": { |
| 24 |
"type": "ClassBody", |
| 25 |
"start":35,"end":102,"loc":{"start":{"line":1,"column":35},"end":{"line":5,"column":1}}, |
| 26 |
"body": [ |
| 27 |
{ |
| 28 |
"type": "MethodDefinition", |
| 29 |
"start":39,"end":100,"loc":{"start":{"line":2,"column":2},"end":{"line":4,"column":3}}, |
| 30 |
"static": false, |
| 31 |
"key": { |
| 32 |
"type": "Identifier", |
| 33 |
"start":39,"end":51,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14},"identifierName":"finishNodeAt"}, |
| 34 |
"name": "finishNodeAt" |
| 35 |
}, |
| 36 |
"computed": false, |
| 37 |
"kind": "method", |
| 38 |
"value": { |
| 39 |
"type": "FunctionExpression", |
| 40 |
"start":65,"end":100,"loc":{"start":{"line":2,"column":28},"end":{"line":4,"column":3}}, |
| 41 |
"id": null, |
| 42 |
"generator": false, |
| 43 |
"async": false, |
| 44 |
"expression": false, |
| 45 |
"params": [ |
| 46 |
{ |
| 47 |
"type": "Identifier", |
| 48 |
"start":66,"end":73,"loc":{"start":{"line":2,"column":29},"end":{"line":2,"column":36},"identifierName":"node"}, |
| 49 |
"name": "node", |
| 50 |
"typeAnnotation": { |
| 51 |
"type": "TypeAnnotation", |
| 52 |
"start":70,"end":73,"loc":{"start":{"line":2,"column":33},"end":{"line":2,"column":36}}, |
| 53 |
"typeAnnotation": { |
| 54 |
"type": "GenericTypeAnnotation", |
| 55 |
"start":72,"end":73,"loc":{"start":{"line":2,"column":35},"end":{"line":2,"column":36}}, |
| 56 |
"typeParameters": null, |
| 57 |
"id": { |
| 58 |
"type": "Identifier", |
| 59 |
"start":72,"end":73,"loc":{"start":{"line":2,"column":35},"end":{"line":2,"column":36},"identifierName":"T"}, |
| 60 |
"name": "T" |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
], |
| 66 |
"predicate": null, |
| 67 |
"returnType": { |
| 68 |
"type": "TypeAnnotation", |
| 69 |
"start":74,"end":77,"loc":{"start":{"line":2,"column":37},"end":{"line":2,"column":40}}, |
| 70 |
"typeAnnotation": { |
| 71 |
"type": "GenericTypeAnnotation", |
| 72 |
"start":76,"end":77,"loc":{"start":{"line":2,"column":39},"end":{"line":2,"column":40}}, |
| 73 |
"typeParameters": null, |
| 74 |
"id": { |
| 75 |
"type": "Identifier", |
| 76 |
"start":76,"end":77,"loc":{"start":{"line":2,"column":39},"end":{"line":2,"column":40},"identifierName":"T"}, |
| 77 |
"name": "T" |
| 78 |
} |
| 79 |
} |
| 80 |
}, |
| 81 |
"body": { |
| 82 |
"type": "BlockStatement", |
| 83 |
"start":78,"end":100,"loc":{"start":{"line":2,"column":41},"end":{"line":4,"column":3}}, |
| 84 |
"body": [ |
| 85 |
{ |
| 86 |
"type": "ReturnStatement", |
| 87 |
"start":84,"end":96,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":16}}, |
| 88 |
"argument": { |
| 89 |
"type": "Identifier", |
| 90 |
"start":91,"end":95,"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":15},"identifierName":"node"}, |
| 91 |
"name": "node" |
| 92 |
} |
| 93 |
} |
| 94 |
] |
| 95 |
}, |
| 96 |
"typeParameters": { |
| 97 |
"type": "TypeParameterDeclaration", |
| 98 |
"start":51,"end":65,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":28}}, |
| 99 |
"params": [ |
| 100 |
{ |
| 101 |
"type": "TypeParameter", |
| 102 |
"start":52,"end":64,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":27}}, |
| 103 |
"name": "T", |
| 104 |
"variance": null, |
| 105 |
"bound": { |
| 106 |
"type": "TypeAnnotation", |
| 107 |
"start":54,"end":64,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":27}}, |
| 108 |
"typeAnnotation": { |
| 109 |
"type": "GenericTypeAnnotation", |
| 110 |
"start":56,"end":64,"loc":{"start":{"line":2,"column":19},"end":{"line":2,"column":27}}, |
| 111 |
"typeParameters": null, |
| 112 |
"id": { |
| 113 |
"type": "Identifier", |
| 114 |
"start":56,"end":64,"loc":{"start":{"line":2,"column":19},"end":{"line":2,"column":27},"identifierName":"NodeType"}, |
| 115 |
"name": "NodeType" |
| 116 |
} |
| 117 |
} |
| 118 |
} |
| 119 |
} |
| 120 |
] |
| 121 |
} |
| 122 |
} |
| 123 |
} |
| 124 |
] |
| 125 |
} |
| 126 |
} |
| 127 |
] |
| 128 |
} |
| 129 |
} |