| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":101,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":101}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":101,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":101}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "FunctionDeclaration", |
| 12 |
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":50}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":10,"end":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12},"identifierName":"f1"}, |
| 16 |
"name": "f1" |
| 17 |
}, |
| 18 |
"generator": true, |
| 19 |
"async": false, |
| 20 |
"params": [], |
| 21 |
"body": { |
| 22 |
"type": "BlockStatement", |
| 23 |
"start":15,"end":50,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":5,"column":1,"index":50}}, |
| 24 |
"body": [ |
| 25 |
{ |
| 26 |
"type": "ExpressionStatement", |
| 27 |
"start":19,"end":31,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":14,"index":31}}, |
| 28 |
"expression": { |
| 29 |
"type": "YieldExpression", |
| 30 |
"start":19,"end":31,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":14,"index":31}}, |
| 31 |
"delegate": false, |
| 32 |
"argument": { |
| 33 |
"type": "RegExpLiteral", |
| 34 |
"start":25,"end":31,"loc":{"start":{"line":2,"column":8,"index":25},"end":{"line":2,"column":14,"index":31}}, |
| 35 |
"extra": { |
| 36 |
"raw": "/ 1 /g" |
| 37 |
}, |
| 38 |
"pattern": " 1 ", |
| 39 |
"flags": "g" |
| 40 |
} |
| 41 |
} |
| 42 |
}, |
| 43 |
{ |
| 44 |
"type": "ExpressionStatement", |
| 45 |
"start":34,"end":39,"loc":{"start":{"line":3,"column":2,"index":34},"end":{"line":3,"column":7,"index":39}}, |
| 46 |
"expression": { |
| 47 |
"type": "YieldExpression", |
| 48 |
"start":34,"end":39,"loc":{"start":{"line":3,"column":2,"index":34},"end":{"line":3,"column":7,"index":39}}, |
| 49 |
"delegate": false, |
| 50 |
"argument": null |
| 51 |
} |
| 52 |
}, |
| 53 |
{ |
| 54 |
"type": "ExpressionStatement", |
| 55 |
"start":42,"end":48,"loc":{"start":{"line":4,"column":2,"index":42},"end":{"line":4,"column":8,"index":48}}, |
| 56 |
"expression": { |
| 57 |
"type": "RegExpLiteral", |
| 58 |
"start":42,"end":48,"loc":{"start":{"line":4,"column":2,"index":42},"end":{"line":4,"column":8,"index":48}}, |
| 59 |
"extra": { |
| 60 |
"raw": "/ 1 /g" |
| 61 |
}, |
| 62 |
"pattern": " 1 ", |
| 63 |
"flags": "g" |
| 64 |
} |
| 65 |
} |
| 66 |
], |
| 67 |
"directives": [] |
| 68 |
} |
| 69 |
}, |
| 70 |
{ |
| 71 |
"type": "FunctionDeclaration", |
| 72 |
"start":51,"end":101,"loc":{"start":{"line":6,"column":0,"index":51},"end":{"line":10,"column":1,"index":101}}, |
| 73 |
"id": { |
| 74 |
"type": "Identifier", |
| 75 |
"start":61,"end":63,"loc":{"start":{"line":6,"column":10,"index":61},"end":{"line":6,"column":12,"index":63},"identifierName":"f2"}, |
| 76 |
"name": "f2" |
| 77 |
}, |
| 78 |
"generator": true, |
| 79 |
"async": false, |
| 80 |
"params": [], |
| 81 |
"body": { |
| 82 |
"type": "BlockStatement", |
| 83 |
"start":66,"end":101,"loc":{"start":{"line":6,"column":15,"index":66},"end":{"line":10,"column":1,"index":101}}, |
| 84 |
"body": [ |
| 85 |
{ |
| 86 |
"type": "ExpressionStatement", |
| 87 |
"start":70,"end":82,"loc":{"start":{"line":7,"column":2,"index":70},"end":{"line":7,"column":14,"index":82}}, |
| 88 |
"expression": { |
| 89 |
"type": "YieldExpression", |
| 90 |
"start":70,"end":82,"loc":{"start":{"line":7,"column":2,"index":70},"end":{"line":7,"column":14,"index":82}}, |
| 91 |
"delegate": false, |
| 92 |
"argument": { |
| 93 |
"type": "RegExpLiteral", |
| 94 |
"start":76,"end":82,"loc":{"start":{"line":7,"column":8,"index":76},"end":{"line":7,"column":14,"index":82}}, |
| 95 |
"extra": { |
| 96 |
"raw": "/=2 /i" |
| 97 |
}, |
| 98 |
"pattern": "=2 ", |
| 99 |
"flags": "i" |
| 100 |
} |
| 101 |
} |
| 102 |
}, |
| 103 |
{ |
| 104 |
"type": "ExpressionStatement", |
| 105 |
"start":85,"end":90,"loc":{"start":{"line":8,"column":2,"index":85},"end":{"line":8,"column":7,"index":90}}, |
| 106 |
"expression": { |
| 107 |
"type": "YieldExpression", |
| 108 |
"start":85,"end":90,"loc":{"start":{"line":8,"column":2,"index":85},"end":{"line":8,"column":7,"index":90}}, |
| 109 |
"delegate": false, |
| 110 |
"argument": null |
| 111 |
} |
| 112 |
}, |
| 113 |
{ |
| 114 |
"type": "ExpressionStatement", |
| 115 |
"start":93,"end":99,"loc":{"start":{"line":9,"column":2,"index":93},"end":{"line":9,"column":8,"index":99}}, |
| 116 |
"expression": { |
| 117 |
"type": "RegExpLiteral", |
| 118 |
"start":93,"end":99,"loc":{"start":{"line":9,"column":2,"index":93},"end":{"line":9,"column":8,"index":99}}, |
| 119 |
"extra": { |
| 120 |
"raw": "/=2 /i" |
| 121 |
}, |
| 122 |
"pattern": "=2 ", |
| 123 |
"flags": "i" |
| 124 |
} |
| 125 |
} |
| 126 |
], |
| 127 |
"directives": [] |
| 128 |
} |
| 129 |
} |
| 130 |
], |
| 131 |
"directives": [] |
| 132 |
} |
| 133 |
} |