- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 4,249 for types2 (0.21 sec)
-
test/typeparam/issue39755.go
// license that can be found in the LICENSE file. // copied from cmd/compile/internal/types2/testdata/fixedbugs/issue39755.go package p func _[T interface{ ~map[string]int }](x T) { _ = x == nil } // simplified test case from issue type PathParamsConstraint interface { ~map[string]string | ~[]struct{ key, value string } } type PathParams[T PathParamsConstraint] struct { t T }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 593 bytes - Viewed (0) -
src/cmd/compile/internal/types2/gccgosizes.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This is a copy of the file generated during the gccgo build process. // Last update 2019-01-22. package types2 var gccgoArchSizes = map[string]*StdSizes{ "386": {4, 4}, "alpha": {8, 8}, "amd64": {8, 8}, "amd64p32": {4, 8}, "arm": {4, 8}, "armbe": {4, 8},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:55:06 UTC 2023 - 1K bytes - Viewed (0) -
src/go/types/array.go
// Source: ../../cmd/compile/internal/types2/array.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 // An Array represents an array type. type Array struct { len int64 elem Type } // NewArray returns a new array type for the given element type and length.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 927 bytes - Viewed (0) -
src/cmd/compile/internal/types2/lookup_test.go
package types2_test import ( "path/filepath" "runtime" "testing" . "cmd/compile/internal/types2" ) // BenchmarkLookupFieldOrMethod measures types.LookupFieldOrMethod performance. // LookupFieldOrMethod is a performance hotspot for both type-checking and // external API calls. func BenchmarkLookupFieldOrMethod(b *testing.B) { // Choose an arbitrary, large package.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 15:31:35 UTC 2022 - 1.2K bytes - Viewed (0) -
src/go/types/errors_test.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/errors_test.go // Copyright 2020 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 "testing" func TestError(t *testing.T) { var err error_ want := "no error" if got := err.msg(); got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1.1K bytes - Viewed (0) -
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)