(sourceFile *SourceFile, compilerOptions *core.CompilerOptions)
| 2861 | } |
| 2862 | |
| 2863 | func IsCheckJSEnabledForFile(sourceFile *SourceFile, compilerOptions *core.CompilerOptions) bool { |
| 2864 | if sourceFile.CheckJsDirective != nil { |
| 2865 | return sourceFile.CheckJsDirective.Enabled |
| 2866 | } |
| 2867 | return compilerOptions.CheckJs == core.TSTrue |
| 2868 | } |
| 2869 | |
| 2870 | func IsPlainJSFile(file *SourceFile, checkJs core.Tristate) bool { |
| 2871 | return file != nil && (file.ScriptKind == core.ScriptKindJS || file.ScriptKind == core.ScriptKindJSX) && file.CheckJsDirective == nil && checkJs == core.TSUnknown |
no outgoing calls
no test coverage detected