MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / visit

Function visit

src/telemetryGenerator.node.ts:92–102  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

90 sourceFile.forEachChild(visit);
91
92 function visit(node: ts.Node) {
93 if (node.pos === position) {
94 found = node;
95 return;
96 } else if (node.pos > position) {
97 return;
98 } else if (length && node.pos < position && node.end >= position + length) {
99 lastFoundNode = node;
100 }
101 ts.forEachChild(node, visit);
102 }
103 return found || lastFoundNode;
104}
105

Callers

nothing calls this directly

Calls 15

computePropertyForTypeFunction · 0.85
findNodeFunction · 0.85
getCommentForUnionsFunction · 0.85
joinMethod · 0.80
getTextMethod · 0.80
mapMethod · 0.80
filterMethod · 0.80
isNodeExportedFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected