MCPcopy Create free account
hub / github.com/nodejs/node / getSyntacticDocumentHighlights

Function getSyntacticDocumentHighlights

test/fixtures/snapshot/typescript.js:135577–135580  ·  view source on GitHub ↗
(node, sourceFile)

Source from the content-addressed store, hash-verified

135575 });
135576 }
135577 function getSyntacticDocumentHighlights(node, sourceFile) {
135578 var highlightSpans = getHighlightSpans(node, sourceFile);
135579 return highlightSpans && [{ fileName: sourceFile.fileName, highlightSpans: highlightSpans }];
135580 }
135581 function getHighlightSpans(node, sourceFile) {
135582 switch (node.kind) {
135583 case 99 /* SyntaxKind.IfKeyword */:

Callers 1

getDocumentHighlightsFunction · 0.85

Calls 1

getHighlightSpansFunction · 0.85

Tested by

no test coverage detected