ast-types
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -30,8 +30,9 @@ var assert = require("assert"); | ||
for (var typeName in supertypeTable) { | ||
if (hasOwn.call(supertypeTable, typeName)) { | ||
methodName = "visit" + supertypeTable[typeName]; | ||
if (isFunction.check(visitor[methodName])) { | ||
methodNameTable[typeName] = methodName; | ||
} | ||
var typeNames = Object.keys(supertypeTable); | ||
var typeNameCount = typeNames.length; | ||
for (var i = 0; i < typeNameCount; ++i) { | ||
var typeName = typeNames[i]; | ||
methodName = "visit" + supertypeTable[typeName]; | ||
if (isFunction.check(visitor[methodName])) { | ||
methodNameTable[typeName] = methodName; | ||
} | ||
@@ -38,0 +39,0 @@ } |
@@ -321,13 +321,14 @@ var assert = require("assert"); | ||
var table = {}; | ||
var typeNames = Object.keys(defCache); | ||
var typeNameCount = typeNames.length; | ||
for (var typeName in defCache) { | ||
if (hasOwn.call(defCache, typeName)) { | ||
var d = defCache[typeName]; | ||
assert.strictEqual(d.finalized, true); | ||
for (var i = 0; i < d.supertypeList.length; ++i) { | ||
var superTypeName = d.supertypeList[i]; | ||
if (hasOwn.call(candidates, superTypeName)) { | ||
table[typeName] = superTypeName; | ||
break; | ||
} | ||
for (var i = 0; i < typeNameCount; ++i) { | ||
var typeName = typeNames[i]; | ||
var d = defCache[typeName]; | ||
assert.strictEqual(d.finalized, true); | ||
for (var j = 0; j < d.supertypeList.length; ++j) { | ||
var superTypeName = d.supertypeList[j]; | ||
if (hasOwn.call(candidates, superTypeName)) { | ||
table[typeName] = superTypeName; | ||
break; | ||
} | ||
@@ -334,0 +335,0 @@ } |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"homepage": "http://github.com/benjamn/ast-types", | ||
@@ -24,0 +24,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108334
2545