MCPcopy Create free account
hub / github.com/microsoft/typescript-go / hasPotentialProjectReference

Method hasPotentialProjectReference

internal/project/project.go:329–344  ·  view source on GitHub ↗
(projectTreeRequest *ProjectTreeRequest)

Source from the content-addressed store, hash-verified

327}
328
329func (p *Project) hasPotentialProjectReference(projectTreeRequest *ProjectTreeRequest) bool {
330 if p.CommandLine != nil {
331 for _, path := range p.CommandLine.ResolvedProjectReferencePaths() {
332 if projectTreeRequest.IsProjectReferenced(p.toPath(path)) {
333 return true
334 }
335 }
336 } else if p.potentialProjectReferences != nil {
337 for path := range p.potentialProjectReferences.Keys() {
338 if projectTreeRequest.IsProjectReferenced(path) {
339 return true
340 }
341 }
342 }
343 return false
344}
345
346type CreateProgramResult struct {
347 Program *compiler.Program

Callers 1

Implementers 1

Projectinternal/project/project.go

Calls 4

toPathMethod · 0.95
IsProjectReferencedMethod · 0.80
KeysMethod · 0.45

Tested by

no test coverage detected