- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 3,831 for types2 (0.15 sec)
-
src/go/types/pointer.go
// Source: ../../cmd/compile/internal/types2/pointer.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 // A Pointer represents a pointer type. type Pointer struct { base Type // element type } // NewPointer returns a new pointer type for the given element (base) type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 761 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue43190.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The errors below are produced by the parser, but we check // them here for consistency with the types2 tests. package p import ; // ERROR "missing import path" import "" // ERROR "invalid import path (empty string)" import var /* ERROR "missing import path" */ _ int import .; // ERROR "missing import path"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 997 bytes - Viewed (0) -
src/go/types/testdata/local/shifts.go
// license that can be found in the LICENSE file. // The following shift tests are disabled in the shared // testdata/check/shifts.go file because they don't work // correctly with types2 at the moment. See go.dev/issue/52080. // Make sure we keep testing them with go/types. // // TODO(gri) Once go.dev/issue/52080 is fixed, this file can be // deleted in favor of the re-enabled tests // in the shared file. package p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 01 21:31:01 UTC 2023 - 886 bytes - Viewed (0) -
src/go/types/slice.go
// Source: ../../cmd/compile/internal/types2/slice.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 // A Slice represents a slice type. type Slice struct { elem Type } // NewSlice returns a new slice type for the given element type. func NewSlice(elem Type) *Slice { return &Slice{elem: elem} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 701 bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizeof_test.go
package types2 import ( "reflect" "testing" ) // Signal size changes of important structures. func TestSizeof(t *testing.T) { const _64bit = ^uint(0)>>32 != 0 var tests = []struct { val interface{} // type as a value _32bit uintptr // size on 32bit platforms _64bit uintptr // size on 64bit platforms }{ // Types {Basic{}, 16, 32}, {Array{}, 16, 24},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 06 13:09:19 UTC 2023 - 1.3K bytes - Viewed (0) -
src/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 types2 import "testing" func TestError(t *testing.T) { var err error_ want := "no error" if got := err.msg(); got != want { t.Errorf("empty error: got %q, want %q", got, want) } want = "foo 42" err.addf(nopos, "foo %d", 42)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:21:43 UTC 2024 - 979 bytes - Viewed (0) -
src/go/types/tuple.go
// Source: ../../cmd/compile/internal/types2/tuple.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 // A Tuple represents an ordered list of variables; a nil *Tuple is a valid (empty) tuple. // Tuples are used as components of signatures and to represent the type of multiple
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1K 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)