add t.directive
This commit is contained in:
parent
415d1271b9
commit
d0729fc731
@ -364,6 +364,14 @@ export function inherits(child: Object, parent: Object): Object {
|
||||
return child;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description
|
||||
*/
|
||||
|
||||
export function directive(value) {
|
||||
return t.expressionStatement(t.literal(value));
|
||||
}
|
||||
|
||||
// Optimize property access.
|
||||
toFastProperties(t);
|
||||
toFastProperties(t.VISITOR_KEYS);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user