- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 101 for TypeParam (0.13 sec)
-
src/go/types/sizes.go
assert(!isTypeParam(T)) return s.WordSize case *Basic: // Strings are like slices and interfaces. if t.Info()&IsString != 0 { return s.WordSize } case *TypeParam, *Union: panic("unreachable") } a := s.Sizeof(T) // may be 0 or negative // spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1." if a < 1 { return 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/types.go
} if !objUpdated { return t } return &DeclType{ name: name, Fields: fieldMap, KeyType: t.KeyType, ElemType: t.ElemType, TypeParam: t.TypeParam, Metadata: t.Metadata, celType: cel.ObjectType(name), traitMask: t.traitMask, defaultValue: t.defaultValue, MinSerializedSize: t.MinSerializedSize, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 18K bytes - Viewed (0) -
src/go/types/typestring.go
} else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams // parameterized type w.tParamList(t.TypeParams().list()) } case *TypeParam: if t.obj == nil { w.error("unnamed type parameter") break } if i := tparamIndex(w.tparams.list(), t); i >= 0 { // The names of type parameters that are declared by the type being
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.3K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt
memberSymbol.typeParameterSymbols.zip(member.typeParameters).forEach { (typeParamSymbol, typeParam) -> javaTypeParameterStack.addParameter(JavaTypeParameterImpl(typeParam), typeParamSymbol) } } }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 29 20:26:34 UTC 2024 - 18.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/validtype.go
// must also be in path (invariant). But not every type in path is in nest, since // nest may be pruned (see below, *TypeParam case). if !check.validType0(pos, t.Origin().fromRHS, append(nest, t), append(path, t)) { return false } // see TODO above // check.valids.add(t) // t is valid case *TypeParam: // A type parameter stands for the type (argument) it was instantiated with.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 13:22:37 UTC 2024 - 10.2K bytes - Viewed (0) -
src/go/types/validtype.go
// must also be in path (invariant). But not every type in path is in nest, since // nest may be pruned (see below, *TypeParam case). if !check.validType0(pos, t.Origin().fromRHS, append(nest, t), append(path, t)) { return false } // see TODO above // check.valids.add(t) // t is valid case *TypeParam: // A type parameter stands for the type (argument) it was instantiated with.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/common.go
Indices: indices, Rbrack: rbrack, } } } // IsTypeParam reports whether t is a type parameter (or an alias of one). func IsTypeParam(t types.Type) bool { _, ok := aliases.Unalias(t).(*types.TypeParam) return ok } // GenericAssignableTo is a generalization of types.AssignableTo that // implements the following rule for uninstantiated generic types: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
} else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams // parameterized type w.tParamList(t.TypeParams().list()) } case *TypeParam: if t.obj == nil { w.error("unnamed type parameter") break } if i := tparamIndex(w.tparams.list(), t); i >= 0 { // The names of type parameters that are declared by the type being
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/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
// TODO(adonovan): think about generics, and also generic aliases. under := aliases.Unalias(typ) // Don't call Underlying unconditionally: although it removes // Named and Alias, it also removes TypeParam. if n, ok := under.(*types.Named); ok { under = n.Underlying() } switch under := under.(type) { case *types.Basic: switch { case under.Info()&types.IsNumeric != 0:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object.go
// NewTypeNameLazy returns a new defined type like NewTypeName, but it // lazily calls resolve to finish constructing the Named object. func NewTypeNameLazy(pos syntax.Pos, pkg *Package, name string, load func(named *Named) (tparams []*TypeParam, underlying Type, methods []*Func)) *TypeName { obj := NewTypeName(pos, pkg, name, nil) NewNamed(obj, nil, nil).loader = load return obj } // IsAlias reports whether obj is an alias name for a type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0)