Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for imp (0.03 sec)

  1. cmd/import-boss/main.go

    	direct, indirect := transitiveImports(pkg)
    	isDirect := map[string]bool{}
    	for _, imp := range direct {
    		isDirect[imp] = true
    	}
    	relate := func(imp string) string {
    		if isDirect[imp] {
    			return "->"
    		}
    		return "-->"
    	}
    
    	var errs []error
    	for _, imp := range uniq(direct, indirect) {
    		if unmassage(imp) == realPkgPath {
    			// Tests in package "foo_test" depend on the test package for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/go/types/resolver_test.go

    	imported map[string]bool
    }
    
    func (imp *resolveTestImporter) Import(string) (*Package, error) {
    	panic("should not be called")
    }
    
    func (imp *resolveTestImporter) ImportFrom(path, srcDir string, mode ImportMode) (*Package, error) {
    	if mode != 0 {
    		panic("mode must be 0")
    	}
    	if imp.importer == nil {
    		imp.importer = importer.Default().(ImporterFrom)
    		imp.imported = make(map[string]bool)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/resolver.go

    		} else {
    			imp, err = importer.Import(path)
    			if imp == nil && err == nil {
    				err = fmt.Errorf("Config.Importer.Import(%s) returned nil but no error", path)
    			}
    		}
    		// make sure we have a valid package name
    		// (errors here can only happen through manipulation of packages after creation)
    		if err == nil && imp != nil && (imp.name == "_" || imp.name == "") {
    			err = fmt.Errorf("invalid package name: %q", imp.name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. src/go/types/resolver.go

    			imp, err = importer.Import(path)
    			if imp == nil && err == nil {
    				err = fmt.Errorf("Config.Importer.Import(%s) returned nil but no error", path)
    			}
    		}
    		// make sure we have a valid package name
    		// (errors here can only happen through manipulation of packages after creation)
    		if err == nil && imp != nil && (imp.name == "_" || imp.name == "") {
    			err = fmt.Errorf("invalid package name: %q", imp.name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. cmd/preferredimports/preferredimports.go

    			replacements := make(map[string]string)
    			pathToFile := a.fset.File(file.Pos()).Name()
    			for _, imp := range file.Imports {
    				importPath := strings.Replace(imp.Path.Value, "\"", "", -1)
    				pathSegments := strings.Split(importPath, "/")
    				importName := pathSegments[len(pathSegments)-1]
    				if imp.Name != nil {
    					importName = imp.Name.Name
    				}
    				for re, template := range aliases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. cmd/importverifier/importverifier.go

    		imports = append(imports, append(pkg.TestImports, pkg.XTestImports...)...)
    	}
    	for _, imp := range imports {
    		if i.isForbidden(imp) {
    			forbiddenImportSet[imp] = struct{}{}
    		}
    	}
    
    	var forbiddenImports []string
    	for imp := range forbiddenImportSet {
    		forbiddenImports = append(forbiddenImports, imp)
    	}
    	return forbiddenImports
    }
    
    // isForbidden determines if an import is forbidden,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    			}
    		case *types.TypeParam:
    			if !typs[T] {
    				typs[T] = true
    				addObj(T.Obj())
    				addType(T.Constraint())
    			}
    		}
    	}
    
    	for _, imp := range imports {
    		packages[imp.Path()] = imp
    
    		scope := imp.Scope()
    		for _, name := range scope.Names() {
    			addObj(scope.Lookup(name))
    		}
    	}
    
    	return packages
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java

                    ClassLoader importedRealm = entry.getValue();
                    String imp = entry.getKey();
    
                    logger.debug("  Imported: {} < {}", imp, getId(importedRealm));
    
                    classRealm.importFrom(importedRealm, imp);
                }
            }
    
            if (parentImports != null && !parentImports.isEmpty()) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jan 10 12:53:42 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modindex/scan.go

    			rf.synopsis = doc.Synopsis(info.parsed.Doc.Text())
    		}
    
    		var cgoDirectives []string
    		for _, imp := range info.imports {
    			if imp.path == "C" {
    				cgoDirectives = append(cgoDirectives, extractCgoDirectives(imp.doc.Text())...)
    			}
    			rf.imports = append(rf.imports, rawImport{path: imp.path, position: fset.Position(imp.pos)})
    		}
    		rf.cgoDirectives = strings.Join(cgoDirectives, "\n")
    		for _, emb := range info.embeds {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. pkg/config/schema/codegen/collections.go

    }
    
    func toIstioAwareImport(p string) string {
    	imp := strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(p, "/", ""), ".", ""), "-", "")
    	if strings.Contains(p, "istio.io") {
    		return "api" + imp
    	}
    	return imp
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top