* 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)
| 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) |
no outgoing calls
no test coverage detected
searching dependent graphs…