- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,063 for types2 (0.09 sec)
-
src/cmd/compile/internal/syntax/type.go
package syntax import "go/constant" // A Type represents a type of Go. // All types implement the Type interface. // (This type originally lived in types2. We moved it here // so we could depend on it from other packages without // introducing an import cycle.) type Type interface { // Underlying returns the underlying type of a type. // Underlying types are never Named, TypeParam, or Alias types. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/util.go
// 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 types2 import ( "cmd/compile/internal/syntax" "go/constant" "go/token" ) const isTypes2 = true // cmpPos compares the positions p and q and returns a result r as follows: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 2.1K bytes - Viewed (0) -
src/go/types/util_test.go
// Source: ../../cmd/compile/internal/types2/util_test.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 exports various functionality of util.go // so that it can be used in (package-external) tests. package types import ( "go/token" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 626 bytes - Viewed (0) -
src/go/types/main_test.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/main_test.go // Copyright 2022 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_test import ( "go/build" "internal/testenv" "os" "testing" ) func TestMain(m *testing.M) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 464 bytes - Viewed (0) -
src/go/types/map.go
// Source: ../../cmd/compile/internal/types2/map.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 Map represents a map type. type Map struct { key, elem Type } // NewMap returns a new map for the given key and element types. func NewMap(key, elem Type) *Map { return &Map{key: key, elem: elem}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 781 bytes - Viewed (0) -
src/go/types/gccgosizes.go
// Source: ../../cmd/compile/internal/types2/gccgosizes.go // Copyright 2019 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 is a copy of the file generated during the gccgo build process. // Last update 2019-01-22. package types var gccgoArchSizes = map[string]*StdSizes{ "386": {4, 4},
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/chan.go
// Source: ../../cmd/compile/internal/types2/chan.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 Chan represents a channel type. type Chan struct { dir ChanDir elem Type } // A ChanDir value indicates a channel direction. type ChanDir int
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/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/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/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)