- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 5,019 for types2 (0.13 sec)
-
src/go/types/context.go
} } return nil } // update de-duplicates n against previously seen types with the hash h. If an // identical type is found with the type hash h, the previously seen type is // returned. Otherwise, n is returned, and recorded in the Context for the hash // h. func (ctxt *Context) update(h string, orig Type, targs []Type, inst Type) Type { assert(inst != nil) ctxt.mu.Lock() defer ctxt.mu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errsupport.go
// This file implements support functions for error messages. package types2 // lookupError returns a case-specific error when a lookup of selector sel in the // given type fails but an object with alternative spelling (case folding) is found. // If structLit is set, the error message is specifically for struct literal fields. func (check *Checker) lookupError(typ Type, sel string, obj Object, structLit bool) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 16:41:56 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/gcsizes.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types2 type gcSizes struct { WordSize int64 // word size in bytes - must be >= 4 (32bits) MaxAlign int64 // maximum alignment in bytes - must be >= 1 } func (s *gcSizes) Alignof(T Type) (result int64) { defer func() { assert(result >= 1) }() // For arrays and structs, alignment is defined in terms
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
src/go/types/errsupport.go
// Source: ../../cmd/compile/internal/types2/errsupport.go // Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements support functions for error messages. package types // lookupError returns a case-specific error when a lookup of selector sel in the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/types/gcsizes.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/gcsizes.go // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types type gcSizes struct { WordSize int64 // word size in bytes - must be >= 4 (32bits) MaxAlign int64 // maximum alignment in bytes - must be >= 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/alias.go
// Underlying returns the [underlying type] of the alias type a, which is the // underlying type of the aliased type. Underlying types are never Named, // TypeParam, or Alias types. // // [underlying type]: https://go.dev/ref/spec#Underlying_types. func (a *Alias) Underlying() Type { return unalias(a).Underlying() } // Origin returns the generic Alias type of which a is an instance.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object_test.go
{"type t struct{f int}", "t", "type p.t struct{f int}", false}, {"type t func(int)", "t", "type p.t func(int)", false}, {"type t[P any] struct{f P}", "t", "type p.t[P any] struct{f P}", false}, {"type t[P any] struct{f P}", "t.P", "type parameter P any", false}, {"type C interface{m()}; type t[P C] struct{}", "t.P", "type parameter P p.C", false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/internal/types/testdata/check/vardecl.go
switch t /* ERROR "declared and not used" */ := t.(type) {} switch t /* ERROR "declared and not used" */ := t.(type) { case int: } switch t /* ERROR "declared and not used" */ := t.(type) { case int: case float32, complex64: t = nil } switch t := t.(type) { case int: case float32, complex64: _ = t } switch t := t.(type) { case int: case float32: case string:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5.8K bytes - Viewed (0) -
src/go/types/typeparam.go
func nextID() uint64 { return uint64(lastID.Add(1)) } // A TypeParam represents a type parameter type. type TypeParam struct { check *Checker // for lazy type bound completion id uint64 // unique id, for debugging only obj *TypeName // corresponding type name index int // type parameter index in source order, starting at 0 bound Type // any type, but underlying is eventually *Interface for correct programs (see TypeParam.iface) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 5.1K bytes - Viewed (0) -
src/go/types/alias.go
func (a *Alias) Obj() *TypeName { return a.orig.obj } func (a *Alias) String() string { return TypeString(a, nil) } // Underlying returns the [underlying type] of the alias type a, which is the // underlying type of the aliased type. Underlying types are never Named, // TypeParam, or Alias types. // // [underlying type]: https://go.dev/ref/spec#Underlying_types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5.1K bytes - Viewed (0)