Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Types for pipeline operator (smart proposal) (#9122)
- Loading branch information
1 parent
f4eec5c
commit 731182e
Showing
11 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/babel-generator/test/fixtures/types/PipelineBareFunction/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let result = "hello" |> doubleSay |> text.capitalize |> a.b.exclaim; |
3 changes: 3 additions & 0 deletions
3
packages/babel-generator/test/fixtures/types/PipelineBareFunction/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": [["pipelineOperator", { "proposal": "smart" }], "doExpressions"] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-generator/test/fixtures/types/PipelineBareFunction/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let result = "hello" |> doubleSay |> text.capitalize |> a.b.exclaim; |
8 changes: 8 additions & 0 deletions
8
packages/babel-generator/test/fixtures/types/PipelineTopicExpression/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
value |> # + 1; | ||
value |> 1 + #; | ||
value |> do { | ||
#; | ||
}; | ||
value |> do { | ||
if (yes) #; | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/babel-generator/test/fixtures/types/PipelineTopicExpression/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": [["pipelineOperator", { "proposal": "smart" }], "doExpressions"] | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/babel-generator/test/fixtures/types/PipelineTopicExpression/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
value |> # + 1; | ||
value |> 1 + #; | ||
value |> do { | ||
#; | ||
}; | ||
value |> do { | ||
if (yes) #; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters