@pubinfo-pr/devtools 0.171.7 → 0.171.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +0 -16
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1743,22 +1743,6 @@ function analyzeFile(content, filePath, functionNames, componentNames) {
|
|
|
1743
1743
|
result.functions.get(calleeName).push(loc);
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
|
-
const importMatches = rootNode.findAll({ rule: { kind: "import_specifier" } });
|
|
1747
|
-
for (const match of importMatches) {
|
|
1748
|
-
const text = match.text();
|
|
1749
|
-
const specName = text.split(/\s/)[0];
|
|
1750
|
-
if (specName && hitFunctions.has(specName)) {
|
|
1751
|
-
const range = match.range();
|
|
1752
|
-
const loc = {
|
|
1753
|
-
file: filePath,
|
|
1754
|
-
line: range.start.line + 1,
|
|
1755
|
-
column: range.start.column + 1,
|
|
1756
|
-
code: text
|
|
1757
|
-
};
|
|
1758
|
-
if (!result.functions.has(specName)) result.functions.set(specName, []);
|
|
1759
|
-
result.functions.get(specName).push(loc);
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
1746
|
}
|
|
1763
1747
|
if (hitComponents.size > 0) {
|
|
1764
1748
|
const jsxMatches = rootNode.findAll({ rule: { kind: "jsx_opening_element" } });
|