- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 37 for pkgName (0.35 sec)
-
src/cmd/covdata/dump.go
// pkgpaths records all package import paths encountered while // visiting coverage data files (used to implement the "pkglist" // subcommand). pkgpaths map[string]struct{} // Current package name and import path. pkgName string pkgImportPath string // Module path for current package (may be empty). modulePath string // Dump subcommand (ex: "textfmt", "debugdump", etc). cmd string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:57 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api.go
// // 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) // of the corresponding expression.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
// (This code is only needed for dot-imports. Without them, // we only have to mark variables, see *Var case below). if pkgName := check.dotImportMap[dotImportKey{scope, obj.Name()}]; pkgName != nil { pkgName.used = true } switch obj := obj.(type) { case *PkgName: check.errorf(e, InvalidPkgUse, "use of package %s not in selector", obj.name) return case *Const: check.addDeclDep(obj)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
versions map[*syntax.PosBase]string // maps files to version strings (each file has an entry); shared with Info.FileVersions if present imports []*PkgName // list of imported packages dotImportMap map[dotImportKey]*PkgName // maps dot-imported objects to the package they were dot-imported through recvTParamMap map[*syntax.Name]*TypeParam // maps blank receiver type parameters to their type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
pkgPathOff := r.uint64() pkgPath := p.stringAt(pkgPathOff) pkgName := p.stringAt(r.uint64()) _ = r.uint64() // package height; unused by go/types if pkgPath == "" { pkgPath = path } pkg := imports[pkgPath] if pkg == nil { pkg = types.NewPackage(pkgPath, pkgName) imports[pkgPath] = pkg } else if pkg.Name() != pkgName {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
src/go/types/typexpr.go
// (This code is only needed for dot-imports. Without them, // we only have to mark variables, see *Var case below). if pkgName := check.dotImportMap[dotImportKey{scope, obj.Name()}]; pkgName != nil { pkgName.used = true } switch obj := obj.(type) { case *PkgName: check.errorf(e, InvalidPkgUse, "use of package %s not in selector", obj.name) return case *Const: check.addDeclDep(obj)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/cshared_test.go
t.Error(out) } } func testSignalHandlers(t *testing.T, pkgname, cfile, cmd string) { if GOOS == "windows" { t.Skipf("Skipping on %s", GOOS) } globalSkip(t) testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) testenv.MustHaveBuildMode(t, "c-shared") libname := pkgname + ".a" run(t, nil, "go", "build", "-buildmode=c-shared",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/go/build/deps_test.go
} ctxt := Default all, err := listStdPkgs(ctxt.GOROOT) if err != nil { t.Fatal(err) } for _, pkgname := range all { if strings.ToLower(pkgname) != pkgname { t.Errorf("package %q should not use upper-case path", pkgname) } } } // TestFindImports tests that findImports works. See #43249. func TestFindImports(t *testing.T) {
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/cmd/compile/internal/types2/issues_test.go
func _() { A(B, nil // syntax error: missing ',' before newline in argument list } ` f, err := syntax.Parse(syntax.NewFileBase(pkgName(src)), strings.NewReader(src), func(error) {}, nil, 0) if err == nil { t.Fatal("expected syntax error") } var conf Config conf.Check(f.PkgName.Value, []*syntax.File{f}, nil) // must not panic } func TestIssue61938(t *testing.T) { const src = ` package p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/doc/main.go
return pkg, arg[0:period], symbol, false } // See if we have the basename or tail of a package, as in json for encoding/json // or ivy/value for robpike.io/ivy/value. pkgName := arg[:period] for { path, ok := findNextPackage(pkgName) if !ok { break } if pkg, err = build.ImportDir(path, build.ImportComment); err == nil { return pkg, arg[0:period], symbol, true } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0)