more generator spring cleaning

This commit is contained in:
Sebastian McKenzie
2014-11-17 17:30:41 +11:00
parent 8e115ef3ed
commit 7b74c1c8ec
6 changed files with 124 additions and 117 deletions

View File

@@ -19,6 +19,7 @@
"Property": ["kind", "key", "value", "computed"],
"ReturnStatement": ["argument"],
"SequenceExpression": ["expressions"],
"ThrowExpression": ["argument"],
"UnaryExpression": ["operator", "argument", "prefix"],
"VariableDeclaration": ["kind", "declarations"],
"VariableDeclarator": ["id", "init"],

View File

@@ -50,6 +50,12 @@ _.each(_aliases, function (types, type) {
//
t.isExpression = function (node) {
return !t.isDeclaration(node);
};
//
t.shallowEqual = function (actual, expected) {
var same = true;