- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 3,185 for types2 (0.11 sec)
-
src/go/types/objset.go
// Source: ../../cmd/compile/internal/types2/objset.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. // This file implements objsets. // // An objset is similar to a Scope but objset elements // are identified by their unique id, instead of their // object name. package types
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1K bytes - Viewed (0) -
src/go/types/basic.go
// Source: ../../cmd/compile/internal/types2/basic.go // Copyright 2011 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 // BasicKind describes the kind of basic type. type BasicKind int const ( Invalid BasicKind = iota // type is invalid // predeclared types Bool Int Int8 Int16 Int32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/compiler_internal.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. package types2 import ( "cmd/compile/internal/syntax" "fmt" ) // This file should not be copied to go/types. See go.dev/issue/67477 // RenameResult takes an array of (result) fields and an index, and if the indexed field
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 1.4K bytes - Viewed (0) -
src/go/types/operand.go
return newType != nil, IncompatibleAssign } // Vu is typed // x's type V and T have identical underlying types // and at least one of V or T is not a named type // and neither V nor T is a type parameter. if Identical(Vu, Tu) && (!hasName(V) || !hasName(T)) && Vp == nil && Tp == nil { return true, 0 } // T is an interface type, but not a type parameter, and V implements T.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11.1K bytes - Viewed (0) -
src/go/types/util.go
// license that can be found in the LICENSE file. // This file contains various functionality that is // different between go/types and types2. Factoring // out this code allows more of the rest of the code // to be shared. package types import ( "go/ast" "go/constant" "go/token" ) const isTypes2 = false // cmpPos compares the positions p and q and returns a result r as follows: // // r < 0: p is before q
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 1.7K bytes - Viewed (0) -
src/go/types/typelists.go
// TypeList holds a list of types. type TypeList struct{ types []Type } // newTypeList returns a new TypeList with the types in list. func newTypeList(list []Type) *TypeList { if len(list) == 0 { return nil } return &TypeList{list} } // Len returns the number of types in the list. // It is safe to call on a nil receiver. func (l *TypeList) Len() int { return len(l.list()) } // At returns the i'th type in the list.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
return newType != nil, IncompatibleAssign } // Vu is typed // x's type V and T have identical underlying types // and at least one of V or T is not a named type // and neither V nor T is a type parameter. if Identical(Vu, Tu) && (!hasName(V) || !hasName(T)) && Vp == nil && Tp == nil { return true, 0 } // T is an interface type, but not a type parameter, and V implements T.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0) -
src/go/types/context_test.go
// These lookups and updates use reasonable looking types in an attempt to // make them robust to internal type assertions, but could equally well use // arbitrary types. // Create some distinct origin types. nullaryP and nullaryQ have no // parameters and are identical (but have different type parameter names). // unaryP has a parameter. var nullaryP, nullaryQ, unaryP Type { // type nullaryP = func[P any]()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 2.4K bytes - Viewed (0) -
test/typeparam/builtins.go
// This file tests built-in calls on generic types. // derived and expanded from cmd/compile/internal/types2/testdata/check/builtins.go2 package builtins // close type C0 interface{ int } type C1 interface{ chan int } type C2 interface{ chan int | <-chan int } type C3 interface{ chan int | chan float32 } type C4 interface{ chan int | chan<- int } type C5[T any] interface{ ~chan T | chan<- T }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 09:04:48 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
continue } CheckSize(m.Type) addMethod(m, true) } for _, m := range t.Methods() { if m.Sym != nil || m.Type == nil { continue } // In 1.18, embedded types can be anything. In Go 1.17, we disallow // embedding anything other than interfaces. This requirement was caught // by types2 already, so allow non-interface here. if !m.Type.IsInterface() { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0)