Skip to content

Commit 7f47cb6

Browse files
mAAdhaTTahnicolo-ribaudo
authored andcommitted
Add Pipeline nodes to ast.spec [skip ci] (#10214)
1 parent 8b9af1b commit 7f47cb6

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

packages/babel-parser/ast/spec.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,54 @@ interface BindExpression <: Expression {
898898

899899
If `object` is `null`, then `callee` should be a `MemberExpression`.
900900

901+
### Pipeline
902+
903+
These nodes are used by the Smart Pipeline to determine the type of the expression in a Pipeline Operator Expression. The F# Pipeline uses simple `BinaryExpression`s.
904+
905+
#### PipelineBody
906+
907+
```js
908+
interface PipelineBody <: NodeBase {
909+
type: "PipelineBody";
910+
}
911+
```
912+
913+
#### PipelineBareFunctionBody
914+
915+
```js
916+
interface PipelineBody <: NodeBase {
917+
type: "PipelineBareFunctionBody";
918+
callee: Expression;
919+
}
920+
```
921+
922+
#### PipelineBareConstructorBody
923+
924+
```js
925+
interface PipelineBareConstructorBody <: NodeBase {
926+
type: "PipelineBareConstructorBody";
927+
callee: Expression;
928+
}
929+
```
930+
931+
#### PipelineBareAwaitedFunctionBody
932+
933+
```js
934+
interface PipelineBareConstructorBody <: NodeBase {
935+
type: "PipelineTopicBody";
936+
expression: Expression;
937+
}
938+
```
939+
940+
#### PipelineTopicBody
941+
942+
```js
943+
interface PipelineBareConstructorBody <: NodeBase {
944+
type: "PipelineBareAwaitedFunctionBody";
945+
callee: Expression;
946+
}
947+
```
948+
901949
## ConditionalExpression
902950

903951
```js

0 commit comments

Comments
 (0)