Home
last modified time | relevance | path

Searched refs:LiteralType (Results 1 – 25 of 34) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
DdoNotInferUnrelatedTypes.types7 type LiteralType = "foo" | "bar";
8 >LiteralType : LiteralType
10 declare var alt: Array<LiteralType>;
11 >alt : LiteralType[]
13 let foo: LiteralType = dearray(alt);
14 >foo : LiteralType
15 >dearray(alt) : LiteralType
17 >alt : LiteralType[]
DdoNotInferUnrelatedTypes.symbols11 type LiteralType = "foo" | "bar";
12 >LiteralType : Symbol(LiteralType, Decl(doNotInferUnrelatedTypes.ts, 1, 54))
14 declare var alt: Array<LiteralType>;
17 >LiteralType : Symbol(LiteralType, Decl(doNotInferUnrelatedTypes.ts, 1, 54))
19 let foo: LiteralType = dearray(alt);
21 >LiteralType : Symbol(LiteralType, Decl(doNotInferUnrelatedTypes.ts, 1, 54))
DdoNotInferUnrelatedTypes.js4 type LiteralType = "foo" | "bar";
5 declare var alt: Array<LiteralType>;
7 let foo: LiteralType = dearray(alt);
DreverseMappedTypeAssignableToIndex.types11 // Note that in the real code we don't have a direct reference to LiteralType
12 type LiteralType = {
13 >LiteralType : LiteralType
DreverseMappedTypeAssignableToIndex.symbols21 // Note that in the real code we don't have a direct reference to LiteralType
22 type LiteralType = {
23 >LiteralType : Symbol(LiteralType, Decl(reverseMappedTypeAssignableToIndex.ts, 2, 64))
DreverseMappedTypeAssignableToIndex.js8 type LiteralType = {
/third_party/typescript/tests/cases/compiler/
DdoNotInferUnrelatedTypes.ts3 type LiteralType = "foo" | "bar";
4 declare var alt: Array<LiteralType>;
6 let foo: LiteralType = dearray(alt);
DreverseMappedTypeAssignableToIndex.ts7 type LiteralType = { alias
/third_party/jsframework/mock-generate/src/generate/
DgenerateVariableStatementDeclaration.ts30 …} else if (statementEntity.typeKind === SyntaxKind.LiteralType || statementEntity.typeKind === Syn…
DgeneratePropertyDeclaration.ts35 } else if (propertyDeclaration.kind === SyntaxKind.LiteralType) {
/third_party/skia/src/sksl/ir/
DSkSLType.cpp93 class LiteralType : public Type { class
97 LiteralType(const char* name, const Type& scalarType, int8_t priority) in LiteralType() function in SkSL::LiteralType
434 return std::make_unique<LiteralType>(name, scalarType, priority); in MakeLiteralType()
/third_party/boost/libs/outcome/doc/src/content/tutorial/essential/result/
D_index.md26 …d `EC` are [literal types](https://en.cppreference.com/w/cpp/named_req/LiteralType), so will be `r…
/third_party/typescript/src/compiler/
Dtypes.ts233 LiteralType, enumerator
670 | SyntaxKind.LiteralType
1660 readonly kind: SyntaxKind.LiteralType;
5112 export type FreshableType = LiteralType | FreshableIntrinsicType;
5117 export interface LiteralType extends Type {
5119 freshType: LiteralType; // Fresh version of type
5120 regularType: LiteralType; // Regular version of type
5129 export interface StringLiteralType extends LiteralType {
5133 export interface NumberLiteralType extends LiteralType {
5137 export interface BigIntLiteralType extends LiteralType {
Ddebug.ts538 … & TypeFlags.StringOrNumberLiteral ? `LiteralType ${JSON.stringify((this as LiteralType).value)}` :
/third_party/typescript/src/compiler/transformers/
Dts.ts403 case SyntaxKind.LiteralType:
1531 case SyntaxKind.LiteralType:
1622 …if (!strictNullChecks && (typeNode.kind === SyntaxKind.LiteralType && (typeNode as LiteralTypeNode…
/third_party/boost/libs/outcome/doc/src/content/reference/types/basic_result/
D_index.md129 - `LiteralType`, if both `value_type` and `error_type` are literal types.
/third_party/typescript/src/services/
Dtypes.ts69 isLiteral(): this is LiteralType; property
DstringCompletions.ts117 case SyntaxKind.LiteralType: {
/third_party/boost/libs/outcome/doc/src/content/reference/types/basic_outcome/
D_index.md173 - `LiteralType`, if all of `value_type`, `error_type` and `exception_type` are literal types.
/third_party/typescript/lib/
DtypescriptServices.d.ts299 LiteralType = 192, enumerator
962 readonly kind: SyntaxKind.LiteralType;
2530 export interface LiteralType extends Type { interface
2532 freshType: LiteralType;
2533 regularType: LiteralType;
2539 export interface StringLiteralType extends LiteralType {
2542 export interface NumberLiteralType extends LiteralType {
2545 export interface BigIntLiteralType extends LiteralType {
5355 isLiteral(): this is LiteralType; property
Dtypescript.d.ts299 LiteralType = 192, enumerator
962 readonly kind: SyntaxKind.LiteralType;
2530 export interface LiteralType extends Type { interface
2532 freshType: LiteralType;
2533 regularType: LiteralType;
2539 export interface StringLiteralType extends LiteralType {
2542 export interface NumberLiteralType extends LiteralType {
2545 export interface BigIntLiteralType extends LiteralType {
5355 isLiteral(): this is LiteralType; property
Dtsserverlibrary.d.ts299 LiteralType = 192, enumerator
962 readonly kind: SyntaxKind.LiteralType;
2530 export interface LiteralType extends Type { interface
2532 freshType: LiteralType;
2533 regularType: LiteralType;
2539 export interface StringLiteralType extends LiteralType {
2542 export interface NumberLiteralType extends LiteralType {
2545 export interface BigIntLiteralType extends LiteralType {
5355 isLiteral(): this is LiteralType; property
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts299 LiteralType = 192, enumerator
971 readonly kind: SyntaxKind.LiteralType;
2544 export interface LiteralType extends Type { interface
2546 freshType: LiteralType;
2547 regularType: LiteralType;
2553 export interface StringLiteralType extends LiteralType {
2556 export interface NumberLiteralType extends LiteralType {
2559 export interface BigIntLiteralType extends LiteralType {
5438 isLiteral(): this is LiteralType; property
Dtsserverlibrary.d.ts299 LiteralType = 192, enumerator
971 readonly kind: SyntaxKind.LiteralType;
2544 export interface LiteralType extends Type { interface
2546 freshType: LiteralType;
2547 regularType: LiteralType;
2553 export interface StringLiteralType extends LiteralType {
2556 export interface NumberLiteralType extends LiteralType {
2559 export interface BigIntLiteralType extends LiteralType {
5438 isLiteral(): this is LiteralType; property
/third_party/typescript/src/compiler/factory/
DnodeTests.ts229 return node.kind === SyntaxKind.LiteralType;

12