MCPcopy Index your code
hub / github.com/microsoft/typescript-go / SkipTypeChecking

Method SkipTypeChecking

internal/compiler/program.go:691–697  ·  view source on GitHub ↗
(sourceFile *ast.SourceFile, ignoreNoCheck bool)

Source from the content-addressed store, hash-verified

689}
690
691func (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
699func (p *Program) canIncludeBindAndCheckDiagnostics(sourceFile *ast.SourceFile) bool {
700 if sourceFile.CheckJsDirective != nil && !sourceFile.CheckJsDirective.Enabled {

Calls 6

OptionsMethod · 0.95
IsTrueMethod · 0.80
PathMethod · 0.65

Tested by

no test coverage detected