Add Pipeline nodes to ast.spec [skip ci] (#10214)

This commit is contained in:
James DiGioia 2019-07-13 13:11:51 -04:00 committed by Nicolò Ribaudo
parent 8b9af1be2f
commit 7f47cb65d0

View File

@ -898,6 +898,54 @@ interface BindExpression <: Expression {
If `object` is `null`, then `callee` should be a `MemberExpression`.
### Pipeline
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.
#### PipelineBody
```js
interface PipelineBody <: NodeBase {
type: "PipelineBody";
}
```
#### PipelineBareFunctionBody
```js
interface PipelineBody <: NodeBase {
type: "PipelineBareFunctionBody";
callee: Expression;
}
```
#### PipelineBareConstructorBody
```js
interface PipelineBareConstructorBody <: NodeBase {
type: "PipelineBareConstructorBody";
callee: Expression;
}
```
#### PipelineBareAwaitedFunctionBody
```js
interface PipelineBareConstructorBody <: NodeBase {
type: "PipelineTopicBody";
expression: Expression;
}
```
#### PipelineTopicBody
```js
interface PipelineBareConstructorBody <: NodeBase {
type: "PipelineBareAwaitedFunctionBody";
callee: Expression;
}
```
## ConditionalExpression
```js