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

Function getModeForFileReference

test/fixtures/snapshot/typescript.js:116199–116201  ·  view source on GitHub ↗

* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly * provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.

(ref, containingFileMode)

Source from the content-addressed store, hash-verified

116197 * provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
116198 */
116199 function getModeForFileReference(ref, containingFileMode) {
116200 return (ts.isString(ref) ? containingFileMode : ref.resolutionMode) || containingFileMode;
116201 }
116202 ts.getModeForFileReference = getModeForFileReference;
116203 function getModeForResolutionAtIndex(file, index) {
116204 if (file.impliedNodeFormat === undefined)

Callers 2

pullDiagnosticsFromCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…