ast/spec: add BindExpression
This commit is contained in:
parent
f98dd6c76d
commit
e1da431453
@ -71,6 +71,7 @@ These are the core Babylon AST node types.
|
|||||||
- [LogicalOperator](#logicaloperator)
|
- [LogicalOperator](#logicaloperator)
|
||||||
- [SpreadElement](#spreadelement)
|
- [SpreadElement](#spreadelement)
|
||||||
- [MemberExpression](#memberexpression)
|
- [MemberExpression](#memberexpression)
|
||||||
|
- [BindExpression](#bindexpression)
|
||||||
- [ConditionalExpression](#conditionalexpression)
|
- [ConditionalExpression](#conditionalexpression)
|
||||||
- [CallExpression](#callexpression)
|
- [CallExpression](#callexpression)
|
||||||
- [NewExpression](#newexpression)
|
- [NewExpression](#newexpression)
|
||||||
@ -833,6 +834,18 @@ interface MemberExpression <: Expression, Pattern {
|
|||||||
|
|
||||||
A member expression. If `computed` is `true`, the node corresponds to a computed (`a[b]`) member expression and `property` is an `Expression`. If `computed` is `false`, the node corresponds to a static (`a.b`) member expression and `property` is an `Identifier`.
|
A member expression. If `computed` is `true`, the node corresponds to a computed (`a[b]`) member expression and `property` is an `Expression`. If `computed` is `false`, the node corresponds to a static (`a.b`) member expression and `property` is an `Identifier`.
|
||||||
|
|
||||||
|
### BindExpression
|
||||||
|
|
||||||
|
```js
|
||||||
|
interface BindExpression <: Expression {
|
||||||
|
type: "BindExpression";
|
||||||
|
object: [ Expression | null ];
|
||||||
|
callee: [ Expression ]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
If `object` is `null`, then `callee` should be a `MemberExpression`.
|
||||||
|
|
||||||
## ConditionalExpression
|
## ConditionalExpression
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user