diff --git a/lib/ast-converter.js b/lib/ast-converter.js index f0ded24..0656150 100644 --- a/lib/ast-converter.js +++ b/lib/ast-converter.js @@ -105,6 +105,17 @@ function isESTreeClassMember(node) { return node.kind !== SyntaxKind.SemicolonClassElement; } +/** + * Returns true if the given node is an async function + * @param {TSNode} node TypeScript AST node + * @returns {boolean} is an async function + */ +function isAsyncFunction(node) { + return !!node.modifiers && !!node.modifiers.length && node.modifiers.some(function(modifier) { + return modifier.kind === SyntaxKind.AsyncKeyword; + }); +} + /** * Returns true if the given TSToken is a comma * @param {TSToken} token the TypeScript token @@ -852,6 +863,7 @@ module.exports = function(ast, extra) { id: convertChild(node.name), generator: !!node.asteriskToken, expression: false, + async: isAsyncFunction(node), params: node.parameters.map(convertChild), body: convertChild(node.body) }); @@ -1057,6 +1069,7 @@ module.exports = function(ast, extra) { id: null, generator: false, expression: false, + async: isAsyncFunction(node), body: convertChild(node.body), range: [ node.name.end, result.range[1]], loc: { @@ -1158,6 +1171,7 @@ module.exports = function(ast, extra) { }), generator: false, expression: false, + async: false, body: convertChild(node.body), range: [ result.range[0] + constructorStartOffset, result.range[1]], loc: { @@ -1226,6 +1240,7 @@ module.exports = function(ast, extra) { generator: !!node.asteriskToken, params: node.parameters.map(convertChild), body: convertChild(node.body), + async: isAsyncFunction(node), expression: false }); // Process returnType @@ -1308,6 +1323,7 @@ module.exports = function(ast, extra) { id: null, params: node.parameters.map(convertChild), body: convertChild(node.body), + async: isAsyncFunction(node), expression: node.body.kind !== SyntaxKind.Block }); // Process returnType @@ -1328,6 +1344,13 @@ module.exports = function(ast, extra) { }); break; + case SyntaxKind.AwaitExpression: + assign(result, { + type: "AwaitExpression", + expression: convertChild(node.expression) + }); + break; + // Template Literals case SyntaxKind.NoSubstitutionTemplateLiteral: diff --git a/lib/ast-node-types.js b/lib/ast-node-types.js index 7832c22..3265712 100644 --- a/lib/ast-node-types.js +++ b/lib/ast-node-types.js @@ -23,6 +23,7 @@ module.exports = { ArrayExpression: "ArrayExpression", ArrayPattern: "ArrayPattern", ArrowFunctionExpression: "ArrowFunctionExpression", + AwaitExpression: "AwaitExpression", BlockStatement: "BlockStatement", BinaryExpression: "BinaryExpression", BreakStatement: "BreakStatement", diff --git a/tests/fixtures/attach-comments/export-default-anonymous-class.result.js b/tests/fixtures/attach-comments/export-default-anonymous-class.result.js index 3c28224..978a65a 100644 --- a/tests/fixtures/attach-comments/export-default-anonymous-class.result.js +++ b/tests/fixtures/attach-comments/export-default-anonymous-class.result.js @@ -56,6 +56,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 110, 119 diff --git a/tests/fixtures/attach-comments/surrounding-call-comments.result.js b/tests/fixtures/attach-comments/surrounding-call-comments.result.js index 4190fdb..fd5615f 100644 --- a/tests/fixtures/attach-comments/surrounding-call-comments.result.js +++ b/tests/fixtures/attach-comments/surrounding-call-comments.result.js @@ -123,6 +123,7 @@ module.exports = { ] }, "expression": false, + "async": false, "generator": false } ], diff --git a/tests/fixtures/attach-comments/surrounding-debugger-comments.result.js b/tests/fixtures/attach-comments/surrounding-debugger-comments.result.js index ac5d5bb..1e55dce 100644 --- a/tests/fixtures/attach-comments/surrounding-debugger-comments.result.js +++ b/tests/fixtures/attach-comments/surrounding-debugger-comments.result.js @@ -87,6 +87,7 @@ module.exports = { ] }, "expression": false, + "async": false, "generator": false } ], diff --git a/tests/fixtures/attach-comments/surrounding-return-comments.result.js b/tests/fixtures/attach-comments/surrounding-return-comments.result.js index 40693bc..aa103fe 100644 --- a/tests/fixtures/attach-comments/surrounding-return-comments.result.js +++ b/tests/fixtures/attach-comments/surrounding-return-comments.result.js @@ -88,6 +88,7 @@ module.exports = { ] }, "expression": false, + "async": false, "generator": false } ], diff --git a/tests/fixtures/attach-comments/surrounding-throw-comments.result.js b/tests/fixtures/attach-comments/surrounding-throw-comments.result.js index bdae3d1..bcb53e1 100644 --- a/tests/fixtures/attach-comments/surrounding-throw-comments.result.js +++ b/tests/fixtures/attach-comments/surrounding-throw-comments.result.js @@ -106,6 +106,7 @@ module.exports = { ] }, "expression": false, + "async": false, "generator": false } ], diff --git a/tests/fixtures/attach-comments/surrounding-while-loop-comments.result.js b/tests/fixtures/attach-comments/surrounding-while-loop-comments.result.js index 58d1342..ec4e87b 100644 --- a/tests/fixtures/attach-comments/surrounding-while-loop-comments.result.js +++ b/tests/fixtures/attach-comments/surrounding-while-loop-comments.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/attach-comments/switch-fallthrough-comment-in-function.result.js b/tests/fixtures/attach-comments/switch-fallthrough-comment-in-function.result.js index e11fe19..210b717 100644 --- a/tests/fixtures/attach-comments/switch-fallthrough-comment-in-function.result.js +++ b/tests/fixtures/attach-comments/switch-fallthrough-comment-in-function.result.js @@ -254,6 +254,7 @@ module.exports = { ] }, "expression": false, + "async": false, "generator": false } ], diff --git a/tests/fixtures/attach-comments/switch-no-default-comment-in-function.result.js b/tests/fixtures/attach-comments/switch-no-default-comment-in-function.result.js index c0903c2..473225d 100644 --- a/tests/fixtures/attach-comments/switch-no-default-comment-in-function.result.js +++ b/tests/fixtures/attach-comments/switch-no-default-comment-in-function.result.js @@ -238,6 +238,7 @@ module.exports = { ] }, "expression": false, + "async": false, "generator": false } ], diff --git a/tests/fixtures/attach-comments/switch-no-default-comment-in-nested-functions.result.js b/tests/fixtures/attach-comments/switch-no-default-comment-in-nested-functions.result.js index 48969fa..aa9dd9a 100644 --- a/tests/fixtures/attach-comments/switch-no-default-comment-in-nested-functions.result.js +++ b/tests/fixtures/attach-comments/switch-no-default-comment-in-nested-functions.result.js @@ -630,11 +630,13 @@ module.exports = { ] }, "expression": false, + "async": false, "generator": false } ] }, "expression": false, + "async": false, "generator": false } } diff --git a/tests/fixtures/basics/new-without-parens.result.js b/tests/fixtures/basics/new-without-parens.result.js index 1d7c82d..46b5482 100644 --- a/tests/fixtures/basics/new-without-parens.result.js +++ b/tests/fixtures/basics/new-without-parens.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/basics/update-expression.result.js b/tests/fixtures/basics/update-expression.result.js index a3f82e5..119a5fb 100644 --- a/tests/fixtures/basics/update-expression.result.js +++ b/tests/fixtures/basics/update-expression.result.js @@ -148,8 +148,9 @@ module.exports = { ], "type": "BlockStatement" }, - "expression": false, "generator": false, + "expression": false, + "async": false, "id": { "loc": { "end": { diff --git a/tests/fixtures/ecma-features-mix/classes-and-generators/classes-and-generators.result.js b/tests/fixtures/ecma-features-mix/classes-and-generators/classes-and-generators.result.js index e453dde..c0a881f 100644 --- a/tests/fixtures/ecma-features-mix/classes-and-generators/classes-and-generators.result.js +++ b/tests/fixtures/ecma-features-mix/classes-and-generators/classes-and-generators.result.js @@ -70,6 +70,7 @@ module.exports = { }, "generator": true, "expression": false, + "async": false, "range": [ 17, 24 diff --git a/tests/fixtures/ecma-features-mix/classes-and-generators/computed-generator.result.js b/tests/fixtures/ecma-features-mix/classes-and-generators/computed-generator.result.js index e06db8d..e8987ca 100644 --- a/tests/fixtures/ecma-features-mix/classes-and-generators/computed-generator.result.js +++ b/tests/fixtures/ecma-features-mix/classes-and-generators/computed-generator.result.js @@ -106,6 +106,7 @@ module.exports = { }, "generator": true, "expression": false, + "async": false, "range": [ 31, 38 diff --git a/tests/fixtures/ecma-features-mix/classes-and-generators/static-generators.result.js b/tests/fixtures/ecma-features-mix/classes-and-generators/static-generators.result.js index 8b3008d..ea238e9 100644 --- a/tests/fixtures/ecma-features-mix/classes-and-generators/static-generators.result.js +++ b/tests/fixtures/ecma-features-mix/classes-and-generators/static-generators.result.js @@ -70,6 +70,7 @@ module.exports = { }, "generator": true, "expression": false, + "async": false, "range": [ 24, 31 diff --git a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param-arrow.result.js b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param-arrow.result.js index b243043..dc6700e 100644 --- a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param-arrow.result.js +++ b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param-arrow.result.js @@ -88,6 +88,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 6, 13 @@ -139,6 +140,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 20 diff --git a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param.result.js b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param.result.js index 87788d2..ffc3bd8 100644 --- a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param.result.js +++ b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/default-param.result.js @@ -118,6 +118,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 14 diff --git a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval-multi.result.js b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval-multi.result.js index 95e0023..f976d18 100644 --- a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval-multi.result.js +++ b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval-multi.result.js @@ -101,6 +101,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 20 @@ -329,4 +330,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval.result.js b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval.result.js index 03b1de5..8b79b30 100644 --- a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval.result.js +++ b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/local-eval.result.js @@ -83,6 +83,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 17 @@ -275,4 +276,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/yield-default-param.result.js b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/yield-default-param.result.js index bf1cc87..be04943 100644 --- a/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/yield-default-param.result.js +++ b/tests/fixtures/ecma-features-mix/defaultParams-and-arrowFunctions/yield-default-param.result.js @@ -105,6 +105,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 16, 33 @@ -153,6 +154,7 @@ module.exports = { }, "generator": true, "expression": false, + "async": false, "range": [ 0, 35 @@ -456,4 +458,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-array.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-array.result.js index bb22241..4f67f92 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-array.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-array.result.js @@ -65,6 +65,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 10 @@ -257,4 +258,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js index ffa6bf6..a100380 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js @@ -102,6 +102,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 15 @@ -366,4 +367,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js index b12cd6a..5d844af 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js @@ -219,6 +219,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 27 @@ -591,4 +592,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js index 549b2f5..88daa07 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js @@ -219,6 +219,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 17 @@ -519,4 +520,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-object.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-object.result.js index e9bd579..c829883 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-object.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/arrow-param-object.result.js @@ -104,6 +104,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 10 @@ -296,4 +297,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-array.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-array.result.js index f82d268..e98e28d 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-array.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-array.result.js @@ -101,6 +101,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 15 diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js index 90dec70..413473a 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js @@ -328,6 +328,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 35 diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object.result.js index 4115ffa..7dc67fd 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-arrowFunctions/param-defaults-object.result.js @@ -140,6 +140,7 @@ module.exports = { }, "generator": false, "expression": true, + "async": false, "range": [ 0, 15 diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-array.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-array.result.js index c8c278a..ce25b86 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-array.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-array.result.js @@ -135,6 +135,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 24 @@ -437,4 +438,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-short.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-short.result.js index 1a1299b..730eacb 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-short.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-short.result.js @@ -221,6 +221,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 3, 21 @@ -646,4 +647,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-wrapped.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-wrapped.result.js index ee4ffed..2b7ccdb 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-wrapped.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object-wrapped.result.js @@ -108,6 +108,7 @@ module.exports = { rest: null, generator: false, expression: false, + async: false, range: [5, 31], loc: { start: { line: 1, column: 5 }, diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object.result.js index eff8073..6f3c7ef 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-defaultParams/param-object.result.js @@ -219,6 +219,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 4, 30 @@ -588,4 +589,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/destructuring-and-spread/destructuring-param.result.js b/tests/fixtures/ecma-features-mix/destructuring-and-spread/destructuring-param.result.js index 25c2999..4920e70 100644 --- a/tests/fixtures/ecma-features-mix/destructuring-and-spread/destructuring-param.result.js +++ b/tests/fixtures/ecma-features-mix/destructuring-and-spread/destructuring-param.result.js @@ -152,6 +152,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 30 diff --git a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js index 7796c83..d5346e2 100644 --- a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js +++ b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js @@ -162,6 +162,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 29, 40 @@ -313,6 +314,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 46, 60 @@ -482,6 +484,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 68, 85 @@ -1302,4 +1305,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js index bfcd721..fb8ac43 100644 --- a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js +++ b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js @@ -106,6 +106,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 4, 16 @@ -459,4 +460,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js index a2685d8..6caea87 100644 --- a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js +++ b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js @@ -125,6 +125,7 @@ module.exports = { }, "generator": true, "expression": false, + "async": false, "range": [ 16, 31 diff --git a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js index 5ec21b4..bf0710d 100644 --- a/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js +++ b/tests/fixtures/ecma-features-mix/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js @@ -107,6 +107,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 19, 49 @@ -495,4 +496,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest-multi.result.js b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest-multi.result.js index 3371536..87c6526 100644 --- a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest-multi.result.js +++ b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest-multi.result.js @@ -81,6 +81,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 15 @@ -309,4 +310,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest.result.js b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest.result.js index a0a5281..2fbab66 100644 --- a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest.result.js +++ b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/arrow-rest.result.js @@ -63,6 +63,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 12 @@ -255,4 +256,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-array.result.js b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-array.result.js index 59a0351..056fe91 100644 --- a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-array.result.js +++ b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-array.result.js @@ -139,6 +139,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 19 @@ -403,4 +404,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-multi.result.js b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-multi.result.js index 355dc59..fbd27ec 100644 --- a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-multi.result.js +++ b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-multi.result.js @@ -251,6 +251,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 33 @@ -695,4 +696,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-object.result.js b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-object.result.js index 78d2d2b..7007fb9 100644 --- a/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-object.result.js +++ b/tests/fixtures/ecma-features-mix/restParams-and-arrowFunctions/destructured-arrow-object.result.js @@ -176,6 +176,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 0, 27 @@ -548,4 +549,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features-mix/templateStrings-and-jsx/template-strings-in-jsx-complex.result.js b/tests/fixtures/ecma-features-mix/templateStrings-and-jsx/template-strings-in-jsx-complex.result.js index ea75734..8158d2f 100644 --- a/tests/fixtures/ecma-features-mix/templateStrings-and-jsx/template-strings-in-jsx-complex.result.js +++ b/tests/fixtures/ecma-features-mix/templateStrings-and-jsx/template-strings-in-jsx-complex.result.js @@ -931,6 +931,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "range": [ 86, 257 @@ -2522,4 +2523,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/as-param-with-params.result.js b/tests/fixtures/ecma-features/arrowFunctions/as-param-with-params.result.js index 84bb130..347fc61 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/as-param-with-params.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/as-param-with-params.result.js @@ -85,6 +85,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -365,4 +366,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/as-param.result.js b/tests/fixtures/ecma-features/arrowFunctions/as-param.result.js index 2221e20..d155574 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/as-param.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/as-param.result.js @@ -85,6 +85,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -274,4 +275,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/basic.result.js b/tests/fixtures/ecma-features/arrowFunctions/basic.result.js index 2ccbb76..70ee8b3 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/basic.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/basic.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [], "body": { "type": "Literal", @@ -166,4 +167,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/block-body-not-object.result.js b/tests/fixtures/ecma-features/arrowFunctions/block-body-not-object.result.js index cdb1828..902c675 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/block-body-not-object.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/block-body-not-object.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -310,4 +311,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/block-body.result.js b/tests/fixtures/ecma-features/arrowFunctions/block-body.result.js index ccbffc2..7848b1a 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/block-body.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/block-body.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -257,4 +258,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/expression.result.js b/tests/fixtures/ecma-features/arrowFunctions/expression.result.js index 51eeaea..8014aab 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/expression.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/expression.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -202,4 +203,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/iife.result.js b/tests/fixtures/ecma-features/arrowFunctions/iife.result.js index 4f81cb1..0cdd0ed 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/iife.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/iife.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -333,4 +334,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/multiple-params.result.js b/tests/fixtures/ecma-features/arrowFunctions/multiple-params.result.js index 936fcec..788bb5d 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/multiple-params.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/multiple-params.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -257,4 +258,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/no-auto-return.result.js b/tests/fixtures/ecma-features/arrowFunctions/no-auto-return.result.js index c0effed..e67c7e4 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/no-auto-return.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/no-auto-return.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -347,4 +348,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/not-strict-arguments.result.js b/tests/fixtures/ecma-features/arrowFunctions/not-strict-arguments.result.js index 5672831..4e51fd3 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/not-strict-arguments.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/not-strict-arguments.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -167,4 +168,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval-params.result.js b/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval-params.result.js index b094559..78deb4f 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval-params.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval-params.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -257,4 +258,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval.result.js b/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval.result.js index 9c396d9..7060aea 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/not-strict-eval.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -167,4 +168,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/not-strict-octal.result.js b/tests/fixtures/ecma-features/arrowFunctions/not-strict-octal.result.js index 335364d..3a8c648 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/not-strict-octal.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/not-strict-octal.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -203,4 +204,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/return-arrow-function.result.js b/tests/fixtures/ecma-features/arrowFunctions/return-arrow-function.result.js index fc4798d..7353434 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/return-arrow-function.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/return-arrow-function.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -89,6 +90,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -243,4 +245,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/return-sequence.result.js b/tests/fixtures/ecma-features/arrowFunctions/return-sequence.result.js index 48a3212..ff147bd 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/return-sequence.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/return-sequence.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -89,6 +90,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -567,4 +569,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/single-param-parens.result.js b/tests/fixtures/ecma-features/arrowFunctions/single-param-parens.result.js index 888b7f3..2b3ebf0 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/single-param-parens.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/single-param-parens.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -203,4 +204,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/single-param-return-identifier.result.js b/tests/fixtures/ecma-features/arrowFunctions/single-param-return-identifier.result.js index e8811ef..202b779 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/single-param-return-identifier.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/single-param-return-identifier.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -202,4 +203,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/arrowFunctions/single-param.result.js b/tests/fixtures/ecma-features/arrowFunctions/single-param.result.js index a6964f0..390c795 100644 --- a/tests/fixtures/ecma-features/arrowFunctions/single-param.result.js +++ b/tests/fixtures/ecma-features/arrowFunctions/single-param.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": true, + "async": false, "params": [ { "type": "Identifier", @@ -167,4 +168,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-accessor-properties.result.js b/tests/fixtures/ecma-features/classes/class-accessor-properties.result.js index 0a8e990..9e2247d 100644 --- a/tests/fixtures/ecma-features/classes/class-accessor-properties.result.js +++ b/tests/fixtures/ecma-features/classes/class-accessor-properties.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -170,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -613,4 +615,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-computed-static-method.result.js b/tests/fixtures/ecma-features/classes/class-computed-static-method.result.js index e99cd98..300d28a 100644 --- a/tests/fixtures/ecma-features/classes/class-computed-static-method.result.js +++ b/tests/fixtures/ecma-features/classes/class-computed-static-method.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -424,4 +425,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-method-named-prototype.result.js b/tests/fixtures/ecma-features/classes/class-method-named-prototype.result.js index 0587369..28b55ce 100644 --- a/tests/fixtures/ecma-features/classes/class-method-named-prototype.result.js +++ b/tests/fixtures/ecma-features/classes/class-method-named-prototype.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -352,4 +353,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-method-named-static.result.js b/tests/fixtures/ecma-features/classes/class-method-named-static.result.js index fe5b512..b0aa183 100644 --- a/tests/fixtures/ecma-features/classes/class-method-named-static.result.js +++ b/tests/fixtures/ecma-features/classes/class-method-named-static.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -370,4 +371,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-one-method-super.result.js b/tests/fixtures/ecma-features/classes/class-one-method-super.result.js index c785e39..19c9b6f 100644 --- a/tests/fixtures/ecma-features/classes/class-one-method-super.result.js +++ b/tests/fixtures/ecma-features/classes/class-one-method-super.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -477,4 +478,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-one-method.result.js b/tests/fixtures/ecma-features/classes/class-one-method.result.js index 2467802..92dd955 100644 --- a/tests/fixtures/ecma-features/classes/class-one-method.result.js +++ b/tests/fixtures/ecma-features/classes/class-one-method.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -352,4 +353,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-static-method-named-prototype.result.js b/tests/fixtures/ecma-features/classes/class-static-method-named-prototype.result.js index 09f4f07..71c48ae 100644 --- a/tests/fixtures/ecma-features/classes/class-static-method-named-prototype.result.js +++ b/tests/fixtures/ecma-features/classes/class-static-method-named-prototype.result.js @@ -92,6 +92,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -407,4 +408,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-static-method-named-static.result.js b/tests/fixtures/ecma-features/classes/class-static-method-named-static.result.js index 23684f5..612ea03 100644 --- a/tests/fixtures/ecma-features/classes/class-static-method-named-static.result.js +++ b/tests/fixtures/ecma-features/classes/class-static-method-named-static.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -388,4 +389,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-static-method.result.js b/tests/fixtures/ecma-features/classes/class-static-method.result.js index cc8bd15..12ce22f 100644 --- a/tests/fixtures/ecma-features/classes/class-static-method.result.js +++ b/tests/fixtures/ecma-features/classes/class-static-method.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -388,4 +389,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-static-methods-and-accessor-properties.result.js b/tests/fixtures/ecma-features/classes/class-static-methods-and-accessor-properties.result.js index fb23622..28b4cff 100644 --- a/tests/fixtures/ecma-features/classes/class-static-methods-and-accessor-properties.result.js +++ b/tests/fixtures/ecma-features/classes/class-static-methods-and-accessor-properties.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -170,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -249,6 +251,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -818,4 +821,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-two-computed-static-methods.result.js b/tests/fixtures/ecma-features/classes/class-two-computed-static-methods.result.js index ef416cc..c3a0579 100644 --- a/tests/fixtures/ecma-features/classes/class-two-computed-static-methods.result.js +++ b/tests/fixtures/ecma-features/classes/class-two-computed-static-methods.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -170,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -647,4 +649,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-two-methods-computed-constructor.result.js b/tests/fixtures/ecma-features/classes/class-two-methods-computed-constructor.result.js index 2f2f517..498a863 100644 --- a/tests/fixtures/ecma-features/classes/class-two-methods-computed-constructor.result.js +++ b/tests/fixtures/ecma-features/classes/class-two-methods-computed-constructor.result.js @@ -92,6 +92,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -172,6 +173,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -559,4 +561,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-two-methods-semi.result.js b/tests/fixtures/ecma-features/classes/class-two-methods-semi.result.js index 91a8ef9..a0ceb3a 100644 --- a/tests/fixtures/ecma-features/classes/class-two-methods-semi.result.js +++ b/tests/fixtures/ecma-features/classes/class-two-methods-semi.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -170,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -539,4 +541,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-two-methods-three-semi.result.js b/tests/fixtures/ecma-features/classes/class-two-methods-three-semi.result.js index 2093dba..3969128 100644 --- a/tests/fixtures/ecma-features/classes/class-two-methods-three-semi.result.js +++ b/tests/fixtures/ecma-features/classes/class-two-methods-three-semi.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -170,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -575,4 +577,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-two-methods-two-semi.result.js b/tests/fixtures/ecma-features/classes/class-two-methods-two-semi.result.js index 7a8ff70..c5209f8 100644 --- a/tests/fixtures/ecma-features/classes/class-two-methods-two-semi.result.js +++ b/tests/fixtures/ecma-features/classes/class-two-methods-two-semi.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -170,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -557,4 +559,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-two-methods.result.js b/tests/fixtures/ecma-features/classes/class-two-methods.result.js index d893630..a02df36 100644 --- a/tests/fixtures/ecma-features/classes/class-two-methods.result.js +++ b/tests/fixtures/ecma-features/classes/class-two-methods.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -170,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -521,4 +523,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/classes/class-two-static-methods-named-constructor.result.js b/tests/fixtures/ecma-features/classes/class-two-static-methods-named-constructor.result.js index 3fbfccd..e969325 100644 --- a/tests/fixtures/ecma-features/classes/class-two-static-methods-named-constructor.result.js +++ b/tests/fixtures/ecma-features/classes/class-two-static-methods-named-constructor.result.js @@ -126,6 +126,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -204,6 +205,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-features/classes/class-with-constructor.result.js b/tests/fixtures/ecma-features/classes/class-with-constructor.result.js index e082cb6..42a2a8a 100644 --- a/tests/fixtures/ecma-features/classes/class-with-constructor.result.js +++ b/tests/fixtures/ecma-features/classes/class-with-constructor.result.js @@ -126,6 +126,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-features/defaultParams/declaration.result.js b/tests/fixtures/ecma-features/defaultParams/declaration.result.js index 12c025f..fbd99e0 100644 --- a/tests/fixtures/ecma-features/defaultParams/declaration.result.js +++ b/tests/fixtures/ecma-features/defaultParams/declaration.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-features/defaultParams/expression.result.js b/tests/fixtures/ecma-features/defaultParams/expression.result.js index 9ca8637..f6ab67a 100644 --- a/tests/fixtures/ecma-features/defaultParams/expression.result.js +++ b/tests/fixtures/ecma-features/defaultParams/expression.result.js @@ -85,6 +85,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-features/defaultParams/method.result.js b/tests/fixtures/ecma-features/defaultParams/method.result.js index 91261a8..c138b60 100644 --- a/tests/fixtures/ecma-features/defaultParams/method.result.js +++ b/tests/fixtures/ecma-features/defaultParams/method.result.js @@ -139,6 +139,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-features/defaultParams/not-all-params.result.js b/tests/fixtures/ecma-features/defaultParams/not-all-params.result.js index 0c15e55..f7885b2 100644 --- a/tests/fixtures/ecma-features/defaultParams/not-all-params.result.js +++ b/tests/fixtures/ecma-features/defaultParams/not-all-params.result.js @@ -85,6 +85,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -492,4 +493,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/destructured-array-catch.result.js b/tests/fixtures/ecma-features/destructuring/destructured-array-catch.result.js index d77c2cc..5027265 100644 --- a/tests/fixtures/ecma-features/destructuring/destructured-array-catch.result.js +++ b/tests/fixtures/ecma-features/destructuring/destructured-array-catch.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ObjectPattern", @@ -914,4 +915,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/destructured-object-catch.result.js b/tests/fixtures/ecma-features/destructuring/destructured-object-catch.result.js index 6d4aaa5..73a185e 100644 --- a/tests/fixtures/ecma-features/destructuring/destructured-object-catch.result.js +++ b/tests/fixtures/ecma-features/destructuring/destructured-object-catch.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ObjectPattern", @@ -953,4 +954,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/param-defaults-array.result.js b/tests/fixtures/ecma-features/destructuring/param-defaults-array.result.js index 906c058..a5cb3a8 100644 --- a/tests/fixtures/ecma-features/destructuring/param-defaults-array.result.js +++ b/tests/fixtures/ecma-features/destructuring/param-defaults-array.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-features/destructuring/param-defaults-object-nested.result.js b/tests/fixtures/ecma-features/destructuring/param-defaults-object-nested.result.js index 6e81129..dd8a72d 100644 --- a/tests/fixtures/ecma-features/destructuring/param-defaults-object-nested.result.js +++ b/tests/fixtures/ecma-features/destructuring/param-defaults-object-nested.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ObjectPattern", @@ -716,4 +717,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/param-defaults-object.result.js b/tests/fixtures/ecma-features/destructuring/param-defaults-object.result.js index 2b26445..73ade89 100644 --- a/tests/fixtures/ecma-features/destructuring/param-defaults-object.result.js +++ b/tests/fixtures/ecma-features/destructuring/param-defaults-object.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-features/destructuring/params-array-wrapped.result.js b/tests/fixtures/ecma-features/destructuring/params-array-wrapped.result.js index c4fda76..7af6c21 100644 --- a/tests/fixtures/ecma-features/destructuring/params-array-wrapped.result.js +++ b/tests/fixtures/ecma-features/destructuring/params-array-wrapped.result.js @@ -67,6 +67,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ArrayPattern", @@ -400,4 +401,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/params-array.result.js b/tests/fixtures/ecma-features/destructuring/params-array.result.js index e8c9028..442ff1a 100644 --- a/tests/fixtures/ecma-features/destructuring/params-array.result.js +++ b/tests/fixtures/ecma-features/destructuring/params-array.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ArrayPattern", @@ -364,4 +365,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/params-multi-object.result.js b/tests/fixtures/ecma-features/destructuring/params-multi-object.result.js index b2a460d..bdccf34 100644 --- a/tests/fixtures/ecma-features/destructuring/params-multi-object.result.js +++ b/tests/fixtures/ecma-features/destructuring/params-multi-object.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -403,4 +404,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/params-nested-array.result.js b/tests/fixtures/ecma-features/destructuring/params-nested-array.result.js index 980e0c1..390ce67 100644 --- a/tests/fixtures/ecma-features/destructuring/params-nested-array.result.js +++ b/tests/fixtures/ecma-features/destructuring/params-nested-array.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ArrayPattern", @@ -457,4 +458,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/params-nested-object.result.js b/tests/fixtures/ecma-features/destructuring/params-nested-object.result.js index c6f7786..c795570 100644 --- a/tests/fixtures/ecma-features/destructuring/params-nested-object.result.js +++ b/tests/fixtures/ecma-features/destructuring/params-nested-object.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ObjectPattern", @@ -644,4 +645,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/params-object-wrapped.result.js b/tests/fixtures/ecma-features/destructuring/params-object-wrapped.result.js index fac97e3..54b73e8 100644 --- a/tests/fixtures/ecma-features/destructuring/params-object-wrapped.result.js +++ b/tests/fixtures/ecma-features/destructuring/params-object-wrapped.result.js @@ -67,6 +67,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ObjectPattern", @@ -478,4 +479,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/destructuring/params-object.result.js b/tests/fixtures/ecma-features/destructuring/params-object.result.js index 0acce76..4b14534 100644 --- a/tests/fixtures/ecma-features/destructuring/params-object.result.js +++ b/tests/fixtures/ecma-features/destructuring/params-object.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "ObjectPattern", @@ -442,4 +443,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/forOf/for-of-with-function-initializer.result.js b/tests/fixtures/ecma-features/forOf/for-of-with-function-initializer.result.js index 344e65b..b82caac 100644 --- a/tests/fixtures/ecma-features/forOf/for-of-with-function-initializer.result.js +++ b/tests/fixtures/ecma-features/forOf/for-of-with-function-initializer.result.js @@ -101,6 +101,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -707,4 +708,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/anonymous-generator.result.js b/tests/fixtures/ecma-features/generators/anonymous-generator.result.js index d08884d..c7963c6 100644 --- a/tests/fixtures/ecma-features/generators/anonymous-generator.result.js +++ b/tests/fixtures/ecma-features/generators/anonymous-generator.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -327,4 +328,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/double-yield.result.js b/tests/fixtures/ecma-features/generators/double-yield.result.js index 343c724..3bf284b 100644 --- a/tests/fixtures/ecma-features/generators/double-yield.result.js +++ b/tests/fixtures/ecma-features/generators/double-yield.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -364,4 +365,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/empty-generator-declaration.result.js b/tests/fixtures/ecma-features/generators/empty-generator-declaration.result.js index 7e864c5..e79bfbf 100644 --- a/tests/fixtures/ecma-features/generators/empty-generator-declaration.result.js +++ b/tests/fixtures/ecma-features/generators/empty-generator-declaration.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -236,4 +237,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/generator-declaration.result.js b/tests/fixtures/ecma-features/generators/generator-declaration.result.js index b3a22b0..7f0e5cf 100644 --- a/tests/fixtures/ecma-features/generators/generator-declaration.result.js +++ b/tests/fixtures/ecma-features/generators/generator-declaration.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -344,4 +345,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/yield-delegation.result.js b/tests/fixtures/ecma-features/generators/yield-delegation.result.js index d34a0d8..96c3687 100644 --- a/tests/fixtures/ecma-features/generators/yield-delegation.result.js +++ b/tests/fixtures/ecma-features/generators/yield-delegation.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -345,4 +346,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/yield-without-value-in-call.result.js b/tests/fixtures/ecma-features/generators/yield-without-value-in-call.result.js index b721c0e..9e7af39 100644 --- a/tests/fixtures/ecma-features/generators/yield-without-value-in-call.result.js +++ b/tests/fixtures/ecma-features/generators/yield-without-value-in-call.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -401,4 +402,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/yield-without-value-no-semi.result.js b/tests/fixtures/ecma-features/generators/yield-without-value-no-semi.result.js index fd58214..a367eec 100644 --- a/tests/fixtures/ecma-features/generators/yield-without-value-no-semi.result.js +++ b/tests/fixtures/ecma-features/generators/yield-without-value-no-semi.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -292,4 +293,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/generators/yield-without-value.result.js b/tests/fixtures/ecma-features/generators/yield-without-value.result.js index 96b2eb7..08032f3 100644 --- a/tests/fixtures/ecma-features/generators/yield-without-value.result.js +++ b/tests/fixtures/ecma-features/generators/yield-without-value.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": true, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-features/modules/export-default-function.result.js b/tests/fixtures/ecma-features/modules/export-default-function.result.js index 383afa4..4cd2c26 100644 --- a/tests/fixtures/ecma-features/modules/export-default-function.result.js +++ b/tests/fixtures/ecma-features/modules/export-default-function.result.js @@ -50,6 +50,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-features/modules/export-default-named-function.result.js b/tests/fixtures/ecma-features/modules/export-default-named-function.result.js index 9fbc71a..8e5b362 100644 --- a/tests/fixtures/ecma-features/modules/export-default-named-function.result.js +++ b/tests/fixtures/ecma-features/modules/export-default-named-function.result.js @@ -67,6 +67,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-features/modules/export-function.result.js b/tests/fixtures/ecma-features/modules/export-function.result.js index b594347..92e3721 100644 --- a/tests/fixtures/ecma-features/modules/export-function.result.js +++ b/tests/fixtures/ecma-features/modules/export-function.result.js @@ -67,6 +67,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-features/modules/export-var-anonymous-function.result.js b/tests/fixtures/ecma-features/modules/export-var-anonymous-function.result.js index bfc762d..a29d309 100644 --- a/tests/fixtures/ecma-features/modules/export-var-anonymous-function.result.js +++ b/tests/fixtures/ecma-features/modules/export-var-anonymous-function.result.js @@ -101,6 +101,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -312,4 +313,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/newTarget/simple-new-target.result.js b/tests/fixtures/ecma-features/newTarget/simple-new-target.result.js index 50b45bf..3c6ea66 100644 --- a/tests/fixtures/ecma-features/newTarget/simple-new-target.result.js +++ b/tests/fixtures/ecma-features/newTarget/simple-new-target.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-features/objectLiteralComputedProperties/computed-getter-and-setter.result.js b/tests/fixtures/ecma-features/objectLiteralComputedProperties/computed-getter-and-setter.result.js index fc46113..1d335d9 100644 --- a/tests/fixtures/ecma-features/objectLiteralComputedProperties/computed-getter-and-setter.result.js +++ b/tests/fixtures/ecma-features/objectLiteralComputedProperties/computed-getter-and-setter.result.js @@ -105,6 +105,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -183,6 +184,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -644,4 +646,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralComputedProperties/standalone-expression-with-method.result.js b/tests/fixtures/ecma-features/objectLiteralComputedProperties/standalone-expression-with-method.result.js index 52937b5..fa34bcf 100644 --- a/tests/fixtures/ecma-features/objectLiteralComputedProperties/standalone-expression-with-method.result.js +++ b/tests/fixtures/ecma-features/objectLiteralComputedProperties/standalone-expression-with-method.result.js @@ -104,6 +104,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -385,4 +386,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/method-property.result.js b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/method-property.result.js index 2c0741f..467de21 100644 --- a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/method-property.result.js +++ b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/method-property.result.js @@ -140,6 +140,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -459,4 +460,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-get.result.js b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-get.result.js index a9a13bc..f5175f8 100644 --- a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-get.result.js +++ b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-get.result.js @@ -140,6 +140,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -384,4 +385,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-set.result.js b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-set.result.js index c82cc70..996338a 100644 --- a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-set.result.js +++ b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-named-set.result.js @@ -140,6 +140,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -384,4 +385,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-argument.result.js b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-argument.result.js index 66f0609..03e0de7 100644 --- a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-argument.result.js +++ b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-argument.result.js @@ -140,6 +140,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -421,4 +422,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-string-name.result.js b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-string-name.result.js index 6f61046..7f6591f 100644 --- a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-string-name.result.js +++ b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method-with-string-name.result.js @@ -141,6 +141,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -385,4 +386,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method.result.js b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method.result.js index 05d14d6..b21677a 100644 --- a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method.result.js +++ b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/simple-method.result.js @@ -140,6 +140,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -384,4 +385,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/string-name-method-property.result.js b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/string-name-method-property.result.js index 4fdffc8..20df529 100644 --- a/tests/fixtures/ecma-features/objectLiteralShorthandMethods/string-name-method-property.result.js +++ b/tests/fixtures/ecma-features/objectLiteralShorthandMethods/string-name-method-property.result.js @@ -141,6 +141,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -460,4 +461,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/restParams/basic-rest.result.js b/tests/fixtures/ecma-features/restParams/basic-rest.result.js index 9f87227..144b074 100644 --- a/tests/fixtures/ecma-features/restParams/basic-rest.result.js +++ b/tests/fixtures/ecma-features/restParams/basic-rest.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -344,4 +345,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/restParams/func-expression-multi.result.js b/tests/fixtures/ecma-features/restParams/func-expression-multi.result.js index f56dcac..f3c1b50 100644 --- a/tests/fixtures/ecma-features/restParams/func-expression-multi.result.js +++ b/tests/fixtures/ecma-features/restParams/func-expression-multi.result.js @@ -85,6 +85,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", @@ -401,4 +402,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/restParams/func-expression.result.js b/tests/fixtures/ecma-features/restParams/func-expression.result.js index 3a8641e..0fe1159 100644 --- a/tests/fixtures/ecma-features/restParams/func-expression.result.js +++ b/tests/fixtures/ecma-features/restParams/func-expression.result.js @@ -85,6 +85,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "params": [ { "type": "RestElement", @@ -347,4 +348,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/restParams/single-rest.result.js b/tests/fixtures/ecma-features/restParams/single-rest.result.js index 3a79eb2..93bd3ca 100644 --- a/tests/fixtures/ecma-features/restParams/single-rest.result.js +++ b/tests/fixtures/ecma-features/restParams/single-rest.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "RestElement", @@ -290,4 +291,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-features/templateStrings/tagged-template-string.result.js b/tests/fixtures/ecma-features/templateStrings/tagged-template-string.result.js index fc2d508..63037b1 100644 --- a/tests/fixtures/ecma-features/templateStrings/tagged-template-string.result.js +++ b/tests/fixtures/ecma-features/templateStrings/tagged-template-string.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [], "body": { "type": "BlockStatement", @@ -719,4 +720,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/basics/abstract-class-with-abstract-method.result.js b/tests/fixtures/typescript/basics/abstract-class-with-abstract-method.result.js index 082ed35..5d253fe 100644 --- a/tests/fixtures/typescript/basics/abstract-class-with-abstract-method.result.js +++ b/tests/fixtures/typescript/basics/abstract-class-with-abstract-method.result.js @@ -93,6 +93,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": null, "range": [ 64, diff --git a/tests/fixtures/typescript/basics/arrow-function-with-type-parameters.result.js b/tests/fixtures/typescript/basics/arrow-function-with-type-parameters.result.js index c481ca8..7b6c530 100644 --- a/tests/fixtures/typescript/basics/arrow-function-with-type-parameters.result.js +++ b/tests/fixtures/typescript/basics/arrow-function-with-type-parameters.result.js @@ -176,6 +176,7 @@ module.exports = { ] }, "expression": false, + "async": false, "returnType": { "type": "TypeAnnotation", "loc": { @@ -559,4 +560,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/basics/class-with-accessibility-modifiers.result.js b/tests/fixtures/typescript/basics/class-with-accessibility-modifiers.result.js index b79e78f..ac8a778 100644 --- a/tests/fixtures/typescript/basics/class-with-accessibility-modifiers.result.js +++ b/tests/fixtures/typescript/basics/class-with-accessibility-modifiers.result.js @@ -171,6 +171,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -321,6 +322,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/basics/declare-function.result.js b/tests/fixtures/typescript/basics/declare-function.result.js index 9add748..efe5741 100644 --- a/tests/fixtures/typescript/basics/declare-function.result.js +++ b/tests/fixtures/typescript/basics/declare-function.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/typescript/basics/function-with-await.result.js b/tests/fixtures/typescript/basics/function-with-await.result.js new file mode 100644 index 0000000..cc03d87 --- /dev/null +++ b/tests/fixtures/typescript/basics/function-with-await.result.js @@ -0,0 +1,349 @@ +module.exports = { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "expression": false, + "generator": false, + "async": true, + "id": { + "type": "Identifier", + "name": "hope", + "loc": { + "end": { + "column": 19, + "line": 1 + }, + "start": { + "column": 15, + "line": 1 + } + }, + "range": [ + 15, + 19 + ] + }, + "params": [ + { + "loc": { + "end": { + "column": 26, + "line": 1 + }, + "start": { + "column": 20, + "line": 1 + } + }, + "name": "future", + "range": [ + 20, + 26 + ], + "type": "Identifier" + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AwaitExpression", + "expression": { + "type": "Identifier", + "loc": { + "end": { + "column": 16, + "line": 2 + }, + "start": { + "column": 10, + "line": 2 + } + }, + "name": "future", + "range": [ + 40, + 46 + ] + }, + "loc": { + "end": { + "column": 16, + "line": 2 + }, + "start": { + "column": 4, + "line": 2 + } + }, + "range": [ + 34, + 46 + ] + }, + "loc": { + "end": { + "column": 17, + "line": 2 + }, + "start": { + "column": 4, + "line": 2 + } + }, + "range": [ + 34, + 47 + ] + } + ], + "loc": { + "end": { + "column": 1, + "line": 3 + }, + "start": { + "column": 28, + "line": 1 + } + }, + "range": [ + 28, + 49 + ] + }, + "loc": { + "end": { + "column": 1, + "line": 3 + }, + "start": { + "column": 0, + "line": 1 + } + }, + "range": [ + 0, + 49 + ] + } + ], + "loc": { + "end": { + "column": 1, + "line": 3 + }, + "start": { + "column": 0, + "line": 1 + } + }, + "range": [ + 0, + 49 + ], + "sourceType": "script", + "tokens": [ + { + "type": "Identifier", + "value": "async", + "loc": { + "end": { + "column": 5, + "line": 1 + }, + "start": { + "column": 0, + "line": 1 + } + }, + "range": [ + 0, + 5 + ] + }, + { + "type": "Keyword", + "value": "function", + "loc": { + "end": { + "column": 14, + "line": 1 + }, + "start": { + "column": 6, + "line": 1 + } + }, + "range": [ + 6, + 14 + ] + }, + { + "type": "Identifier", + "value": "hope", + "loc": { + "end": { + "column": 19, + "line": 1 + }, + "start": { + "column": 15, + "line": 1 + } + }, + "range": [ + 15, + 19 + ] + }, + { + "type": "Punctuator", + "value": "(", + "loc": { + "end": { + "column": 20, + "line": 1 + }, + "start": { + "column": 19, + "line": 1 + } + }, + "range": [ + 19, + 20 + ] + }, + { + "type": "Identifier", + "value": "future", + "loc": { + "end": { + "column": 26, + "line": 1 + }, + "start": { + "column": 20, + "line": 1 + } + }, + "range": [ + 20, + 26 + ] + }, + { + "type": "Punctuator", + "value": ")", + "loc": { + "end": { + "column": 27, + "line": 1 + }, + "start": { + "column": 26, + "line": 1 + } + }, + "range": [ + 26, + 27 + ] + }, + { + "type": "Punctuator", + "value": "{", + "loc": { + "end": { + "column": 29, + "line": 1 + }, + "start": { + "column": 28, + "line": 1 + } + }, + "range": [ + 28, + 29 + ] + }, + { + "type": "Identifier", + "value": "await", + "loc": { + "end": { + "column": 9, + "line": 2 + }, + "start": { + "column": 4, + "line": 2 + } + }, + "range": [ + 34, + 39 + ] + }, + { + "type": "Identifier", + "value": "future", + "loc": { + "end": { + "column": 16, + "line": 2 + }, + "start": { + "column": 10, + "line": 2 + } + }, + "range": [ + 40, + 46 + ] + }, + { + "type": "Punctuator", + "value": ";", + "loc": { + "end": { + "column": 17, + "line": 2 + }, + "start": { + "column": 16, + "line": 2 + } + }, + "range": [ + 46, + 47 + ] + }, + { + "type": "Punctuator", + "value": "}", + "loc": { + "end": { + "column": 1, + "line": 3 + }, + "start": { + "column": 0, + "line": 3 + } + }, + "range": [ + 48, + 49 + ] + } + ] +}; diff --git a/tests/fixtures/typescript/basics/function-with-await.src.ts b/tests/fixtures/typescript/basics/function-with-await.src.ts new file mode 100644 index 0000000..e867dc4 --- /dev/null +++ b/tests/fixtures/typescript/basics/function-with-await.src.ts @@ -0,0 +1,3 @@ +async function hope(future) { + await future; +} diff --git a/tests/fixtures/typescript/basics/function-with-type-parameters.result.js b/tests/fixtures/typescript/basics/function-with-type-parameters.result.js index 30d7d28..79b15d2 100644 --- a/tests/fixtures/typescript/basics/function-with-type-parameters.result.js +++ b/tests/fixtures/typescript/basics/function-with-type-parameters.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/typescript/basics/function-with-types.result.js b/tests/fixtures/typescript/basics/function-with-types.result.js index ed35825..bccbe7b 100644 --- a/tests/fixtures/typescript/basics/function-with-types.result.js +++ b/tests/fixtures/typescript/basics/function-with-types.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/typescript/basics/non-null-assertion-operator.result.js b/tests/fixtures/typescript/basics/non-null-assertion-operator.result.js index fba26ae..9fa6cc7 100644 --- a/tests/fixtures/typescript/basics/non-null-assertion-operator.result.js +++ b/tests/fixtures/typescript/basics/non-null-assertion-operator.result.js @@ -51,6 +51,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.result.js b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.result.js index 2e63f45..990e66d 100644 --- a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.result.js +++ b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -643,4 +644,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.result.js b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.result.js index 03b6881..6449044 100644 --- a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.result.js +++ b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.result.js b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.result.js index ee29e08..8f15e94 100644 --- a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.result.js +++ b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -551,4 +552,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-static-member.result.js b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-static-member.result.js index a1368f9..301e980 100644 --- a/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-static-member.result.js +++ b/tests/fixtures/typescript/decorators/accessor-decorators/accessor-decorator-static-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-instance-member.result.js b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-instance-member.result.js index 50dac49..6bf94df 100644 --- a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-instance-member.result.js +++ b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-instance-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -464,4 +465,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-static-member.result.js b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-static-member.result.js index f43fb5f..00df8ea 100644 --- a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-static-member.result.js +++ b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-static-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-instance-member.result.js b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-instance-member.result.js index d7b7884..1e5ad09 100644 --- a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-instance-member.result.js +++ b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-instance-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -372,4 +373,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-static-member.result.js b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-static-member.result.js index b710d11..9e52d52 100644 --- a/tests/fixtures/typescript/decorators/method-decorators/method-decorator-static-member.result.js +++ b/tests/fixtures/typescript/decorators/method-decorators/method-decorator-static-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-constructor.result.js b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-constructor.result.js index 8ce99fe..768e362 100644 --- a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-constructor.result.js +++ b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-constructor.result.js @@ -220,6 +220,7 @@ module.exports = { ], "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.result.js b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.result.js index 1195e1b..7f7a515 100644 --- a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.result.js +++ b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -572,4 +573,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.result.js b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.result.js index 052a238..6d44940 100644 --- a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.result.js +++ b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.result.js b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.result.js index 4737dab..a723cb8 100644 --- a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.result.js +++ b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ @@ -716,4 +717,4 @@ module.exports = { } } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-static-member.result.js b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-static-member.result.js index 552b0c1..661c38f 100644 --- a/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-static-member.result.js +++ b/tests/fixtures/typescript/decorators/parameter-decorators/parameter-decorator-static-member.result.js @@ -91,6 +91,7 @@ module.exports = { "id": null, "generator": false, "expression": false, + "async": false, "body": { "type": "BlockStatement", "range": [ diff --git a/tests/fixtures/typescript/namespaces-and-modules/declare-namespace-with-exported-function.result.js b/tests/fixtures/typescript/namespaces-and-modules/declare-namespace-with-exported-function.result.js index 9768931..47242ab 100644 --- a/tests/fixtures/typescript/namespaces-and-modules/declare-namespace-with-exported-function.result.js +++ b/tests/fixtures/typescript/namespaces-and-modules/declare-namespace-with-exported-function.result.js @@ -123,6 +123,7 @@ module.exports = { }, "generator": false, "expression": false, + "async": false, "params": [ { "type": "Identifier",