Home
last modified time | relevance | path

Searched full:a (Results 1 – 25 of 10703) sorted by relevance

12345678910>>...429

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dtoo_many_call_expr.ets5 * You may obtain a copy of the License at
21 // Failed with maximum recursion depth exceeded while decoding a JSON object from a unicode string
23 a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a
/arkcompiler/runtime_core/bytecode_optimizer/tests/js/
DconstantProgagation.js5 You may obtain a copy of the License at
18 You may obtain a copy of the License at
31 let a = 2;
34 print(a > b);
35 a = intMaxVal;
36 print(a > b);
38 a = true;
40 print(a > b);
42 a = 2.1;
44 print(a > b);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/12.adding_functionality_to_existing_types/01.functions_with_receiver/
Dfunctions_with_receiver.params.yaml4 # You may obtain a copy of the License at
17 class A {}
18 function f(this: A) {}
20 f(new A())
22 class A {}
23 function f(this: A) {}
25 let a: A = new A()
26 f(a)
28 class A {}
29 function f(this: A) {}
[all …]
/arkcompiler/ets_frontend/es2panda/test/optimizer/js/opt-try-catch-func/
Dtest-raw-try-catch.js5 * You may obtain a copy of the License at
17 let a = 1;
19 a = 2;
22 print(a);
23 a = 3;
25 print(a);
27 a = 4;
29 print(a);
30 a = 5;
32 print(a);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/08.function_method_and_constructor_overloading/03.constructor_overloading/
Dco3_over.params.yaml4 # You may obtain a copy of the License at
18 class A {
32 let a: A = new A()
33 assertEQ(a.i, 0)
34 assertEQ(a.d, 0.0)
35 assertEQ(a.s, "")
36 a = new A(12345)
37 assertEQ(a.i, 12345)
38 assertEQ(a.d, 0.0)
39 assertEQ(a.s, "")
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/12.adding_functionality_to_existing_types/03.accessors_with_receiver/
Daccessors_with_receiver_negative.params.yaml4 # You may obtain a copy of the License at
17 class A {
20 set m(this: A, param: int) {
24 let a = new A()
25 m(a, 1)
27 class A {
30 get m(this: A): int {
34 let a = new A()
35 a.m()
37 class A {
[all …]
Daccessors_with_receiver.params.yaml4 # You may obtain a copy of the License at
17 class A {
20 get m(this: A): int {
24 let a = new A()
25 a.m
27 class A {
30 set m(this: A, param: int) {
34 let a = new A()
35 a.m = 1
37 class A {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/05.accessible/
Dtype_name_class_field.params.yaml4 # You may obtain a copy of the License at
24 assertEQ(A.sfoo, 0x79 as byte);
25 let a: A = new A();
26 assertEQ(a.foo, 0x80 as byte);
27 assertEQ(a.bar(A.sfoo), 0x79 as byte);
28 assertEQ(A.sbar(a.foo), 0x80 as byte);
38 assertEQ(A.sfoo, 0x7FFF as short);
39 let a: A = new A();
40 assertEQ(a.foo, 0x7FFF as short);
41 assertEQ(a.bar(a.foo), 0x7FFF as short);
[all …]
Dtype_name_interface_prop.params.yaml4 # You may obtain a copy of the License at
23 let a: A = new A();
24 assertEQ(a.foo, 0x80 as byte);
25 assertEQ(a.bar(a.foo), 0x80 as byte);
34 let a: A = new A();
35 assertEQ(a.foo, 0x7FFF as short);
36 assertEQ(a.bar(a.foo), 0x7FFF as short);
45 let a: A = new A();
46 assertEQ(a.foo, 127 as int);
47 assertEQ(a.bar(a.foo), 127 as int);
[all …]
/arkcompiler/ets_runtime/docs/
Dusing-the-toolchain.md1 # Using the Toolchain<a name="EN-US_TOPIC_0000001128256014"></a>
22 <a name="table2035444615599"></a>
24 …%" id="mcps1.1.6.1.1"><p id="p13354134619595"><a name="p13354134619595"></a><a name="p133541346195…
26 …8066%" id="mcps1.1.6.1.3"><p id="p157281281906"><a name="p157281281906"></a><a name="p157281281906…
28 …7417%" id="mcps1.1.6.1.4"><p id="p103276335016"><a name="p103276335016"></a><a name="p103276335016…
30 …35%" id="mcps1.1.6.1.5"><p id="p1835494695915"><a name="p1835494695915"></a><a name="p183549469591…
34 … headers="mcps1.1.6.1.1 "><p id="p881325510017"><a name="p881325510017"></a><a name="p881325510017…
36 … headers="mcps1.1.6.1.3 "><p id="p072882813015"><a name="p072882813015"></a><a name="p072882813015…
38 …%" headers="mcps1.1.6.1.4 "><p id="p10327833305"><a name="p10327833305"></a><a name="p10327833305"…
40 … headers="mcps1.1.6.1.5 "><p id="p076075115014"><a name="p076075115014"></a><a name="p076075115014…
[all …]
/arkcompiler/ets_frontend/
DREADME_zh.md1 # 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 …]
DREADME.md1 # 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>
12 ets_frontend is a front-end tool in the ARK Runtime Subsystem. Combined with the ace-ets2bundle com…
20 ## Directory Structure<a name="section161941989596"></a>
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/01.type_arguments/type_arguments_of_parameterized_declarations/
Dclass_args.params.yaml4 # You may obtain a copy of the License at
18 let v: A<X> = new A<X>(new X())
21 let v: A<X> = new A<X>(new X())
25 let v: A<X|null> = new A<X|null>(null)
28 let v: A<A<X>> = new A<A<X>>(new A<X>(new X()))
31 let v: A<A<X>> = new A<A<X>>(new A<X>(new X()))
36 let v: A<I> = new A<I>(new X())
39 let v: A<A<I>> = new A<A<I>>(new A<I>(new X()))
43 let v: A<A<I>|null> = new A<A<I>|null>(null)
47 let v: A<X[]> = new A<X[]>(new X[0])
[all …]
Dclass_args_neg.params.yaml4 # You may obtain a copy of the License at
18 let v: A<X> = new A<X>(new Y()) // Y is not X
22 let v: A<X> = new A<X>(new X()) // X is out of the bound
26 let v: A<X> = new A<X|null>(null) // shouldn't assign to subclass
29 let v: A<null|X> = new A<X>(new X()) // syntax error
32 let v: A<A<X>> = new A<A<X>>(new A<Y>(new Y())) // A<Y> is not A<X>
36 let v: A<I> = new A<I>(new Y()) // Y doesn't implement I
40 let v: A<A<I>> = new A<A<I>>(new A<Y>(new Y())) // A<Y> is not A<I>
44 let v: A<X[]> = new A<X[]>(new Y[0]) // Y[] is not X[]
47 let v: A<A<X>[]> = new A<A<X>[]>(new A<Y>[0]) // A<X>[] is not A<Y>[]
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/extension_accessor/
DextensionAccessorWithNewExpr1.ets5 * You may obtain a copy of the License at
16 class A {
21 get field(this: A): Int { return A.field_ }
22 set field(this: A, v: int) { A.field_ = v }
23 get bfield(this: A): boolean { return A.bfield_; }
24 set bfield(this: A, b: boolean) { A.bfield_ = b; }
27 A.field_ = 30;
28 A.bfield_ = true;
29 assertEQ(new A().field, 30)
30 new A().field = 29;
[all …]
DextensionAccessorWithNewExpr2.ets5 * You may obtain a copy of the License at
16 class A {
23 get field(this: A): Int { return A.field_ }
24 set field(this: A, v: int) { A.field_ = v }
25 get bfield(this: A): boolean { return A.bfield_; }
26 set bfield(this: A, b: boolean) { A.bfield_ = b; }
28 get name(this:A): string{ return this.name_ }
29 set name(this:A, n: string) { this.name_ = n }
31 A.field_ = 30;
32 A.bfield_ = true;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/04.array_literal/01.type_inference_from_context/
Darr2_inf_assn.params.yaml4 # You may obtain a copy of the License at
18 let a: Array<boolean> = [true, true, true, true, true, true]
21 a = [!true, true, false]
22 assertEQ(a[0], false)
23 assertEQ(a[1], true)
24 assertEQ(a[2], false)
25 assertEQ(a.length, 3)
28 let a: Array<long> = []
31 a = [1, 2, 3, -9223372036854775807 - 1]
32 assertEQ(a[3], -9223372036854775808)
[all …]
Darr3_inf_assn.params.yaml4 # You may obtain a copy of the License at
18 let a: FixedArray<boolean> = [true, true, true, true, true, true]
21 a = [!true, true, false]
22 assertEQ(a[0], false)
23 assertEQ(a[1], true)
24 assertEQ(a[2], false)
25 assertEQ(a.length, 3)
28 let a: FixedArray<long> = []
31 a = [1, 2, 3, -9223372036854775807 - 1]
32 assertEQ(a[3], -9223372036854775808)
[all …]
Darr_inf_assn.params.yaml4 # You may obtain a copy of the License at
18 let a: boolean[] = [true, true, true, true, true, true]
21 a = [!true, true, false]
22 assertEQ(a[0], false)
23 assertEQ(a[1], true)
24 assertEQ(a[2], false)
25 assertEQ(a.length, 3)
28 let a: long[] = []
31 a = [1, 2, 3, -9223372036854775807 - 1]
32 assertEQ(a[3], -9223372036854775808)
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_stable_array_test.cpp5 * You may obtain a copy of the License at
72 …* @tc.desc: Change a JSArray through calling Push function with the JSArray and a EcmaRuntimeCallI…
105 …* @tc.desc: Change a JSArray through calling Pop function with the JSArray and a EcmaRuntimeCallIn…
141 …* @tc.desc: Create a source TaggedArray, set value for the elements of the source TaggedArray, cre…
142 …* through calling CreateArrayFromList function with the source TaggedArray, create a del…
207 …* @tc.desc: Create a source Array, set value for the elements of the source Array, call the Shift …
244 …* @tc.desc: Create a source Array whose elements are Numbers and an EcmaRuntimeCallInfo, check whe…
275 …* @tc.desc: Create a source Array whose elements are EcmaStrings and an EcmaRuntimeCallInfo, check…
308 …* @tc.desc: Create a source Array whose elements are Numbers and an EcmaRuntimeCallInfo, define th…
339 …* @tc.desc: Create a source Array whose elements are EcmaStrings and an EcmaRuntimeCallInfo, defin…
[all …]
/arkcompiler/ets_runtime/test/aottest/deopt/
Dexpect_output.txt4 # You may obtain a copy of the License at
15 1a
17 1a
18 1a
19 1a
20 1a
21 1a
22 1a
23 1a
24 1a
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/02.object_literal_of_interface_type/
Din.params.yaml4 # You may obtain a copy of the License at
17 interface A {}
20 let a: A = {}
22 assertTrue( a instanceof A )
24 assertTrue( a != b )
27 class A {}
29 ref: A
32 let a: A = {}
34 let b2: B = { ref: a }
35 let b3: B = { ref: new A() }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/02.explicit_generic_instantiations/
Dclass.params.yaml4 # You may obtain a copy of the License at
19 a: T
21 constructor(a: T, b: U) {
22 this.a = a
28 assertEQ(typeof cls.a, 'number')
33 a: [T, U]
34 constructor(a: T, b: U) {
35 this.a = [a, b]
40 assertEQ(typeof cls.a, 'object')
41 assertEQ(typeof cls.a[0], 'number')
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/09.methods_returning_this/
Dmet_ret_this.params.yaml4 # You may obtain a copy of the License at
18 class A {
28 let a = new A
29 assertEQ(a.foo().foo(), a)
41 class A extends B {
48 let a: A = { fld: 1 }
49 assertEQ(a.foo().foo(10).foo(), a)
50 assertEQ(a.fld, 13)
54 class A<T extends Error> {
64 let a = new A<Error>
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/01.object_literal_of_class_type/
Dcl.params.yaml4 # You may obtain a copy of the License at
17 class A {}
20 let a: A = {}
22 assertTrue( a instanceof A )
24 assertTrue( a != b )
27 class A {}
29 ref: A = new A()
32 let a: A = {}
34 let b2: B = { ref: a }
35 let b3: B = { ref: new A() }
[all …]

12345678910>>...429