Skip to content

Commit

Permalink
Add Pipeline nodes to ast.spec [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mAAdhaTTah committed Jul 13, 2019
1 parent f5ca058 commit 6970a74
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.

#### 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 6970a74

Please sign in to comment.