Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 47) sorted by relevance

12

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DparserArrowFunctionExpression6.ts21 function foo(q: string, b: number) {
22 AssertType(true ? (q ? true : false) : (b = q.length, function() { }), "union");
24 AssertType((q ? true : false), "boolean");
25 AssertType(q ? true : false, "boolean");
26 AssertType(q, "string");
29 AssertType((b = q.length, function() { }), "() => void");
30 AssertType(b = q.length, function() { }, "() => void");
31 AssertType(b = q.length, "number");
33 AssertType(q.length, "number");
35 return true ? (q ? true : false) : (b = q.length, function() { });
DintersectionOfUnionNarrowing.ts27 declare const q: X & AorB; constant
28 AssertType(q, "X & AorB");
30 if (q.a !== undefined) {
31 q.a.aProp;
32 AssertType(q.a.aProp, "string");
33 AssertType(q.a, "{ aProp: string; } & object");
37 q.b.bProp;
38 AssertType(q.b.bProp, "string");
39 AssertType(q.b, "{ bProp: string; } & object");
DtypeOfThisInFunctionExpression.ts59 let q: any;
60 AssertType(q, "any");
62 let q = this;
63 AssertType(q, "any");
67 let q: any;
68 AssertType(q, "any");
70 let q = this;
71 AssertType(q, "any");
DambientDeclarations.ts44 declare function fn9(...q: {}[]);
45 declare function fn10<T>(...q: T[]);
52 static q;
66 q, enumerator
95 let q = M1.fn();
96 AssertType(q, "number");
103 let q;
DfreshLiteralTypesInIntersections.ts24 const q = func("x" as "x" | "y", ["x"]);
25 AssertType(q, "("x") => void");
33 q("x");
34 AssertType(q("x"), "void");
35 AssertType(q, "("x") => void");
DinferringAnyFunctionType5.ts21 function f<T extends { q: (p1: number) => number }>(p: T): T {
26 let v = f({ q: x => x });
28 AssertType(f({ q: x => x }), "{ q: (number) => number; }");
30 AssertType({ q: x => x }, "{ q: (number) => number; }");
31 AssertType(q, "(number) => number");
DdeclarationEmitExpressionInExtends.ts35 let q: B; variable
36 AssertType(q, "B");
38 q.s;
39 AssertType(q.s, "string");
DcontextuallyTypedIife.ts187 (({ q }) => q)({ q : 13 });
188 AssertType((({ q }) => q)({ q : 13 }), "number");
189 AssertType((({ q }) => q), "({ q: number; }) => number");
190 AssertType(({ q }) => q, "({ q: number; }) => number");
191 AssertType(q, "number");
192 AssertType(q, "number");
193 AssertType({ q : 13 }, "{ q: number; }");
194 AssertType(q, "number");
DnamedTupleMembers.ts139 declare let q: RecursiveTupleA; variable
140 AssertType(q, "RecursiveTupleA");
145 q = r;
146 AssertType(q = r, "RecursiveTupleB");
147 AssertType(q, "RecursiveTupleA");
150 r = q;
151 AssertType(r = q, "RecursiveTupleA");
153 AssertType(q, "RecursiveTupleA");
DtsNoCheckForTypescript.ts30 q: number; property
34 q: string = "lol" // And so will this implements error property in Bet
DprivateVisibles.ts30 public meth() { let q = this.plet;
31 AssertType(q, "number");
DobjectSpreadRepeatedNullCheckPerf.ts38 readonly q?: string
51 …= undefined && { p: config.p.toString() }, ...config.q !== undefined && { q: config.q.toStr…
230 ...config.q !== undefined && { q: config.q.toString() },
231 AssertType(config.q !== undefined && { q: config.q.toString() }, "union");
232 AssertType(config.q !== undefined, "boolean");
233 AssertType(config.q, "number");
235 AssertType({ q: config.q.toString() }, "{ q: string; }");
236 AssertType(q, "string");
237 AssertType(config.q.toString(), "string");
238 AssertType(config.q.toString, "(?union) => string");
[all …]
DforLoopEndingMultilineComments.ts30 for (const q of a) { constant
31 AssertType(q, "any");
DdefaultIndexProps2.ts41 let q = "s"[0]; variable
42 AssertType(q, "string");
DkeywordField.ts44 let q = a["if"]; variable
45 AssertType(q, "string");
DambiguousOverloadResolution.ts24 declare function f(p: A, q: B): number;
25 declare function f(p: B, q: A): string;
DdefaultIndexProps1.ts30 let q = f["v"]; variable
31 AssertType(q, "string");
DeveryTypeAssignableToAny.ts88 let q: String; variable
89 AssertType(q, "String");
161 a = q;
162 AssertType(a = q, "String");
164 AssertType(q, "String");
DdiscriminateObjectTypesOnly.ts29 const q: Thing2 = { toFixed: null }; constant
30 AssertType(q, "Thing2");
DjsDeclarationsJSDocRedirectedLookups.ts103 /** @type {event} */const q = undefined; constant
104 AssertType(q, "union");
DundefinedAssignableToEveryType.ts115 let q: String = undefined; variable
116 AssertType(q, "String");
DnullAssignableToEveryType.ts115 let q: String = null; variable
116 AssertType(q, "String");
DanyAssignableToEveryType.ts118 let q: String = a; variable
119 AssertType(q, "String");
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/
Drun.bat27 del /q .\RKDevTool.zip
34 rd /s /q %var%\dayu200_xts
36 del /q %var%\dayu200_xts.tar.gz
59 if exist result (rd /s /q result)
/arkcompiler/toolchain/tooling/test/testcases/js/
Dlocal_variable_scope.js44 let q = 19;

12