add estree to docs [skip ci] (#372)
This commit is contained in:
parent
539d345d9b
commit
1e747835db
@ -61,6 +61,8 @@ mind. When in doubt, use `.parse()`.
|
|||||||
Babylon generates AST according to [Babel AST format][].
|
Babylon generates AST according to [Babel AST format][].
|
||||||
It is based on [ESTree spec][] with the following deviations:
|
It is based on [ESTree spec][] with the following deviations:
|
||||||
|
|
||||||
|
> There is now an `estree` plugin which reverts these deviations
|
||||||
|
|
||||||
- [Literal][] token is replaced with [StringLiteral][], [NumericLiteral][], [BooleanLiteral][], [NullLiteral][], [RegExpLiteral][]
|
- [Literal][] token is replaced with [StringLiteral][], [NumericLiteral][], [BooleanLiteral][], [NullLiteral][], [RegExpLiteral][]
|
||||||
- [Property][] token is replaced with [ObjectProperty][] and [ObjectMethod][]
|
- [Property][] token is replaced with [ObjectProperty][] and [ObjectMethod][]
|
||||||
- [MethodDefinition][] is replaced with [ClassMethod][]
|
- [MethodDefinition][] is replaced with [ClassMethod][]
|
||||||
@ -117,6 +119,7 @@ require("babylon").parse("code", {
|
|||||||
|
|
||||||
### Plugins
|
### Plugins
|
||||||
|
|
||||||
|
- `estree`
|
||||||
- `jsx`
|
- `jsx`
|
||||||
- `flow`
|
- `flow`
|
||||||
- `doExpressions`
|
- `doExpressions`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user