{ "type": "Program", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "g", "range": [ 10, 11 ], "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 11 } } }, "params": [ { "type": "ArrayPattern", "elements": [], "range": [ 12, 14 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 14 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 17, 29 ], "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 29 } } }, "directive": "use strict", "range": [ 17, 30 ], "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 30 } } } ], "range": [ 15, 32 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 32 } } }, "generator": true, "expression": false, "async": false, "range": [ 0, 32 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 32 } } } ], "sourceType": "script", "range": [ 0, 32 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 32 } }, "tokens": [ { "type": "Keyword", "value": "function", "range": [ 0, 8 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 8 } } }, { "type": "Punctuator", "value": "*", "range": [ 9, 10 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 10 } } }, { "type": "Identifier", "value": "g", "range": [ 10, 11 ], "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 11 } } }, { "type": "Punctuator", "value": "(", "range": [ 11, 12 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 12 } } }, { "type": "Punctuator", "value": "[", "range": [ 12, 13 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 13 } } }, { "type": "Punctuator", "value": "]", "range": [ 13, 14 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 14 } } }, { "type": "Punctuator", "value": ")", "range": [ 14, 15 ], "loc": { "start": { "line": 1, "column": 14 }, "end": { "line": 1, "column": 15 } } }, { "type": "Punctuator", "value": "{", "range": [ 15, 16 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 16 } } }, { "type": "String", "value": "\"use strict\"", "range": [ 17, 29 ], "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 29 } } }, { "type": "Punctuator", "value": ";", "range": [ 29, 30 ], "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 30 } } }, { "type": "Punctuator", "value": "}", "range": [ 31, 32 ], "loc": { "start": { "line": 1, "column": 31 }, "end": { "line": 1, "column": 32 } } } ], "errors": [ { "index": 17, "lineNumber": 1, "column": 18, "message": "Error: Line 1: Illegal 'use strict' directive in function with non-simple parameter list" } ] }