- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 2,350 for types2 (0.23 sec)
-
src/go/types/alias.go
func (a *Alias) Obj() *TypeName { return a.orig.obj } func (a *Alias) String() string { return TypeString(a, nil) } // Underlying returns the [underlying type] of the alias type a, which is the // underlying type of the aliased type. Underlying types are never Named, // TypeParam, or Alias types. // // [underlying type]: https://go.dev/ref/spec#Underlying_types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5.1K bytes - Viewed (0) -
src/go/types/typeterm_test.go
// Source: ../../cmd/compile/internal/types2/typeterm_test.go // Copyright 2021 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 ( "strings" "testing" ) var myInt = func() Type { tname := NewTypeName(nopos, nil, "myInt", nil) return NewNamed(tname, Typ[Int], nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.2K bytes - Viewed (0) -
src/go/types/termlist_test.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/termlist_test.go // Copyright 2021 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 ( "strings" "testing" ) // maketl makes a term list from a string of the term list. func maketl(s string) termlist {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
recvTParamMap map[*syntax.Name]*TypeParam // maps blank receiver type parameters to their type brokenAliases map[*TypeName]bool // set of aliases with broken (not yet determined) types unionTypeSets map[*Union]*_TypeSet // computed type sets for union types mono monoGraph // graph for detecting non-monomorphizable instantiation loops
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/struct.go
// embedded field // spec: "An embedded type must be specified as a type name T or as a // pointer to a non-interface type name *T, and T itself may not be a // pointer type." pos := syntax.StartPos(f.Type) // position of type, for errors name := embeddedFieldIdent(f.Type) if name == nil { check.errorf(pos, InvalidSyntaxTree, "invalid embedded field type %s", f.Type) name = syntax.NewName(pos, "_")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/go/types/instantiate_test.go
tests := []struct { src string name1 string targs1 []Type name2 string targs2 []Type wantEqual bool }{ { "package basictype; type T[P any] int", "T", []Type{Typ[Int]}, "T", []Type{Typ[Int]}, true, }, { "package differenttypeargs; type T[P any] int", "T", []Type{Typ[Int]}, "T", []Type{Typ[String]}, false, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
src/go/types/selection.go
} // In all other cases, the type of x.f is the type of x. return s.obj.Type() } // Index describes the path from x to f in x.f. // The last index entry is the field or method index of the type declaring f; // either: // // 1. the list of declared methods of a named type; or // 2. the list of methods of an interface type; or // 3. the list of fields of a struct type. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/const.go
check.error(atPos(opPos), InvalidConstVal, "constant result is not representable") return } // Typed constants must be representable in // their type after each constant operation. // x.typ cannot be a type parameter (type // parameters cannot be constant types). if isTyped(x.typ) { check.representable(x, under(x.typ).(*Basic)) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 7.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api.go
func (info *Info) recordTypes() bool { return info.Types != nil || info.StoreTypesInSyntax } // TypeOf returns the type of expression e, or nil if not found. // Precondition 1: the Types map is populated or StoreTypesInSyntax is set. // Precondition 2: Uses and Defs maps are populated. func (info *Info) TypeOf(e syntax.Expr) Type { if info.Types != nil { if t, ok := info.Types[e]; ok { return t.Type }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/labels.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. package types2 import ( "cmd/compile/internal/syntax" . "internal/types/errors" ) // labels checks correct label use in body. func (check *Checker) labels(body *syntax.BlockStmt) { // set of all labels in this body all := NewScope(nil, body.Pos(), syntax.EndPos(body), "label")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 7.2K bytes - Viewed (0)