Skip to content

Commit

Permalink
Add Pipeline nodes to ast.spec [skip ci] (#10214)
Browse files Browse the repository at this point in the history
  • Loading branch information
mAAdhaTTah authored and nicolo-ribaudo committed Jul 13, 2019
1 parent 8b9af1b commit 7f47cb6
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions packages/babel-parser/ast/spec.md
Expand Up @@ -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
Expand Down

0 comments on commit 7f47cb6

Please sign in to comment.