- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for imp (0.1 sec)
-
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
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) -
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) -
src/cmd/compile/internal/types2/format.go
forName, ok := check.pkgPathMap[pkg.name] if !ok { forName = make(map[string]bool) check.pkgPathMap[pkg.name] = forName } forName[pkg.path] = true for _, imp := range pkg.imports { check.markImports(imp) } } // stripAnnotations removes internal (type) annotations from s. func stripAnnotations(s string) string { var buf strings.Builder for _, r := range s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.5K bytes - Viewed (0) -
src/go/types/format.go
forName, ok := check.pkgPathMap[pkg.name] if !ok { forName = make(map[string]bool) check.pkgPathMap[pkg.name] = forName } forName[pkg.path] = true for _, imp := range pkg.imports { check.markImports(imp) } } // stripAnnotations removes internal (type) annotations from s. func stripAnnotations(s string) string { var buf strings.Builder for _, r := range s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go
min = offset } else { max = offset } } } // Imports returns true if path is imported by pkg. func Imports(pkg *types.Package, path string) bool { for _, imp := range pkg.Imports() { if imp.Path() == path { return true } } return false } // IsNamedType reports whether t is the named type with the given package path // and one of the given names.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 3.9K bytes - Viewed (0) -
ci/official/utilities/setup_macos.sh
# a service account that has the right permissions to be able to do so. set +x if [[ -n "${GOOGLE_APPLICATION_CREDENTIALS:-}" ]]; then # Python 3.12 removed the module `imp` which is needed by gcloud CLI so we set # `CLOUDSDK_PYTHON` to Python 3.11 which is the system Python on TFCI Mac # VMs. export CLOUDSDK_PYTHON=$(which python3.11)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 15:23:28 UTC 2024 - 6.2K bytes - Viewed (0)