(filename, p string, context *package_lookup_context)
| 150 | } |
| 151 | |
| 152 | func abs_path_for_package(filename, p string, context *package_lookup_context) (string, bool) { |
| 153 | dir, _ := filepath.Split(filename) |
| 154 | if len(p) == 0 { |
| 155 | return "", false |
| 156 | } |
| 157 | if p[0] == '.' { |
| 158 | return fmt.Sprintf("%s.a", filepath.Join(dir, p)), true |
| 159 | } |
| 160 | pkg, ok := find_go_dag_package(p, dir) |
| 161 | if ok { |
| 162 | return pkg, true |
| 163 | } |
| 164 | return find_global_file(p, context) |
| 165 | } |
| 166 | |
| 167 | func path_and_alias(imp *ast.ImportSpec) (string, string) { |
| 168 | path := "" |
no test coverage detected