- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,410 for types2 (0.18 sec)
-
src/go/types/typestring.go
newTypeWriter(buf, qf).signature(sig) } type typeWriter struct { buf *bytes.Buffer seen map[Type]bool qf Qualifier ctxt *Context // if non-nil, we are type hashing tparams *TypeParamList // local type parameters paramNames bool // if set, write function parameter names, otherwise, write types only
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.3K bytes - Viewed (0) -
src/go/types/scope.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/scope.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 Scopes. package types import ( "fmt" "go/token" "io" "sort" "strings" "sync" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.9K bytes - Viewed (0) -
src/go/types/subst.go
} func (m substMap) lookup(tpar *TypeParam) Type { if t := m[tpar]; t != nil { return t } return tpar } // subst returns the type typ with its type parameters tpars replaced by the // corresponding type arguments targs, recursively. subst doesn't modify the // incoming type. If a substitution took place, the result type is different // from the incoming type. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/go/types/named.go
// - We say that a Named type is "instantiated" if it has been constructed by // instantiating a generic named type with type arguments. // - We say that a Named type is "declared" if it corresponds to a type // declaration in the source. Instantiated named types correspond to a type // instantiation in the source, not a declaration. But their Origin type is // a declared type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/compile/internal/types2/scope.go
// This file implements Scopes. package types2 import ( "cmd/compile/internal/syntax" "fmt" "io" "sort" "strings" "sync" ) // A Scope maintains a set of objects and links to its containing // (parent) and contained (children) scopes. Objects may be inserted // and looked up by name. The zero value for Scope is a ready-to-use // empty scope. type Scope struct { parent *Scope children []*Scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/subst.go
} func (m substMap) lookup(tpar *TypeParam) Type { if t := m[tpar]; t != nil { return t } return tpar } // subst returns the type typ with its type parameters tpars replaced by the // corresponding type arguments targs, recursively. subst doesn't modify the // incoming type. If a substitution took place, the result type is different // from the incoming type. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
newTypeWriter(buf, qf).signature(sig) } type typeWriter struct { buf *bytes.Buffer seen map[Type]bool qf Qualifier ctxt *Context // if non-nil, we are type hashing tparams *TypeParamList // local type parameters paramNames bool // if set, write function parameter names, otherwise, write types only
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/signature.go
variadic bool // true if the last parameter's type is of the form ...T (or string, for append built-in only) } // NewSignatureType creates a new function type for the given receiver, // receiver type parameters, type parameters, parameters, and results. If // variadic is set, params must hold at least one parameter and the last // parameter's core type must be of unnamed slice or bytestring type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:33:05 UTC 2024 - 12.6K bytes - Viewed (0) -
src/go/types/stmt.go
} // A valueMap maps a case value (of a basic Go type) to a list of positions // where the same case value appeared, together with the corresponding case // types. // Since two case values may have the same "underlying" value but different // types we need to also check the value's types (e.g., byte(1) vs myByte(1)) // when the switch expression is of interface type. type (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate.go
// This file implements instantiation of generic types // through substitution of type parameters by type arguments. package types2 import ( "cmd/compile/internal/syntax" "errors" "fmt" . "internal/types/errors" ) // A genericType implements access to its type parameters. type genericType interface { Type TypeParams() *TypeParamList }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.7K bytes - Viewed (0)