MCPcopy Index your code
hub / github.com/nodejs/node / processElement

Function processElement

test/fixtures/snapshot/typescript.js:130928–130943  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

130926 }
130927 }
130928 function processElement(element) {
130929 if (!element) {
130930 return;
130931 }
130932 // Ignore nodes that don't intersect the original span to classify.
130933 if (ts.decodedTextSpanIntersectsWith(spanStart, spanLength, element.pos, element.getFullWidth())) {
130934 checkForClassificationCancellation(cancellationToken, element.kind);
130935 for (var _i = 0, _a = element.getChildren(sourceFile); _i < _a.length; _i++) {
130936 var child = _a[_i];
130937 if (!tryClassifyNode(child)) {
130938 // Recurse into our child nodes.
130939 processElement(child);
130940 }
130941 }
130942 }
130943 }
130944 }
130945 ts.getEncodedSyntacticClassifications = getEncodedSyntacticClassifications;
130946})(ts || (ts = {}));

Callers 4

classifyJSDocCommentFunction · 0.85
processJSDocParameterTagFunction · 0.85
processJSDocTemplateTagFunction · 0.85

Calls 3

tryClassifyNodeFunction · 0.85
getChildrenMethod · 0.80

Tested by

no test coverage detected