- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 5,019 for types2 (0.18 sec)
-
src/cmd/compile/internal/types2/pointer.go
// license that can be found in the LICENSE file. package types2 // 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. func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} } // Elem returns the element type for the given pointer p. func (p *Pointer) Elem() Type { return p.base }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 01 22:17:50 UTC 2021 - 635 bytes - Viewed (0) -
src/cmd/compile/internal/types2/self_test.go
"testing" "time" . "cmd/compile/internal/types2" ) func TestSelf(t *testing.T) { testenv.MustHaveGoBuild(t) // The Go command is needed for the importer to determine the locations of stdlib .a files. files, err := pkgFiles(".") if err != nil { t.Fatal(err) } conf := Config{Importer: defaultImporter()} _, err = conf.Check("cmd/compile/internal/types2", files, nil) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 19:39:00 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/tuple.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types2 // 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 // assignments; they are not first class types of Go. type Tuple struct { vars []*Var } // NewTuple returns a new tuple for the given variables.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 26 17:18:58 UTC 2021 - 929 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/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/cmd/compile/internal/types2/compilersupport.go
// type of all types in the corresponding type constraint 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. // If typ is not a type parameter, CoreType returns the underlying type. func CoreType(t Type) Type {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 09 22:58:35 UTC 2022 - 1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/map.go
package types2 // 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} } // Key returns the key type of map m. func (m *Map) Key() Type { return m.key } // Elem returns the element type of map m.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 01 22:17:50 UTC 2021 - 659 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)