fix transformer alias types key
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user