fix transformer alias types key

This commit is contained in:
Sebastian McKenzie
2014-11-03 21:17:42 +11:00
parent f49f057b33
commit 3c3746b21f

View File

@@ -32,10 +32,12 @@ Transformer.prototype.transform = function (file) {
transformer.ast.enter(ast, file);
}
var self = this;
var build = function (exit) {
return function (node, parent) {
// add any node type aliases that exist
var types = [node.type].concat(t.aliases[node.type] || []);
var types = [node.type].concat(t.ALIAS_KEYS[node.type] || []);
var fns = transformer.all;