From 15e6d844ae14b3312624e9ff49aa8d1b816db78e Mon Sep 17 00:00:00 2001 From: James DiGioia Date: Thu, 9 Aug 2018 22:08:23 -0400 Subject: [PATCH] Remove additional parser logic These are parsable only in follow-on proposals, not in the base proposal, so we'll introduce that in a separate PR. --- .../babel-parser/src/parser/expression.js | 8 - .../input.js | 6 - .../options.json | 5 - .../output.json | 401 ------------------ .../input.js | 3 - .../options.json | 3 - .../output.json | 249 ----------- .../input.js | 3 - .../options.json | 3 - .../output.json | 234 ---------- .../input.js | 3 - .../options.json | 3 - .../output.json | 168 -------- .../input.js | 4 - .../options.json | 3 - .../output.json | 348 --------------- .../input.js | 1 - .../options.json | 3 - .../output.json | 233 ---------- .../input.js | 1 - .../options.json | 3 - .../output.json | 152 ------- .../input.js | 1 - .../options.json | 3 - .../output.json | 185 -------- .../input.js | 7 - .../options.json | 3 - .../output.json | 384 ----------------- .../input.js | 3 - .../options.json | 3 - .../output.json | 298 ------------- 31 files changed, 2724 deletions(-) delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/output.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/input.js delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/options.json delete mode 100644 packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/output.json diff --git a/packages/babel-parser/src/parser/expression.js b/packages/babel-parser/src/parser/expression.js index 135aa2bd33..2e50be6423 100644 --- a/packages/babel-parser/src/parser/expression.js +++ b/packages/babel-parser/src/parser/expression.js @@ -2090,14 +2090,6 @@ export default class ExpressionParser extends LValParser { checkSmartPipelineBodyStyle(expression: N.Expression): PipelineStyle { switch (expression.type) { - case "NewExpression": - return this.isSimpleReference(expression.callee) - ? "PipelineBareConstructor" - : "PipelineTopicExpression"; - case "AwaitExpression": - return this.isSimpleReference(expression.argument) - ? "PipelineBareAwaitedFunction" - : "PipelineTopicExpression"; default: return this.isSimpleReference(expression) ? "PipelineBareFunction" diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/input.js deleted file mode 100644 index dfbeff94f2..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/input.js +++ /dev/null @@ -1,6 +0,0 @@ -async function af () { - let result = "hello" - |> await doubleSay - |> await text.capitalize - |> await a.b.exclaim; -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/options.json deleted file mode 100644 index 8b9d791316..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/options.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "plugins": [ - ["pipelineOperator", { "proposal": "smart" }] - ] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/output.json deleted file mode 100644 index fd6424d636..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-multiline/output.json +++ /dev/null @@ -1,401 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 119, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 6, - "column": 1 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 119, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 6, - "column": 1 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 119, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 6, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - }, - "identifierName": "af" - }, - "name": "af" - }, - "generator": false, - "async": true, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 119, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 6, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 25, - "end": 117, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 5, - "column": 23 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29, - "end": 116, - "loc": { - "start": { - "line": 2, - "column": 6 - }, - "end": { - "line": 5, - "column": 22 - } - }, - "id": { - "type": "Identifier", - "start": 29, - "end": 35, - "loc": { - "start": { - "line": 2, - "column": 6 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "BinaryExpression", - "start": 38, - "end": 116, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 5, - "column": 22 - } - }, - "left": { - "type": "BinaryExpression", - "start": 38, - "end": 93, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 4, - "column": 26 - } - }, - "left": { - "type": "BinaryExpression", - "start": 38, - "end": 66, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 3, - "column": 20 - } - }, - "left": { - "type": "StringLiteral", - "start": 38, - "end": 45, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "extra": { - "rawValue": "hello", - "raw": "\"hello\"" - }, - "value": "hello" - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 51, - "end": 66, - "loc": { - "start": { - "line": 3, - "column": 5 - }, - "end": { - "line": 3, - "column": 20 - } - }, - "callee": { - "type": "Identifier", - "start": 57, - "end": 66, - "loc": { - "start": { - "line": 3, - "column": 11 - }, - "end": { - "line": 3, - "column": 20 - }, - "identifierName": "doubleSay" - }, - "name": "doubleSay" - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 72, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 5 - }, - "end": { - "line": 4, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 78, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 11 - }, - "end": { - "line": 4, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 78, - "end": 82, - "loc": { - "start": { - "line": 4, - "column": 11 - }, - "end": { - "line": 4, - "column": 15 - }, - "identifierName": "text" - }, - "name": "text" - }, - "property": { - "type": "Identifier", - "start": 83, - "end": 93, - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 26 - }, - "identifierName": "capitalize" - }, - "name": "capitalize" - }, - "computed": false - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 99, - "end": 116, - "loc": { - "start": { - "line": 5, - "column": 5 - }, - "end": { - "line": 5, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 105, - "end": 116, - "loc": { - "start": { - "line": 5, - "column": 11 - }, - "end": { - "line": 5, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 105, - "end": 108, - "loc": { - "start": { - "line": 5, - "column": 11 - }, - "end": { - "line": 5, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 105, - "end": 106, - "loc": { - "start": { - "line": 5, - "column": 11 - }, - "end": { - "line": 5, - "column": 12 - }, - "identifierName": "a" - }, - "name": "a" - }, - "property": { - "type": "Identifier", - "start": 107, - "end": 108, - "loc": { - "start": { - "line": 5, - "column": 13 - }, - "end": { - "line": 5, - "column": 14 - }, - "identifierName": "b" - }, - "name": "b" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 109, - "end": 116, - "loc": { - "start": { - "line": 5, - "column": 15 - }, - "end": { - "line": 5, - "column": 22 - }, - "identifierName": "exclaim" - }, - "name": "exclaim" - }, - "computed": false - } - } - } - } - ], - "kind": "let" - } - ], - "directives": [] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/input.js deleted file mode 100644 index a78a3ae844..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/input.js +++ /dev/null @@ -1,3 +0,0 @@ -async function af () { - x |> await number.inc |> await double; -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/output.json deleted file mode 100644 index 5e0aa50346..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-chained,-single-line/output.json +++ /dev/null @@ -1,249 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 65, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 65, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 65, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - }, - "identifierName": "af" - }, - "name": "af" - }, - "generator": false, - "async": true, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 65, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25, - "end": 63, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 40 - } - }, - "expression": { - "type": "BinaryExpression", - "start": 25, - "end": 62, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 39 - } - }, - "left": { - "type": "BinaryExpression", - "start": 25, - "end": 46, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 25, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 3 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 30, - "end": 46, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 36, - "end": 46, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 36, - "end": 42, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 19 - }, - "identifierName": "number" - }, - "name": "number" - }, - "property": { - "type": "Identifier", - "start": 43, - "end": 46, - "loc": { - "start": { - "line": 2, - "column": 20 - }, - "end": { - "line": 2, - "column": 23 - }, - "identifierName": "inc" - }, - "name": "inc" - }, - "computed": false - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 50, - "end": 62, - "loc": { - "start": { - "line": 2, - "column": 27 - }, - "end": { - "line": 2, - "column": 39 - } - }, - "callee": { - "type": "Identifier", - "start": 56, - "end": 62, - "loc": { - "start": { - "line": 2, - "column": 33 - }, - "end": { - "line": 2, - "column": 39 - }, - "identifierName": "double" - }, - "name": "double" - } - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/input.js deleted file mode 100644 index c86dda49df..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/input.js +++ /dev/null @@ -1,3 +0,0 @@ -async function af () { - value |> await a.b.f -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/output.json deleted file mode 100644 index aaf050332d..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-nested-property/output.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - }, - "identifierName": "af" - }, - "name": "af" - }, - "generator": false, - "async": true, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25, - "end": 45, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "expression": { - "type": "BinaryExpression", - "start": 25, - "end": 45, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "left": { - "type": "Identifier", - "start": 25, - "end": 30, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 7 - }, - "identifierName": "value" - }, - "name": "value" - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 34, - "end": 45, - "loc": { - "start": { - "line": 2, - "column": 11 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 40, - "end": 45, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 40, - "end": 43, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 18 - }, - "identifierName": "a" - }, - "name": "a" - }, - "property": { - "type": "Identifier", - "start": 42, - "end": 43, - "loc": { - "start": { - "line": 2, - "column": 19 - }, - "end": { - "line": 2, - "column": 20 - }, - "identifierName": "b" - }, - "name": "b" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 44, - "end": 45, - "loc": { - "start": { - "line": 2, - "column": 21 - }, - "end": { - "line": 2, - "column": 22 - }, - "identifierName": "f" - }, - "name": "f" - }, - "computed": false - } - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/input.js deleted file mode 100644 index ff9045bd72..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/input.js +++ /dev/null @@ -1,3 +0,0 @@ -async function af () { - value |> await f -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/output.json deleted file mode 100644 index 50b19d2d74..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-awaited-function-calls,-single,-single-identifier/output.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - }, - "identifierName": "af" - }, - "name": "af" - }, - "generator": false, - "async": true, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25, - "end": 41, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 18 - } - }, - "expression": { - "type": "BinaryExpression", - "start": 25, - "end": 41, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 25, - "end": 30, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 7 - }, - "identifierName": "value" - }, - "name": "value" - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 34, - "end": 41, - "loc": { - "start": { - "line": 2, - "column": 11 - }, - "end": { - "line": 2, - "column": 18 - } - }, - "callee": { - "type": "Identifier", - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 18 - }, - "identifierName": "f" - }, - "name": "f" - } - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/input.js deleted file mode 100644 index 07827f96fb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/input.js +++ /dev/null @@ -1,4 +0,0 @@ -let result = "hello" -|> new DoubleSay -|> new text.Capitalize -|> new a.b.Exclaim; diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/output.json deleted file mode 100644 index cdf86d3125..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-multiline/output.json +++ /dev/null @@ -1,348 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 80, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 4, - "column": 19 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 80, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 4, - "column": 19 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "VariableDeclaration", - "start": 0, - "end": 80, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 4, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4, - "end": 79, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 4, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 4, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 10 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "BinaryExpression", - "start": 13, - "end": 79, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 4, - "column": 18 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 3, - "column": 22 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 2, - "column": 16 - } - }, - "left": { - "type": "StringLiteral", - "start": 13, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "extra": { - "rawValue": "hello", - "raw": "\"hello\"" - }, - "value": "hello" - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 24, - "end": 37, - "loc": { - "start": { - "line": 2, - "column": 3 - }, - "end": { - "line": 2, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 28, - "end": 37, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 16 - }, - "identifierName": "DoubleSay" - }, - "name": "DoubleSay" - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 41, - "end": 60, - "loc": { - "start": { - "line": 3, - "column": 3 - }, - "end": { - "line": 3, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 45, - "end": 60, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 45, - "end": 49, - "loc": { - "start": { - "line": 3, - "column": 7 - }, - "end": { - "line": 3, - "column": 11 - }, - "identifierName": "text" - }, - "name": "text" - }, - "property": { - "type": "Identifier", - "start": 50, - "end": 60, - "loc": { - "start": { - "line": 3, - "column": 12 - }, - "end": { - "line": 3, - "column": 22 - }, - "identifierName": "Capitalize" - }, - "name": "Capitalize" - }, - "computed": false - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 64, - "end": 79, - "loc": { - "start": { - "line": 4, - "column": 3 - }, - "end": { - "line": 4, - "column": 18 - } - }, - "callee": { - "type": "MemberExpression", - "start": 68, - "end": 79, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 18 - } - }, - "object": { - "type": "MemberExpression", - "start": 68, - "end": 71, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 10 - } - }, - "object": { - "type": "Identifier", - "start": 68, - "end": 69, - "loc": { - "start": { - "line": 4, - "column": 7 - }, - "end": { - "line": 4, - "column": 8 - }, - "identifierName": "a" - }, - "name": "a" - }, - "property": { - "type": "Identifier", - "start": 70, - "end": 71, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 10 - }, - "identifierName": "b" - }, - "name": "b" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 72, - "end": 79, - "loc": { - "start": { - "line": 4, - "column": 11 - }, - "end": { - "line": 4, - "column": 18 - }, - "identifierName": "Exclaim" - }, - "name": "Exclaim" - }, - "computed": false - } - } - } - } - ], - "kind": "let" - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/input.js deleted file mode 100644 index 39c48bad51..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/input.js +++ /dev/null @@ -1 +0,0 @@ -x => x |> new number.Inc |> new Double diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/output.json deleted file mode 100644 index 4b4a0fb6af..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-chained,-single-line-arrow-function/output.json +++ /dev/null @@ -1,233 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "id": null, - "generator": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 0, - "end": 1, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 1 - }, - "identifierName": "x" - }, - "name": "x" - } - ], - "body": { - "type": "BinaryExpression", - "start": 5, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 5, - "end": 6, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 6 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 10, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 14, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 20 - }, - "identifierName": "number" - }, - "name": "number" - }, - "property": { - "type": "Identifier", - "start": 21, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 24 - }, - "identifierName": "Inc" - }, - "name": "Inc" - }, - "computed": false - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 28, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 28 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "callee": { - "type": "Identifier", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - }, - "identifierName": "Double" - }, - "name": "Double" - } - } - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/input.js deleted file mode 100644 index 4a4ec7bcd3..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/input.js +++ /dev/null @@ -1 +0,0 @@ -x => x |> new F diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/output.json deleted file mode 100644 index 1f6e4945bd..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-identifier/output.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "id": null, - "generator": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 0, - "end": 1, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 1 - }, - "identifierName": "x" - }, - "name": "x" - } - ], - "body": { - "type": "BinaryExpression", - "start": 5, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "left": { - "type": "Identifier", - "start": 5, - "end": 6, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 6 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 10, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "callee": { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - }, - "identifierName": "F" - }, - "name": "F" - } - } - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/input.js deleted file mode 100644 index f6b0bd4996..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/input.js +++ /dev/null @@ -1 +0,0 @@ -x => x |> new a.F diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/output.json deleted file mode 100644 index dc9bbf5eab..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-bare-style,-constructor-calls,-single,-property/output.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "id": null, - "generator": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 0, - "end": 1, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 1 - }, - "identifierName": "x" - }, - "name": "x" - } - ], - "body": { - "type": "BinaryExpression", - "start": 5, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 5, - "end": 6, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 6 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 10, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - }, - "identifierName": "a" - }, - "name": "a" - }, - "property": { - "type": "Identifier", - "start": 16, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 17 - }, - "identifierName": "F" - }, - "name": "F" - }, - "computed": false - } - } - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/input.js deleted file mode 100644 index 0045c931d1..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/input.js +++ /dev/null @@ -1,7 +0,0 @@ -async function af () { - let result = "hello" - |> # + '' - |> new DoubleSay - |> capitalize - |> await exclaim; -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/output.json deleted file mode 100644 index 8f5a0c112d..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-multiline/output.json +++ /dev/null @@ -1,384 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 114, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 114, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 114, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 7, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - }, - "identifierName": "af" - }, - "name": "af" - }, - "generator": false, - "async": true, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 114, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 7, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 25, - "end": 112, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 6, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29, - "end": 111, - "loc": { - "start": { - "line": 2, - "column": 6 - }, - "end": { - "line": 6, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 29, - "end": 35, - "loc": { - "start": { - "line": 2, - "column": 6 - }, - "end": { - "line": 2, - "column": 12 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "BinaryExpression", - "start": 38, - "end": 111, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 6, - "column": 18 - } - }, - "left": { - "type": "BinaryExpression", - "start": 38, - "end": 92, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 5, - "column": 15 - } - }, - "left": { - "type": "BinaryExpression", - "start": 38, - "end": 76, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 4, - "column": 18 - } - }, - "left": { - "type": "BinaryExpression", - "start": 38, - "end": 57, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 3, - "column": 11 - } - }, - "left": { - "type": "StringLiteral", - "start": 38, - "end": 45, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "extra": { - "rawValue": "hello", - "raw": "\"hello\"" - }, - "value": "hello" - }, - "operator": "|>", - "right": { - "type": "PipelineTopicExpression", - "start": 51, - "end": 57, - "loc": { - "start": { - "line": 3, - "column": 5 - }, - "end": { - "line": 3, - "column": 11 - } - }, - "expression": { - "type": "BinaryExpression", - "start": 51, - "end": 57, - "loc": { - "start": { - "line": 3, - "column": 5 - }, - "end": { - "line": 3, - "column": 11 - } - }, - "left": { - "type": "PrimaryTopicReference", - "start": 51, - "end": 52, - "loc": { - "start": { - "line": 3, - "column": 5 - }, - "end": { - "line": 3, - "column": 6 - } - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 55, - "end": 57, - "loc": { - "start": { - "line": 3, - "column": 9 - }, - "end": { - "line": 3, - "column": 11 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareConstructor", - "start": 63, - "end": 76, - "loc": { - "start": { - "line": 4, - "column": 5 - }, - "end": { - "line": 4, - "column": 18 - } - }, - "callee": { - "type": "Identifier", - "start": 67, - "end": 76, - "loc": { - "start": { - "line": 4, - "column": 9 - }, - "end": { - "line": 4, - "column": 18 - }, - "identifierName": "DoubleSay" - }, - "name": "DoubleSay" - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareFunction", - "start": 82, - "end": 92, - "loc": { - "start": { - "line": 5, - "column": 5 - }, - "end": { - "line": 5, - "column": 15 - } - }, - "callee": { - "type": "Identifier", - "start": 82, - "end": 92, - "loc": { - "start": { - "line": 5, - "column": 5 - }, - "end": { - "line": 5, - "column": 15 - }, - "identifierName": "capitalize" - }, - "name": "capitalize" - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 98, - "end": 111, - "loc": { - "start": { - "line": 6, - "column": 5 - }, - "end": { - "line": 6, - "column": 18 - } - }, - "callee": { - "type": "Identifier", - "start": 104, - "end": 111, - "loc": { - "start": { - "line": 6, - "column": 11 - }, - "end": { - "line": 6, - "column": 18 - }, - "identifierName": "exclaim" - }, - "name": "exclaim" - } - } - } - } - ], - "kind": "let" - } - ], - "directives": [] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/input.js b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/input.js deleted file mode 100644 index ed1cd16aad..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/input.js +++ /dev/null @@ -1,3 +0,0 @@ -async function af () { - x |> inc |> await double |> # + 1 -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/options.json deleted file mode 100644 index 17e4e327bb..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": [["pipelineOperator", { "proposal": "smart" }]] -} diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/output.json deleted file mode 100644 index 2fa2609093..0000000000 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-style-mix,-single-line/output.json +++ /dev/null @@ -1,298 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "sourceType": "script", - "interpreter": null, - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - }, - "identifierName": "af" - }, - "name": "af" - }, - "generator": false, - "async": true, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25, - "end": 58, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 35 - } - }, - "expression": { - "type": "BinaryExpression", - "start": 25, - "end": 58, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 35 - } - }, - "left": { - "type": "BinaryExpression", - "start": 25, - "end": 49, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "left": { - "type": "BinaryExpression", - "start": 25, - "end": 33, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 10 - } - }, - "left": { - "type": "Identifier", - "start": 25, - "end": 26, - "loc": { - "start": { - "line": 2, - "column": 2 - }, - "end": { - "line": 2, - "column": 3 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "|>", - "right": { - "type": "PipelineBareFunction", - "start": 30, - "end": 33, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 10 - } - }, - "callee": { - "type": "Identifier", - "start": 30, - "end": 33, - "loc": { - "start": { - "line": 2, - "column": 7 - }, - "end": { - "line": 2, - "column": 10 - }, - "identifierName": "inc" - }, - "name": "inc" - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineBareAwaitedFunction", - "start": 37, - "end": 49, - "loc": { - "start": { - "line": 2, - "column": 14 - }, - "end": { - "line": 2, - "column": 26 - } - }, - "callee": { - "type": "Identifier", - "start": 43, - "end": 49, - "loc": { - "start": { - "line": 2, - "column": 20 - }, - "end": { - "line": 2, - "column": 26 - }, - "identifierName": "double" - }, - "name": "double" - } - } - }, - "operator": "|>", - "right": { - "type": "PipelineTopicExpression", - "start": 53, - "end": 58, - "loc": { - "start": { - "line": 2, - "column": 30 - }, - "end": { - "line": 2, - "column": 35 - } - }, - "expression": { - "type": "BinaryExpression", - "start": 53, - "end": 58, - "loc": { - "start": { - "line": 2, - "column": 30 - }, - "end": { - "line": 2, - "column": 35 - } - }, - "left": { - "type": "PrimaryTopicReference", - "start": 53, - "end": 54, - "loc": { - "start": { - "line": 2, - "column": 30 - }, - "end": { - "line": 2, - "column": 31 - } - } - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 57, - "end": 58, - "loc": { - "start": { - "line": 2, - "column": 34 - }, - "end": { - "line": 2, - "column": 35 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - } -} \ No newline at end of file