- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for pkgName (0.11 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go
return false } switch sel.Sel.Name { case "WithCancel", "WithTimeout", "WithDeadline": default: return false } if x, ok := sel.X.(*ast.Ident); ok { if pkgname, ok := info.Uses[x].(*types.PkgName); ok { return pkgname.Imported().Path() == contextPackage } // Import failed, so we can't check package path. // Just check the local package name (heuristic). return x.Name == "context" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/internal/cov/covcmd/cmddefs.go
// File into which cmd/cover should emit summary info // when instrumentation is complete. OutConfig string // Import path for the package being instrumented. PkgPath string // Package name. PkgName string // Instrumentation granularity: one of "perfunc" or "perblock" (default) Granularity string // Module path for this package (empty if no go.mod in use) ModulePath string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 30 16:13:15 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/go/internal/modindex/scan.go
type rawFile struct { error string parseError string name string synopsis string // doc.Synopsis of package comment... Compute synopsis on all of these? pkgName string ignoreFile bool // starts with _ or . or should otherwise always be ignored binaryOnly bool // cannot be rebuilt from source (has //go:binary-only-package comment)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 8.5K bytes - Viewed (0) -
src/go/types/resolver_test.go
obj := uses[x] if obj == nil { t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name) return false } if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil { t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name) return false } return false } return true } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
func (*node) aNode() {} // ---------------------------------------------------------------------------- // Files // package PkgName; DeclList[0], DeclList[1], ... type File struct { Pragma Pragma PkgName *Name DeclList []Decl EOF Pos GoVersion string node } // ---------------------------------------------------------------------------- // Declarations
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0) -
src/internal/coverage/decodemeta/decode.go
return nil } func (d *CoverageMetaDataDecoder) PackagePath() string { return d.strtab.Get(d.hdr.PkgPath) } func (d *CoverageMetaDataDecoder) PackageName() string { return d.strtab.Get(d.hdr.PkgName) } func (d *CoverageMetaDataDecoder) ModulePath() string { return d.strtab.Get(d.hdr.ModulePath) } func (d *CoverageMetaDataDecoder) NumFuncs() uint32 { return d.hdr.NumFuncs }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:28 UTC 2023 - 3.6K bytes - Viewed (0) -
src/cmd/go/internal/modindex/index_format.txt
synopsis - string offset name - string offset pkgName - string offset ignoreFile - int32 bool // report the file in Ignored(Go|Other)Files because there was an error reading it or parsing its build constraints. binaryOnly uint32 bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 13 00:22:50 UTC 2023 - 2.4K bytes - Viewed (0) -
api/go1.22.txt
pkg go/types, method (*Alias) String() string #63223 pkg go/types, method (*Alias) Underlying() Type #63223 pkg go/types, method (*Info) PkgNameOf(*ast.ImportSpec) *PkgName #62037 pkg go/types, method (Checker) PkgNameOf(*ast.ImportSpec) *PkgName #62037 pkg go/types, type Alias struct #63223 pkg go/types, type Info struct, FileVersions map[*ast.File]string #62605 pkg go/version, func Compare(string, string) int #62039
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 20:54:27 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named_test.go
} func (*Tree[R]) N(r R) R { return r } type Node[T any] struct { *Tree[T] } func (Node[Q]) M(Q) {} type Inst = *Tree[int] ` f := mustParse(src) pkg := NewPackage("p", f.PkgName.Value) if err := NewChecker(nil, pkg, nil).Files([]*syntax.File{f}); err != nil { t.Fatal(err) } firstFieldType := func(n *Named) *Named {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 21:06:56 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
if x, ok := s.X.(*syntax.Name); ok { obj := uses[x] if obj == nil { t.Errorf("%s: unresolved qualified identifier %s", x.Pos(), x.Value) return false } if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil { t.Errorf("%s: unresolved selector %s", s.Sel.Pos(), s.Sel.Value) return false } return false } return true } return true }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 4.7K bytes - Viewed (0)