We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce44dfe + e68f6a7 commit b1688bfCopy full SHA for b1688bf
4 files changed
src/extractors/helpers.js
@@ -4,7 +4,8 @@ export function nodeEndLine(node) {
4
5
export function findChild(node, type) {
6
for (let i = 0; i < node.childCount; i++) {
7
- if (node.child(i).type === type) return node.child(i);
+ const child = node.child(i);
8
+ if (child.type === type) return child;
9
}
10
return null;
11
0 commit comments