/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | conditionalTypeDiscriminatingLargeUnionRegularTypeFetchingSpeedReasonable.ts | 24 name: '0'; 28 name: '1'; 32 name: '2'; 36 name: '3'; 40 name: '4'; 44 name: '5'; 48 name: '6'; 52 name: '7'; 56 name: '8'; 60 name: '9'; [all …]
|
D | arrowFunctionWithObjectLiteralBody5.ts | 21 let a = () => <Error>{ name: "foo", message: "bar" }; 23 AssertType(() => <Error>{ name: "foo", message: "bar" }, "() => Error"); 24 AssertType(<Error>{ name: "foo", message: "bar" }, "Error"); 25 AssertType({ name: "foo", message: "bar" }, "{ name: string; message: string; }"); 26 AssertType(name, "string"); 31 let b = () => (<Error>{ name: "foo", message: "bar" }); 33 AssertType(() => (<Error>{ name: "foo", message: "bar" }), "() => Error"); 34 AssertType((<Error>{ name: "foo", message: "bar" }), "Error"); 35 AssertType(<Error>{ name: "foo", message: "bar" }, "Error"); 36 AssertType({ name: "foo", message: "bar" }, "{ name: string; message: string; }"); [all …]
|
D | arrowFunctionWithObjectLiteralBody6.ts | 21 let a = () => <Error>{ name: "foo", message: "bar" }; 23 AssertType(() => <Error>{ name: "foo", message: "bar" }, "() => Error"); 24 AssertType(<Error>{ name: "foo", message: "bar" }, "Error"); 25 AssertType({ name: "foo", message: "bar" }, "{ name: string; message: string; }"); 26 AssertType(name, "string"); 31 let b = () => (<Error>{ name: "foo", message: "bar" }); 33 AssertType(() => (<Error>{ name: "foo", message: "bar" }), "() => Error"); 34 AssertType((<Error>{ name: "foo", message: "bar" }), "Error"); 35 AssertType(<Error>{ name: "foo", message: "bar" }, "Error"); 36 AssertType({ name: "foo", message: "bar" }, "{ name: string; message: string; }"); [all …]
|
D | callSignatureFunctionOverload.ts | 24 (name: string): string; 25 AssertType(name, "string"); 27 (name: 'order'): string; 28 AssertType(name, "string"); 30 (name: 'content'): string; 31 AssertType(name, "string"); 33 (name: 'done'): string; 34 AssertType(name, "string"); 40 (name: string): string; 41 AssertType(name, "string"); [all …]
|
D | arrayFilter.ts | 23 AssertType([ { name: 'bar' }, { name: null }, { name: 'baz' }], "{ name: string; }[]"); 25 { name: 'bar' }, 26 AssertType({ name: 'bar' }, "{ name: string; }"); 27 AssertType(name, "string"); 30 { name: null }, 31 AssertType({ name: null }, "{ name: null; }"); 32 AssertType(name, "null"); 35 { name: 'baz' 36 AssertType({ name: 'baz' }, "{ name: string; }"); 38 AssertType(name, "string"); [all …]
|
D | typeArgInference2.ts | 22 name: string; 38 let z3 = foo({ name: null }); // { name: any 41 AssertType(foo({ name: null }), "{ name: any; }"); 45 AssertType({ name: null }, "{ name: null; }"); 47 AssertType(name, "null"); 52 let z4 = foo({ name: "abc" }); // { name: string 55 AssertType(foo({ name: "abc" }), "{ name: string; }"); 59 AssertType({ name: "abc" }, "{ name: string; }"); 61 AssertType(name, "string"); 66 let z5 = foo({ name: "abc", a: 5 }); // { name: string; a: number [all …]
|
D | forOfTransformsExpression.ts | 22 let items = [{ name: "A" }, { name: "C" }, { name: "B" }]; 24 AssertType([{ name: "A" }, { name: "C" }, { name: "B" }], "{ name: string; }[]"); 25 AssertType({ name: "A" }, "{ name: string; }"); 26 AssertType(name, "string"); 28 AssertType({ name: "C" }, "{ name: string; }"); 29 AssertType(name, "string"); 31 AssertType({ name: "B" }, "{ name: string; }"); 32 AssertType(name, "string"); 35 for (let item of items.sort((a, b) => a.name.localeCompare(b.name))) {
|
D | typeInferenceWithExcessProperties.ts | 24 name: string; 34 AssertType(parrot({ name: "TypeScript",}), "{ name: string; }"); 36 AssertType({ name: "TypeScript",}, "{ name: string; }"); 38 name: "TypeScript", 39 AssertType(name, "string"); 45 AssertType(parrot({ name: "TypeScript", age: 5,}), "{ name: string; age: number; }"); 47 AssertType({ name: "TypeScript", age: 5,}, "{ name: string; age: number; }"); 49 name: "TypeScript", 50 AssertType(name, "string"); 60 AssertType(parrot({ name: "TypeScript", age: function () { },}), "{ name: string; age: () => … [all …]
|
D | capturedLetConstInLoop13.ts | 34 for (let name of names) { 35 AssertType(name, "string"); 39 AssertType(this.bar({ [name + ".a"]: () => { this.foo(name); }, }), "void… 42 AssertType({ [name + ".a"]: () => { this.foo(name); }, }, "{ [string]: ()… 44 [name + ".a"]: () => { this.foo(name); }, 45 AssertType([name + ".a"], "() => void"); 46 AssertType(name + ".a", "string"); 47 AssertType(name, "string"); 49 AssertType(() => { this.foo(name); }, "() => void"); 50 AssertType(this.foo(name), "void"); [all …]
|
D | objectLiteralArraySpecialization.ts | 26 let thing = create([ { name: "bob", id: 24 }, { name: "doug", id: 32 } ]); // should not error 28 AssertType(create([ { name: "bob", id: 24 }, { name: "doug", id: 32 } ]), "MyArrayWrapper<{ name: s… 30 AssertType([ { name: "bob", id: 24 }, { name: "doug", id: 32 } ], "{ name: string; id: number; }[]"… 31 AssertType({ name: "bob", id: 24 }, "{ name: string; id: number; }"); 32 AssertType(name, "string"); 36 AssertType({ name: "doug", id: 32 }, "{ name: string; id: number; }"); 37 AssertType(name, "string"); 42 thing.doSomething((x, y) => x.name === "bob"); // should not error 43 AssertType(thing.doSomething((x, y) => x.name === "bob"), "void"); 45 AssertType((x, y) => x.name === "bob", "({ name: string; id: number; }, { name: string; id: number;… [all …]
|
D | destructuringInitializerContextualTypeFromContext.ts | 26 name: "Apollo" | "Artemis" | "Dionysus" | "Persephone"; property 31 AssertType(({ children, name = "Artemis", ...props}) => Child({name, ...props}), "(Props &… 36 name = "Artemis", 37 AssertType(name, "union"); 43 }) => Child({name, ...props}); 44 AssertType(Child({name, ...props}), "any"); 46 AssertType({name, ...props}, "{ name: union; }"); 47 AssertType(name, "union"); 52 AssertType(({ children, name = "Artemis", ...props}) => `name: ${name} props: ${JSON.strin… 57 name = "Artemis", [all …]
|
D | circularContextualMappedType.ts | 30 AssertType({ name: () => { return 123 }}, "{ name: () => number; }"); 31 AssertType(reproduce({ name: () => { return 123 }}), "{ name: number; }"); 33 name: () => { 34 AssertType(name, "() => number"); 46 AssertType({ name() { return 123 }}, "{ name(): number; }"); 47 AssertType(reproduce({ name() { return 123 }}), "{ name: number; }"); 49 name() { 50 AssertType(name, "() => number"); 60 AssertType({ name: function () { return 123 }}, "{ name: () => number; }"); 61 AssertType(reproduce({ name: function () { return 123 }}), "{ name: number; }"); [all …]
|
D | privateNameComputedPropertyName3targetes2015.ts | 22 #name; 24 constructor(name) { 25 this.#name = name; 26 AssertType(this.#name = name, "any"); 27 AssertType(this.#name, "any"); 29 AssertType(name, "any"); 40 [obj.#name]() { 49 AssertType(new Bar()[obj.#name](), "error"); 50 AssertType(new Bar()[obj.#name], "error"); 53 AssertType(obj.#name, "any"); [all …]
|
D | privateNameComputedPropertyName3targetesnext.ts | 22 #name; 24 constructor(name) { 25 this.#name = name; 26 AssertType(this.#name = name, "any"); 27 AssertType(this.#name, "any"); 29 AssertType(name, "any"); 40 [obj.#name]() { 49 AssertType(new Bar()[obj.#name](), "error"); 50 AssertType(new Bar()[obj.#name], "error"); 53 AssertType(obj.#name, "any"); [all …]
|
D | privateNameComputedPropertyName3targetes2022.ts | 22 #name; 24 constructor(name) { 25 this.#name = name; 26 AssertType(this.#name = name, "any"); 27 AssertType(this.#name, "any"); 29 AssertType(name, "any"); 40 [obj.#name]() { 49 AssertType(new Bar()[obj.#name](), "error"); 50 AssertType(new Bar()[obj.#name], "error"); 53 AssertType(obj.#name, "any"); [all …]
|
D | thisInPropertyBoundDeclarations.ts | 22 private name: string; 25 (that: Bug, name: string) => { 26 that.foo(name); 27 AssertType(that.foo(name), "void"); 29 AssertType(name, "string"); 33 private foo(name: string) { 34 this.name = name; 35 AssertType(this.name = name, "string"); 36 AssertType(this.name, "string"); 38 AssertType(name, "string");
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | bc_call_signature.cpp | 29 #define INIT_SIGNATURES(name) \ in Initialize() argument 30 BytecodeHandlerCallSignature::Initialize(&callSigns_[name]); \ in Initialize() 31 callSigns_[name].SetID(ID_##name); \ in Initialize() 32 callSigns_[name].SetName(std::string("BCStub_") + #name); \ in Initialize() 33 callSigns_[name].SetConstructor( \ in Initialize() 36 new name##StubBuilder(&callSigns_[name], \ in Initialize() 41 #define INIT_SIGNATURES_DYN(name, ...) \ in Initialize() argument 42 INIT_SIGNATURES(name) \ in Initialize() 43 callSigns_[name].SetTargetKind(CallSignature::TargetKind::BYTECODE_PROFILE_HANDLER); in Initialize() 48 #define INIT_HELPER_SIGNATURES(name) \ in Initialize() argument [all …]
|
D | rt_call_signature.cpp | 29 #define INIT_SIGNATURES(name) \ in Initialize() argument 30 name##CallSignature::Initialize(&callSigns_[ID_##name]); \ in Initialize() 31 callSigns_[ID_##name].SetName(std::string("RTStub_") + #name); \ in Initialize() 32 callSigns_[ID_##name].SetID(ID_##name); \ in Initialize() 33 assert(callSigns_[ID_##name].IsRuntimeNGCStub() || \ in Initialize() 34 callSigns_[ID_##name].IsRuntimeStub() || \ in Initialize() 35 callSigns_[ID_##name].IsDeoptStub() || \ in Initialize() 36 callSigns_[ID_##name].IsRuntimeVAStub()); in Initialize() 42 #define INIT_ASM_SIGNATURES(name) \ in Initialize() argument 43 callSigns_[RuntimeStubCSigns::ID_##name].SetName(std::string("RTStub_") + #name); \ in Initialize() [all …]
|
/arkcompiler/ets_frontend/ |
D | README_zh.md | 1 # ets_frontend组件<a name="ZH-CN_TOPIC_0000001137330686"></a> 3 - [ets_frontend组件<a name="ZH-CN_TOPIC_0000001137330686"></a>](#ets_frontend组件) 4 - [简介<a name="section11660541593"></a>](#简介) 5 - [目录<a name="section161941989596"></a>](#目录) 6 - [编译构建<a name="section0446154755015"></a>](#编译构建) 7 - [使用说明<a name="section33105542504"></a>](#使用说明) 8 - [相关仓<a name="section1371113476307"></a>](#相关仓) 10 ## 简介<a name="section11660541593"></a> 20 ## 目录<a name="section161941989596"></a> 47 ## 编译构建<a name="section0446154755015"></a> [all …]
|
D | README.md | 1 # ets_frontend <a name="EN-US_TOPIC_0000001137330686"></a> 3 - [ets_frontend <a name="EN-US_TOPIC_0000001137330686"></a>](#ets_frontend-) 4 - [Introduction<a name="section11660541593"></a>](#introduction) 5 - [Directory Structure<a name="section161941989596"></a>](#directory-structure) 6 - [Build<a name="section0446154755015"></a>](#Build) 7 - [Usage Guidelines<a name="section33105542504"></a>](#usage-guidelines) 8 - [Repositories Involved<a name="section1371113476307"></a>](#repositories-involved) 10 ## Introduction<a name="section11660541593"></a> 20 ## Directory Structure<a name="section161941989596"></a> 47 ## Build<a name="section0446154755015"></a> [all …]
|
/arkcompiler/ets_runtime/docs/ |
D | using-the-toolchain.md | 1 # Using the Toolchain<a name="EN-US_TOPIC_0000001128256014"></a> 12 $ $ ./build.sh --product-name rk3568 --build-target ark_ts2abc_build 23 <a name="table18706114344420"></a> 24 …152915291529%" id="mcps1.1.6.1.1"><p id="p1970694310447"><a name="p1970694310447"></a><a name="p19… 26 …683068306829%" id="mcps1.1.6.1.2"><p id="p9548142314456"><a name="p9548142314456"></a><a name="p95… 28 …4443444344434%" id="mcps1.1.6.1.3"><p id="p170614318449"><a name="p170614318449"></a><a name="p170… 30 …260126012601%" id="mcps1.1.6.1.4"><p id="p1841257144811"><a name="p1841257144811"></a><a name="p18… 32 …2075207521%" id="mcps1.1.6.1.5"><p id="p15894191313495"><a name="p15894191313495"></a><a name="p15… 36 …291529%" headers="mcps1.1.6.1.1 "><p id="p0706154312447"><a name="p0706154312447"></a><a name="p07… 38 …306829%" headers="mcps1.1.6.1.2 "><p id="p1654810236457"><a name="p1654810236457"></a><a name="p16… [all …]
|
D | README_zh.md | 40 ./build.sh --product-name rk3568 47 ./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages 53 …./build.sh --product-name rk3568 --gn-args use_musl=true --target-cpu arm64 --build-target ark_js_… 59 ./build.sh --product-name rk3568 --build-target ark_js_packages 64 ./build.sh --product-name rk3568 --build-target ets_frontend_build 93 …./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages --build-target et… 146 ./build.sh --product-name rk3568 --build-target ark_host_linux_tools_packages 199 ./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages 205 ./build.sh --product-name rk3568 --build-target ets_frontend_build 222 …"top" width="50%" id="mcps1.1.3.1.1"><p id="p51552743010"><a name="p51552743010"></a><a name="p515… [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | cmdOptions.ts | 25 …{ name: 'commonjs', alias: 'c', type: Boolean, defaultValue: false, description: "compile as commo… 26 …{ name: 'modules', alias: 'm', type: Boolean, defaultValue: false, description: "compile as module… 27 …{ name: 'debug-log', alias: 'l', type: Boolean, defaultValue: false, description: "show info debug… 28 …{ name: 'dump-assembly', alias: 'a', type: Boolean, defaultValue: false, description: "dump assemb… 29 …{ name: 'debug', alias: 'd', type: Boolean, defaultValue: false, description: "compile with debug … 30 …{ name: 'debug-add-watch', alias: 'w', type: String, lazyMultiple: true, defaultValue: [], descrip… 31 …{ name: 'keep-persistent-watch', alias: 'k', type: String, lazyMultiple: true, defaultValue: [], d… 32 …{ name: 'show-statistics', alias: 's', type: String, lazyMultiple: true, defaultValue: "", descrip… 33 { name: 'output', alias: 'o', type: String, defaultValue: "", description: "set output file." }, 34 …{ name: 'timeout', alias: 't', type: Number, defaultValue: 0, description: "js to abc timeout thre… [all …]
|
D | scope.ts | 38 name: string; property in Decl 42 constructor(name: string, node: ts.Node, isModule: ModuleVarKind) { 43 this.name = name; 188 findLocal(name: string): Variable | undefined { 189 return this.name2variable.get(name); 192 find(name: string): { scope: Scope | undefined, level: number, v: Variable | undefined } { 202 resolve = curScope.findLocal(name); 204 LOGD(this.debugTag, "scope.find (" + name + ") :"); 212 LOGD(this.debugTag, "scope.find (" + name + ") : undefined"); 216 findDeclPos(name: string): Scope | undefined { [all …]
|
/arkcompiler/ets_runtime/test/aottest/ts_multi_inline_max_call/ |
D | expect_output.txt | 14 [trace] aot inline function name: foo@ts_multi_inline_max_call caller function name: func_main_0@ts… 15 [trace] aot inline function name: foo1@ts_multi_inline_max_call caller function name: foo@ts_multi_… 16 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo1@ts_multi_… 18 [trace] aot inline function name: foo2@ts_multi_inline_max_call caller function name: foo@ts_multi_… 19 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo2@ts_multi_… 21 [trace] aot inline function name: foo3@ts_multi_inline_max_call caller function name: foo@ts_multi_… 22 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo3@ts_multi_… 24 [trace] aot inline function name: foo4@ts_multi_inline_max_call caller function name: foo@ts_multi_… 25 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo4@ts_multi_… 27 [trace] aot inline function name: foo5@ts_multi_inline_max_call caller function name: foo@ts_multi_… [all …]
|