- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 3,185 for types2 (0.12 sec)
-
src/cmd/compile/internal/types2/errors.go
} panic(msg) } } // An errorDesc describes part of a type-checking error. type errorDesc struct { pos syntax.Pos msg string } // An error_ represents a type-checking error. // A new error_ is created with Checker.newError. // To report an error_, call error_.report. type error_ struct { check *Checker desc []errorDesc code Code
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/under.go
// type of all types in its type set if it exists, or nil otherwise. If the // type set contains only unrestricted and restricted channel types (with // identical element types), the single underlying type is the restricted // channel type if the restrictions are always the same, or nil otherwise. func coreType(t Type) Type { t = Unalias(t) tpar, _ := t.(*TypeParam) if tpar == nil { return under(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/version.go
// license that can be found in the LICENSE file. package types2 import ( "fmt" "go/version" "internal/goversion" ) // A goVersion is a Go language version string of the form "go1.%d" // where d is the minor version number. goVersion strings don't // contain release numbers ("go1.20.1" is not a valid goVersion). type goVersion string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 2.4K bytes - Viewed (0) -
src/go/types/under.go
return t.Underlying() } // If t is not a type parameter, coreType returns the underlying type. // If t is a type parameter, coreType returns the single underlying // type of all types in its type set if it exists, or nil otherwise. If the // type set contains only unrestricted and restricted channel types (with // identical element types), the single underlying type is the restricted // channel type if the restrictions are always the same, or nil otherwise.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named_test.go
}) } }) } func mustInstantiate(tb testing.TB, orig Type, targs ...Type) Type { inst, err := Instantiate(nil, orig, targs, true) if err != nil { tb.Fatal(err) } return inst } // Test that types do not expand infinitely, as in go.dev/issue/52715. func TestFiniteTypeExpansion(t *testing.T) { const src = ` package p type Tree[T any] struct { *Node[T] }
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/go/types/package.go
// Source: ../../cmd/compile/internal/types2/package.go // Copyright 2013 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 import ( "fmt" ) // A Package describes a Go package. type Package struct { path string name string scope *Scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_predicates.go
} // Implements reports whether type V implements interface T. // // The behavior of Implements is unspecified if V is Typ[Invalid] or an uninstantiated // generic type. func Implements(V Type, T *Interface) bool { if T.Empty() { // All types (even Typ[Invalid]) implement the empty interface. return true } // Checker.implements suppresses errors for invalid types, so we need special // handling here.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
// This file implements isTerminating. package types2 import ( "cmd/compile/internal/syntax" ) // isTerminating reports if s is a terminating statement. // If s is labeled, label is the label name; otherwise s // is "". func (check *Checker) isTerminating(s syntax.Stmt, label string) bool { switch s := s.(type) { default: panic("unreachable")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/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: Mon Aug 28 17:29:21 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/types/api_predicates.go
// Source: ../../cmd/compile/internal/types2/api_predicates.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. // This file implements exported type predicates. package types // AssertableTo reports whether a value of type V can be asserted to have type T. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.5K bytes - Viewed (0)