* True when the Go file imports `qualifier` — by its last path segment or * an alias — from a package of one of the project's own modules.
(ref: UnresolvedRef, qualifier: string)
| 3912 | * an alias — from a package of one of the project's own modules. |
| 3913 | */ |
| 3914 | private isGoProjectPackage(ref: UnresolvedRef, qualifier: string): boolean { |
| 3915 | return this.context |
| 3916 | .getImportMappings(ref.filePath, ref.language) |
| 3917 | .some((imp) => imp.localName === qualifier && this.context.getGoPackageDir?.(imp.source, ref.filePath) != null); |
| 3918 | } |
| 3919 | |
| 3920 | /** |
| 3921 | * Check if reference is to a built-in or external symbol |
no test coverage detected