add patch so we can patch estraverse and ast-types
This commit is contained in:
parent
0108562e88
commit
24f0120e01
13
lib/6to5/patch.js
Normal file
13
lib/6to5/patch.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
var estraverse = require("estraverse");
|
||||||
|
var types = require("ast-types");
|
||||||
|
var t = require("./types");
|
||||||
|
var _ = require("lodash");
|
||||||
|
|
||||||
|
var def = types.Type.def;
|
||||||
|
|
||||||
|
def("ParenthesizedExpression")
|
||||||
|
.bases("Expression")
|
||||||
|
.build("expression")
|
||||||
|
.field("expression", def("Expression"));
|
||||||
|
|
||||||
|
_.extend(estraverse.VisitorKeys, t.VISITOR_KEYS);
|
||||||
Loading…
x
Reference in New Issue
Block a user