add Noop node
This commit is contained in:
parent
40d55a3d44
commit
8eee5367f3
@ -17,3 +17,7 @@ export function BlockStatement(node, print) {
|
||||
this.rightBrace();
|
||||
}
|
||||
}
|
||||
|
||||
export function Noop() {
|
||||
|
||||
}
|
||||
|
||||
@ -17,6 +17,8 @@ var or = types.Type.or;
|
||||
// .build("program")
|
||||
// .field("program", def("Program"));
|
||||
|
||||
def("Noop");
|
||||
|
||||
def("AssignmentPattern")
|
||||
.bases("Pattern")
|
||||
.build("left", "right")
|
||||
|
||||
@ -43,6 +43,7 @@
|
||||
"MetaProperty": ["meta", "property"],
|
||||
"MethodDefinition": ["key", "value", "decorators"],
|
||||
"NewExpression": ["callee", "arguments"],
|
||||
"Noop": [],
|
||||
"ObjectExpression": ["properties"],
|
||||
"ObjectPattern": ["properties", "typeAnnotation"],
|
||||
"Program": ["body"],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user