(projectTreeRequest *ProjectTreeRequest)
| 327 | } |
| 328 | |
| 329 | func (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 | |
| 346 | type CreateProgramResult struct { |
| 347 | Program *compiler.Program |
no test coverage detected