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

Function getHighlightSpanForNode

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

Source from the content-addressed store, hash-verified

135547 }
135548 DocumentHighlights.getDocumentHighlights = getDocumentHighlights;
135549 function getHighlightSpanForNode(node, sourceFile) {
135550 return {
135551 fileName: sourceFile.fileName,
135552 textSpan: ts.createTextSpanFromNode(node, sourceFile),
135553 kind: "none" /* HighlightSpanKind.none */
135554 };
135555 }
135556 function getSemanticDocumentHighlights(position, node, program, cancellationToken, sourceFilesToSearch) {
135557 var sourceFilesSet = new ts.Set(sourceFilesToSearch.map(function (f) { return f.fileName; }));
135558 var referenceEntries = ts.FindAllReferences.getReferenceEntriesForNode(position, node, program, sourceFilesToSearch, cancellationToken, /*options*/ undefined, sourceFilesSet);

Callers 3

getDocumentHighlightsFunction · 0.85
highlightSpansFunction · 0.85
getIfElseOccurrencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected