add t.directive

This commit is contained in:
Sebastian McKenzie 2015-08-11 00:59:22 +01:00
parent 415d1271b9
commit d0729fc731

View File

@ -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);