(sourceFile *ast.SourceFile, ignoreNoCheck bool)
| 689 | } |
| 690 | |
| 691 | func (p *Program) SkipTypeChecking(sourceFile *ast.SourceFile, ignoreNoCheck bool) bool { |
| 692 | return (!ignoreNoCheck && p.Options().NoCheck.IsTrue()) || |
| 693 | p.Options().SkipLibCheck.IsTrue() && sourceFile.IsDeclarationFile || |
| 694 | p.Options().SkipDefaultLibCheck.IsTrue() && p.IsSourceFileDefaultLibrary(sourceFile.Path()) || |
| 695 | p.IsSourceFromProjectReference(sourceFile.Path()) || |
| 696 | !p.canIncludeBindAndCheckDiagnostics(sourceFile) |
| 697 | } |
| 698 | |
| 699 | func (p *Program) canIncludeBindAndCheckDiagnostics(sourceFile *ast.SourceFile) bool { |
| 700 | if sourceFile.CheckJsDirective != nil && !sourceFile.CheckJsDirective.Enabled { |
no test coverage detected