/third_party/python/Lib/ |
D | typing.py | 172 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 …]
|
D | types.py | 301 UnionType = type(int | str) variable
|
/third_party/skia/third_party/externals/dawn/src/dawn_node/tools/src/cmd/idlgen/ |
D | main.go | 128 "IsUnionType": is(ast.UnionType{}), 347 case *ast.UnionType:
|
/third_party/typescript/src/services/ |
D | rename.ts | 20 …(type.flags & TypeFlags.Union) && every((type as UnionType).types, type => !!(type.flags & TypeFla…
|
D | types.ts | 66 isUnion(): this is UnionType; property
|
D | stringCompletions.ts | 142 case SyntaxKind.UnionType: {
|
D | services.ts | 485 isUnion(): this is UnionType {
|
/third_party/typescript/src/compiler/ |
D | checker.ts | 729 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 …]
|
D | tracing.ts | 254 …unionTypes: (type.flags & TypeFlags.Union) ? (type as UnionType).types?.map(t => t.id) : undefined,
|
D | types.ts | 224 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 {
|
D | visitorPublic.ts | 517 case SyntaxKind.UnionType:
|
/third_party/typescript/scripts/ |
D | buildProtocol.ts | 108 if (node.kind === ts.SyntaxKind.UnionType) {
|
/third_party/typescript/src/compiler/factory/ |
D | parenthesizerRules.ts | 370 case SyntaxKind.UnionType:
|
D | nodeTests.ts | 193 return node.kind === SyntaxKind.UnionType;
|
/third_party/typescript/src/linter/ |
D | Utils.ts | 390 function isNullableUnionType(tsUnionType: UnionType): boolean { 398 function isBooleanUnionType(tsUnionType: UnionType): boolean {
|
/third_party/typescript/src/services/formatting/ |
D | smartIndenter.ts | 643 case SyntaxKind.UnionType:
|
D | rules.ts | 452 case SyntaxKind.UnionType:
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0rc1.rst | 37 Rename ``types.Union`` to ``types.UnionType``.
|
/third_party/python/Doc/library/ |
D | types.rst | 315 .. class:: UnionType
|
/third_party/typescript/src/compiler/transformers/ |
D | ts.ts | 395 case SyntaxKind.UnionType: 1570 case SyntaxKind.UnionType:
|
/third_party/typescript/lib/ |
D | typescript.d.ts | 290 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
|
D | typescriptServices.d.ts | 290 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
|
D | tsserverlibrary.d.ts | 290 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/ |
D | typescript.d.ts | 290 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
|
D | tsserverlibrary.d.ts | 290 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
|