/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | controlFlowAliasingCatchVariablesuseunknownincatchvariablesfalse.ts | 22 catch (e) { 23 const isString = typeof e === 'string'; 25 AssertType(typeof e === 'string', "boolean"); 26 AssertType(typeof e, "union"); 27 AssertType(e, "any"); 33 e.toUpperCase(); // e string 34 AssertType(e.toUpperCase(), "string"); 35 AssertType(e.toUpperCase, "() => string"); 38 if (typeof e === 'string') { 39 AssertType(typeof e === 'string', "boolean"); [all …]
|
D | bestCommonTypeWithContextualTyping.ts | 31 let e: Ellement; variable 32 AssertType(e, "Ellement"); 37 let arr: Contextual[] = [e]; // Ellement[] 39 AssertType([e], "Ellement[]"); 40 AssertType(e, "Ellement"); 42 let obj: { [s: string]: Contextual } = { s: e }; // { s: Ellement; [s: string]: Ellement 47 AssertType({ s: e }, "{ s: Ellement; }"); 51 AssertType(e, "Ellement"); 54 let conditional: Contextual = null ? e : e; // Ellement variable 56 AssertType(null ? e : e, "Ellement"); [all …]
|
D | genericMethodOverspecialization.ts | 57 let xxx = elements.filter(function (e) { 60 AssertType(function (e) { return !e.isDisabled;}, "(HTMLElement) => boolean"); 61 AssertType(e, "HTMLElement"); 62 AssertType(elements.filter(function (e) { return !e.isDisabled;}), "HTMLElement[]"); 64 AssertType(!e.isDisabled, "boolean"); 65 AssertType(e.isDisabled, "boolean"); 66 return !e.isDisabled; 70 let widths:number[] = elements.map(function (e) { // should not error 73 AssertType(function (e) { // should not error return e.clientWidth;}, "(HTMLElement) => number"); 74 AssertType(e, "HTMLElement"); [all …]
|
D | es5-asyncFunctionTryStatements.ts | 38 catch (e) { 39 AssertType(e, "any"); 56 catch (e) { 57 AssertType(e, "any"); 73 catch (e) { 74 AssertType(e, "any"); 92 catch (e) { 93 AssertType(e, "any"); 95 AssertType(() => e, "() => any"); 96 AssertType(e, "any"); [all …]
|
D | numberAssignableToEnum.ts | 25 let e: E; variable 26 AssertType(e, "E"); 28 e = n; 29 AssertType(e = n, "number"); 30 AssertType(e, "E"); 33 n = e; 34 AssertType(n = e, "E"); 36 AssertType(e, "E");
|
D | genericFunctionInference2.ts | 70 …ype(withH((props: Props) => ({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e:… 72 AssertType((props: Props) => ({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e:… 74 AssertType(({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e: any) => {},}), "{… 75 AssertType({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e: any) => {},}, "{ o… 77 onChange: (props) => (e: any) => {}, 79 AssertType((props) => (e: any) => {}, "(Props) => (any) => void"); 81 AssertType((e: any) => {}, "(any) => void"); 82 AssertType(e, "any"); 84 onSubmit: (props) => (e: any) => {}, 86 AssertType((props) => (e: any) => {}, "(Props) => (any) => void"); [all …]
|
D | chainedAssignment2.ts | 33 let e: RegExp; 34 AssertType(e, "RegExp"); 36 a = b = c = d = e = null; 37 AssertType(a = b = c = d = e = null, "null"); 39 AssertType(b = c = d = e = null, "null"); 41 AssertType(c = d = e = null, "null"); 43 AssertType(d = e = null, "null"); 45 AssertType(e = null, "null"); 46 AssertType(e, "RegExp");
|
D | declarationEmitPromise.ts | 26 a: bluebird<A>, b?: bluebird<B>, c?: bluebird<C>, d?: bluebird<D>, e?: bluebird<E>) { 27 let result = await (bluebird.all as any)([a, b, c, d, e].filter(el => !!el)); 29 AssertType(await (bluebird.all as any)([a, b, c, d, e].filter(el => !!el)), "any"); 30 AssertType((bluebird.all as any)([a, b, c, d, e].filter(el => !!el)), "any"); 34 AssertType([a, b, c, d, e].filter(el => !!el), "bluebird<A>[]"); 35 AssertType([a, b, c, d, e].filter, "{ <S extends bluebird<A>>((bluebird<A>, number, bluebird<A>[]) … 36 AssertType([a, b, c, d, e], "bluebird<A>[]"); 41 AssertType(e, "bluebird<E>"); 48 let func = <T>(f: (a: A, b?: B, c?: C, d?: D, e?: E) => T): T => 50 AssertType(<T>(f: (a: A, b?: B, c?: C, d?: D, e?: E) => T): T => f.apply(this, result), "<T>… [all …]
|
D | emitOneLineVariableDeclarationRemoveCommentsFalse.ts | 40 let e/*[[${something}]]*/: any = {}; variable 41 AssertType(e, "any"); 44 let f = /* comment1 */ d(e); 46 AssertType(d(e), "any"); 48 AssertType(e, "any"); 50 let g: any = /* comment2 */ d(e); 52 AssertType(d(e), "any"); 54 AssertType(e, "any");
|
D | privateNameComputedPropertyName1targetes2022.ts | 28 #e = ''; 45 const data: Record<string, string> = { a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' }; 47 AssertType({ a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' }, "{ a: string; b: string; c: string; d: strin… 56 AssertType(e, "string"); 80 [this.#e = 'e']: e, 81 AssertType(this.#e = 'e', "string"); 82 AssertType(this.#e, "string"); 85 AssertType(e, "string"); 90 console.log(a, b, c, d, e); 91 AssertType(console.log(a, b, c, d, e), "void"); [all …]
|
D | privateNameComputedPropertyName1targetes2015.ts | 28 #e = ''; 45 const data: Record<string, string> = { a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' }; 47 AssertType({ a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' }, "{ a: string; b: string; c: string; d: strin… 56 AssertType(e, "string"); 80 [this.#e = 'e']: e, 81 AssertType(this.#e = 'e', "string"); 82 AssertType(this.#e, "string"); 85 AssertType(e, "string"); 90 console.log(a, b, c, d, e); 91 AssertType(console.log(a, b, c, d, e), "void"); [all …]
|
D | privateNameComputedPropertyName1targetesnext.ts | 28 #e = ''; 45 const data: Record<string, string> = { a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' }; 47 AssertType({ a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' }, "{ a: string; b: string; c: string; d: strin… 56 AssertType(e, "string"); 80 [this.#e = 'e']: e, 81 AssertType(this.#e = 'e', "string"); 82 AssertType(this.#e, "string"); 85 AssertType(e, "string"); 90 console.log(a, b, c, d, e); 91 AssertType(console.log(a, b, c, d, e), "void"); [all …]
|
D | returnTypeParameterWithModules.ts | 22 export function reduce<A>(ar, f, e?): Array<A> { 23 AssertType(Array.prototype.reduce.apply(ar, e ? [f, e] : [f]), "any"); 28 AssertType(e ? [f, e] : [f], "any[]"); 29 AssertType(e, "any"); 30 AssertType([f, e], "any[]"); 32 AssertType(e, "any"); 35 return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]);
|
D | logicalAssignment11targetesnext.ts | 40 let e: string | undefined; 41 AssertType(e, "union"); 43 e ??= x ?? "x" 44 AssertType(e ??= x ?? "x", "string"); 45 AssertType(e, "union"); 50 e.length 51 AssertType(e.length, "number");
|
D | logicalAssignment11targetes2015.ts | 40 let e: string | undefined; 41 AssertType(e, "union"); 43 e ??= x ?? "x" 44 AssertType(e ??= x ?? "x", "string"); 45 AssertType(e, "union"); 50 e.length 51 AssertType(e.length, "number");
|
D | logicalAssignment11targetes2020.ts | 40 let e: string | undefined; 41 AssertType(e, "union"); 43 e ??= x ?? "x" 44 AssertType(e ??= x ?? "x", "string"); 45 AssertType(e, "union"); 50 e.length 51 AssertType(e.length, "number");
|
D | constEnums.ts | 122 function foo0(e: I): void { 123 if (e === I.V1) { 124 AssertType(e === I.V1, "boolean"); 125 AssertType(e, "I"); 128 else if (e === I.V2) { 129 AssertType(e === I.V2, "boolean"); 130 AssertType(e, "union"); 135 function foo1(e: I1.C.E): void { 136 if (e === I1.C.E.V1) { 137 AssertType(e === I1.C.E.V1, "boolean"); [all …]
|
/arkcompiler/ets_frontend/legacy_bin/api8/src/ |
D | index.js | 2 …e=>{var t=Object.prototype.toString,r="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&… argument
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/ |
D | GLFrame.js | 37 function touchStart(e) { argument 38 document.addEventListener('contextmenu', function (e) { argument 39 e.preventDefault(); 41 e.preventDefault(); 44 e.touches[0].clientX, 45 e.touches[0].clientY 48 function touchMove(e) { argument 49 e.preventDefault(); 52 e.touches[0].clientX, 53 e.touches[0].clientY [all …]
|
D | RightMenu.js | 91 for (let e of grp) { 92 if (e.type != 2) { 103 for (let e of grp) { 104 e.rect = [x, y, w, 32]; 105 if (e.on) { 112 if (e.type == 2) { 113 e.rect = [x, y, w, 0]; 120 e.name, 131 if (e.type == 0) { 132 if (e.hk) { [all …]
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 6 991: function(t, e, i) { argument 13 Object.defineProperty(e, "__esModule", { 16 e.launchEngine = e.loadModule = void 0; 36 const e = r[t]; 37 null == e || e(); 39 e.loadModule = o; 48 e.launchEngine = function() { 49 return new Promise(((t, e) => { 68 System.import("cc").then((e => { 70 e.macro.CLEANUP_IMAGE_CACHE = !1; [all …]
|
/arkcompiler/ets_runtime/test/moduletest/trycatch/ |
D | trycatch.js | 36 } catch(e) { 37 print(e.name); 43 } catch(e) { 44 print(e.name); 48 print(e.name); 49 } catch(e) { 50 print(e.name);
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/language/arguments-object/ |
D | test-key-named-bound-value-expected.txt | 10 1e-7 11 1e-7 12 2e-7 18 1e+21 19 1e+21 20 2e+21
|
/arkcompiler/ets_runtime/test/moduletest/errorcause/ |
D | errorcause.js | 42 } catch (e) { 43 if (e.cause == "error cause") { 54 } catch (e) { 55 if (e.cause == "error cause") { 56 print(e.name + " test success !!!") 58 print(e.name + " test fail !!!")
|
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/expressions/ |
D | ts-test-expression-1.ts | 37 var e = 1 | 2; variable 38 e = e & 3; 39 d = e == 3; 41 print(e) 48 e: { a: 1 }, 57 print(f.e.a)
|