- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 53 for imp (0.02 sec)
-
src/go/build/deps_test.go
t.Error(err) continue } if sawImport[pkg] == nil { sawImport[pkg] = map[string]bool{} } var bad []string for _, imp := range imports { sawImport[pkg][imp] = true if !policy.HasEdge(pkg, imp) { bad = append(bad, imp) } } if bad != nil { t.Errorf("unexpected dependency: %s imports %v", pkg, bad) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K 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/go/doc/example.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K 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) -
src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go
m := make(map[key]analysis.Fact) // one big bucket for _, imp := range d.pkg.Imports() { logf := func(format string, args ...interface{}) { if debug { prefix := fmt.Sprintf("in %s, importing %s: ", d.pkg.Path(), imp.Path()) log.Print(prefix, fmt.Sprintf(format, args...)) } } // Read the gob-encoded facts. data, err := read(imp.Path()) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
importMap = importPos embedMap = embedPos directives = &p.Directives } *fileList = append(*fileList, name) if importMap != nil { for _, imp := range imports { importMap[imp.path] = append(importMap[imp.path], imp.position) } } if embedMap != nil { for _, e := range tf.embeds() { embedMap[e.pattern] = append(embedMap[e.pattern], e.position) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/go/doc/reader.go
// (qualified name) or the parent is nil, the field is ignored. // The function returns the field name. func (r *reader) recordAnonymousField(parent *namedType, fieldType ast.Expr) (fname string) { fname, imp := baseTypeName(fieldType) if parent == nil || imp { return } if ftype := r.lookupType(fname); ftype != nil { ftype.isEmbedded = true _, ptr := fieldType.(*ast.StarExpr) parent.embedded[ftype] = ptr } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
src/go/types/api.go
// // For dot-imports, the package name is ".". // // Precondition: the Defs and Implicts maps are populated. func (info *Info) PkgNameOf(imp *ast.ImportSpec) *PkgName { var obj Object if imp.Name != nil { obj = info.Defs[imp.Name] } else { obj = info.Implicits[imp] } pkgname, _ := obj.(*PkgName) return pkgname } // TypeAndValue reports the type and value (for constants)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 17.2K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
} for _, iface := range pr.ifaces { iface.Complete() } // Imports() of pkg are all of the transitive packages that were loaded. var imps []*types.Package for _, imp := range pr.pkgs { if imp != nil && imp != pkg { imps = append(imps, imp) } } slices.SortFunc(imps, func(a, b *types.Package) int { return strings.Compare(a.Path(), b.Path()) }) pkg.SetImports(imps) pkg.MarkComplete()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api.go
// // For dot-imports, the package name is ".". // // Precondition: the Defs and Implicts maps are populated. func (info *Info) PkgNameOf(imp *syntax.ImportDecl) *PkgName { var obj Object if imp.LocalPkgName != nil { obj = info.Defs[imp.LocalPkgName] } else { obj = info.Implicits[imp] } pkgname, _ := obj.(*PkgName) return pkgname } // TypeAndValue reports the type and value (for constants)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0)