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

Function processReason

test/fixtures/snapshot/typescript.js:118961–118973  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

118959 ts.createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) :
118960 ts.createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
118961 function processReason(reason) {
118962 (fileIncludeReasons || (fileIncludeReasons = [])).push(ts.fileIncludeReasonToDiagnostics(program, reason));
118963 if (!locationReason && isReferencedFile(reason)) {
118964 // Report error at first reference file or file currently in processing and dont report in related information
118965 locationReason = reason;
118966 }
118967 else if (locationReason !== reason) {
118968 relatedInfo = ts.append(relatedInfo, fileIncludeReasonToRelatedInformation(reason));
118969 }
118970 // Remove fileProcessingReason if its already included in fileReasons of the program
118971 if (reason === fileProcessingReason)
118972 fileProcessingReason = undefined;
118973 }
118974 }
118975 function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) {
118976 (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({

Callers 1

Calls 4

isReferencedFileFunction · 0.85
pushMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…