- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 570 for index (0.04 sec)
-
src/go/types/selection.go
return s.obj.Type() } // Index describes the path from x to f in x.f. // The last index entry is the field or method index of the type declaring f; // either: // // 1. the list of declared methods of a named type; or // 2. the list of methods of an interface type; or // 3. the list of fields of a struct type. // // The earlier index entries are the indices of the embedded fields implicitly
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
src/strconv/bytealg.go
// license that can be found in the LICENSE file. //go:build !compiler_bootstrap package strconv import "internal/bytealg" // index returns the index of the first instance of c in s, or -1 if missing. func index(s string, c byte) int { return bytealg.IndexByteString(s, c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 389 bytes - Viewed (0) -
src/syscall/ztypes_netbsd_386.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 6K bytes - Viewed (0) -
src/syscall/ztypes_netbsd_amd64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 6.2K bytes - Viewed (0) -
test/fixedbugs/issue65417.go
// license that can be found in the LICENSE file. package main import ( "strings" "unsafe" ) func main() { shouldPanic("runtime error: index out of range", func() { f(0) }) shouldPanic("runtime error: index out of range", func() { g(0) }) } func f[T byte](t T) { const str = "a" _ = str[unsafe.Sizeof(t)] } func g[T byte](t T) { const str = "a"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 22:29:14 UTC 2024 - 752 bytes - Viewed (0) -
src/go/types/methodset.go
// and is treated as a collision. func (s methodSet) add(list []*Func, index []int, indirect bool, multiples bool) methodSet { if len(list) == 0 { return s } for i, f := range list { s = s.addOne(f, concat(index, i), indirect, multiples) } return s } func (s methodSet) addOne(f *Func, index []int, indirect bool, multiples bool) methodSet { if s == nil { s = make(methodSet) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/cover/profile.go
divisor := math.Log(float64(max)) // boundary returns a Boundary, populating the Norm field with a normalized Count. index := 0 boundary := func(offset int, start bool, count int) Boundary { b := Boundary{Offset: offset, Start: start, Count: count, Index: index} index++ if !start || count == 0 { return b } if max <= 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 11 17:02:03 UTC 2021 - 7.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/inspector/inspector.go
typ: 0, // temporarily used to accumulate type bits of subtree index: len(events), // push event temporarily holds own index } stack = append(stack, ev) events = append(events, ev) } else { // pop top := len(stack) - 1 ev := stack[top] typ := typeOf(ev.node) push := ev.index parent := top - 1 events[push].typ = typ // set type of push
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 6.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/selection.go
return s.obj.Type() } // Index describes the path from x to f in x.f. // The last index entry is the field or method index of the type declaring f; // either: // // 1. the list of declared methods of a named type; or // 2. the list of methods of an interface type; or // 3. the list of fields of a struct type. // // The earlier index entries are the indices of the embedded fields implicitly
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/internal/obj/pass.go
switch a.Type { case TYPE_NONE, TYPE_REGREG2, TYPE_REGLIST: return case TYPE_BRANCH, TYPE_TEXTSIZE: if a.Reg != 0 || a.Index != 0 || a.Scale != 0 || a.Name != 0 { break } return case TYPE_MEM: return case TYPE_CONST: // TODO(rsc): After fixing SHRQ, check a.Index != 0 too. if a.Name != 0 || a.Sym != nil || a.Reg != 0 { ctxt.Diag("argument is TYPE_CONST, should be TYPE_ADDR, in %v", p) return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 01:26:58 UTC 2023 - 5K bytes - Viewed (0)