Files
babel/lib/babel/transformation/transformers/other/flow.js
Sebastian McKenzie 1d34d03ac8 rename to babel
2015-02-15 18:09:05 +11:00

14 lines
300 B
JavaScript

var t = require("../../../types");
exports.TypeCastExpression = function (node) {
return node.expression;
};
exports.ImportDeclaration = function (node) {
if (node.isType) this.remove();
};
exports.ExportDeclaration = function (node) {
if (t.isTypeAlias(node.declaration)) this.remove();
};