Home
last modified time | relevance | path

Searched refs:UnionType (Results 1 – 25 of 32) sorted by relevance

12

/third_party/python/Lib/
Dtyping.py172 if isinstance(arg, (type, TypeVar, ForwardRef, types.UnionType, ParamSpec)):
217 if isinstance(t, (_GenericAlias, GenericAlias, types.UnionType)):
273 if isinstance(p, (_UnionGenericAlias, types.UnionType)):
327 if isinstance(t, (_GenericAlias, GenericAlias, types.UnionType)):
333 if isinstance(t, types.UnionType):
1057 elif isinstance(arg, (_GenericAlias, GenericAlias, types.UnionType)):
1226 if not isinstance(other, (_UnionGenericAlias, types.UnionType)):
1871 if isinstance(t, types.UnionType):
1902 if isinstance(tp, types.UnionType):
1903 return types.UnionType
[all …]
Dtypes.py301 UnionType = type(int | str) variable
/third_party/skia/third_party/externals/dawn/src/dawn_node/tools/src/cmd/idlgen/
Dmain.go128 "IsUnionType": is(ast.UnionType{}),
347 case *ast.UnionType:
/third_party/typescript/src/services/
Drename.ts20 …(type.flags & TypeFlags.Union) && every((type as UnionType).types, type => !!(type.flags & TypeFla…
Dtypes.ts66 isUnion(): this is UnionType; property
DstringCompletions.ts142 case SyntaxKind.UnionType: {
Dservices.ts485 isUnion(): this is UnionType {
/third_party/typescript/src/compiler/
Dchecker.ts729 const unionTypes = new Map<string, UnionType>();
786 …UnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]) as UnionType;
3863 function createBooleanType(trueFalseTypes: readonly Type[]): IntrinsicType & UnionType {
3864 const type = <IntrinsicType & UnionType>getUnionType(trueFalseTypes);
4688 if (type.flags & TypeFlags.Union && (<UnionType>type).origin) {
4689 type = (<UnionType>type).origin!;
4692 …const types = type.flags & TypeFlags.Union ? formatUnionTypes((<UnionType>type).types) : (<Interse…
7653 const count = (<UnionType>baseType).types.length;
7654 …peOfLiteralType(types[i + count - 1]) === getRegularTypeOfLiteralType((<UnionType>baseType).types[…
7867 case SyntaxKind.UnionType:
[all …]
Dtracing.ts254 …unionTypes: (type.flags & TypeFlags.Union) ? (type as UnionType).types?.map(t => t.id) : undefined,
Dtypes.ts224 UnionType, enumerator
661 | SyntaxKind.UnionType
1606 readonly kind: SyntaxKind.UnionType;
5204 export type ObjectFlagsType = NullableType | ObjectType | UnionType | IntersectionType;
5337 export interface UnionType extends UnionOrIntersectionType {
5341 regularType?: UnionType;
5351 export type StructuredType = ObjectType | UnionType | IntersectionType;
5411 export interface IterableOrIteratorType extends ObjectType, UnionType {
5422 export interface PromiseOrAwaitableType extends ObjectType, UnionType {
DvisitorPublic.ts517 case SyntaxKind.UnionType:
/third_party/typescript/scripts/
DbuildProtocol.ts108 if (node.kind === ts.SyntaxKind.UnionType) {
/third_party/typescript/src/compiler/factory/
DparenthesizerRules.ts370 case SyntaxKind.UnionType:
DnodeTests.ts193 return node.kind === SyntaxKind.UnionType;
/third_party/typescript/src/linter/
DUtils.ts390 function isNullableUnionType(tsUnionType: UnionType): boolean {
398 function isBooleanUnionType(tsUnionType: UnionType): boolean {
/third_party/typescript/src/services/formatting/
DsmartIndenter.ts643 case SyntaxKind.UnionType:
Drules.ts452 case SyntaxKind.UnionType:
/third_party/python/Misc/NEWS.d/
D3.10.0rc1.rst37 Rename ``types.Union`` to ``types.UnionType``.
/third_party/python/Doc/library/
Dtypes.rst315 .. class:: UnionType
/third_party/typescript/src/compiler/transformers/
Dts.ts395 case SyntaxKind.UnionType:
1570 case SyntaxKind.UnionType:
/third_party/typescript/lib/
Dtypescript.d.ts290 UnionType = 183, enumerator
921 readonly kind: SyntaxKind.UnionType;
2632 export interface UnionType extends UnionOrIntersectionType { interface
2636 export type StructuredType = ObjectType | UnionType | IntersectionType;
5352 isUnion(): this is UnionType; property
DtypescriptServices.d.ts290 UnionType = 183, enumerator
921 readonly kind: SyntaxKind.UnionType;
2632 export interface UnionType extends UnionOrIntersectionType { interface
2636 export type StructuredType = ObjectType | UnionType | IntersectionType;
5352 isUnion(): this is UnionType; property
Dtsserverlibrary.d.ts290 UnionType = 183, enumerator
921 readonly kind: SyntaxKind.UnionType;
2632 export interface UnionType extends UnionOrIntersectionType { interface
2636 export type StructuredType = ObjectType | UnionType | IntersectionType;
5352 isUnion(): this is UnionType; property
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts290 UnionType = 183, enumerator
932 readonly kind: SyntaxKind.UnionType;
2665 export interface UnionType extends UnionOrIntersectionType { interface
2669 export type StructuredType = ObjectType | UnionType | IntersectionType;
5593 isUnion(): this is UnionType; property
Dtsserverlibrary.d.ts290 UnionType = 183, enumerator
932 readonly kind: SyntaxKind.UnionType;
2665 export interface UnionType extends UnionOrIntersectionType { interface
2669 export type StructuredType = ObjectType | UnionType | IntersectionType;
5593 isUnion(): this is UnionType; property

12