@webassemblyjs/ast
Advanced tools
Comparing version 1.1.2-y.9 to 1.1.2-y.10
@@ -165,22 +165,35 @@ "use strict"; | ||
case "TypeInstruction": | ||
{ | ||
var _path6 = createPath(n, parentPath); | ||
cb(n.type, _path6); | ||
if (n.id != null) { | ||
walk(n.id, cb, _path6); | ||
} | ||
break; | ||
} | ||
case "IfInstruction": | ||
{ | ||
var _path6 = createPath(n, parentPath); // $FlowIgnore | ||
var _path7 = createPath(n, parentPath); // $FlowIgnore | ||
cb(n.type, _path6); // $FlowIgnore | ||
cb(n.type, _path7); // $FlowIgnore | ||
n.test.forEach(function (x) { | ||
return walk(x, cb, _path6); | ||
return walk(x, cb, _path7); | ||
}); // $FlowIgnore | ||
n.consequent.forEach(function (x) { | ||
return walk(x, cb, _path6); | ||
return walk(x, cb, _path7); | ||
}); // $FlowIgnore | ||
n.alternate.forEach(function (x) { | ||
return walk(x, cb, _path6); | ||
return walk(x, cb, _path7); | ||
}); // $FlowIgnore | ||
walk(n.testLabel, cb, _path6); | ||
walk(n.testLabel, cb, _path7); | ||
break; | ||
@@ -191,10 +204,10 @@ } | ||
{ | ||
var _path7 = createPath(n, parentPath); // $FlowIgnore | ||
var _path8 = createPath(n, parentPath); // $FlowIgnore | ||
cb(n.type, _path7); // $FlowIgnore | ||
cb(n.type, _path8); // $FlowIgnore | ||
if (_typeof(n.args) === "object") { | ||
n.args.forEach(function (x) { | ||
return walk(x, cb, _path7); | ||
return walk(x, cb, _path8); | ||
}); | ||
@@ -209,10 +222,10 @@ } | ||
{ | ||
var _path8 = createPath(n, parentPath); // $FlowIgnore | ||
var _path9 = createPath(n, parentPath); // $FlowIgnore | ||
cb(n.type, _path8); | ||
cb(n.type, _path9); | ||
if (n.label != null) { | ||
// $FlowIgnore | ||
walk(n.label, cb, _path8); | ||
walk(n.label, cb, _path9); | ||
} // $FlowIgnore | ||
@@ -222,3 +235,3 @@ | ||
n.instr.forEach(function (x) { | ||
return walk(x, cb, _path8); | ||
return walk(x, cb, _path9); | ||
}); | ||
@@ -230,11 +243,11 @@ break; | ||
{ | ||
var _path9 = createPath(n, parentPath); | ||
var _path10 = createPath(n, parentPath); | ||
cb(n.type, _path9); | ||
cb(n.type, _path10); | ||
n.body.forEach(function (x) { | ||
return walk(x, cb, _path9); | ||
return walk(x, cb, _path10); | ||
}); | ||
if (n.name != null) { | ||
walk(n.name, cb, _path9); | ||
walk(n.name, cb, _path10); | ||
} | ||
@@ -241,0 +254,0 @@ |
{ | ||
"name": "@webassemblyjs/ast", | ||
"version": "1.1.2-y.9", | ||
"version": "1.1.2-y.10", | ||
"description": "AST utils for webassemblyjs", | ||
@@ -14,5 +14,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@webassemblyjs/wast-parser": "1.1.2-y.9", | ||
"@webassemblyjs/wast-parser": "1.1.2-y.10", | ||
"webassembly-floating-point-hex-parser": "0.1.2", | ||
"webassemblyjs": "1.1.2-y.9" | ||
"webassemblyjs": "1.1.2-y.10" | ||
}, | ||
@@ -19,0 +19,0 @@ "repository": { |
@@ -147,2 +147,13 @@ // @flow | ||
case "TypeInstruction": { | ||
const path = createPath(n, parentPath); | ||
cb(n.type, path); | ||
if (n.id != null) { | ||
walk(n.id, cb, path); | ||
} | ||
break; | ||
} | ||
case "IfInstruction": { | ||
@@ -149,0 +160,0 @@ const path = createPath(n, parentPath); |
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
61566
2142
+ Added@webassemblyjs/helper-leb128@1.1.2-y.10(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.1.2-y.10(transitive)
+ Added@webassemblyjs/wasm-parser@1.1.2-y.10(transitive)
+ Added@webassemblyjs/wast-parser@1.1.2-y.10(transitive)
+ Addedwebassemblyjs@1.1.2-y.10(transitive)
- Removed@webassemblyjs/helper-leb128@1.1.2-y.9(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.1.2-y.9(transitive)
- Removed@webassemblyjs/wasm-parser@1.1.2-y.9(transitive)
- Removed@webassemblyjs/wast-parser@1.1.2-y.9(transitive)
- Removedwebassemblyjs@1.1.2-y.9(transitive)
Updatedwebassemblyjs@1.1.2-y.10