@html-eslint/parser
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -18,2 +18,3 @@ /** | ||
this.traverser = createTraverser(this.emitter, ["childNodes"]); | ||
this.parentStack = createStack(); | ||
} | ||
@@ -31,2 +32,3 @@ | ||
} | ||
if (this.convertedStack.isEmpty()) { | ||
@@ -37,9 +39,8 @@ this.ast = converted; | ||
while (this.convertedStack.top() === null) { | ||
this.convertedStack.pop(); | ||
let parent = this.parentStack.top(); | ||
if (parent === converted) { | ||
parent = this.parentStack.pop(); | ||
} | ||
parent = this.parentStack.top(); | ||
const parent = this.convertedStack.top(); | ||
!Array.isArray(parent.childNodes) && (parent.childNodes = []); | ||
parent.childNodes.push(converted); | ||
@@ -51,3 +52,3 @@ } | ||
if (esNode) { | ||
esNode.childNodes = []; | ||
this.parentStack.push(esNode); | ||
} | ||
@@ -54,0 +55,0 @@ this.convertedStack.push(esNode); |
@@ -16,2 +16,3 @@ const utils = require("./utils"); | ||
...utils.toESLocation(sourceCodeLocation, childNodes), | ||
childNodes: [], | ||
}; | ||
@@ -18,0 +19,0 @@ addTags(baseNode, sourceCodeLocation); |
{ | ||
"name": "@html-eslint/parser", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Parser for @html-eslint/eslint-plugin", | ||
@@ -35,3 +35,3 @@ "author": "yeonjuan", | ||
}, | ||
"gitHead": "a88f7f4b5199ead03455753d07a6f8669dc46427" | ||
"gitHead": "7600a568f75ad0aeed4680f60b8d1317cc1e35f6" | ||
} |
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
12569
428