ast/spec: add BindExpression

This commit is contained in:
Henry Zhu 2016-01-20 23:56:19 -05:00
parent f98dd6c76d
commit e1da431453

View File

@ -71,6 +71,7 @@ These are the core Babylon AST node types.
- [LogicalOperator](#logicaloperator)
- [SpreadElement](#spreadelement)
- [MemberExpression](#memberexpression)
- [BindExpression](#bindexpression)
- [ConditionalExpression](#conditionalexpression)
- [CallExpression](#callexpression)
- [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`.
### BindExpression
```js
interface BindExpression <: Expression {
type: "BindExpression";
object: [ Expression | null ];
callee: [ Expression ]
}
```
If `object` is `null`, then `callee` should be a `MemberExpression`.
## ConditionalExpression
```js