Home
last modified time | relevance | path

Searched full:as (Results 1 – 25 of 8030) sorted by relevance

12345678910>>...322

/arkcompiler/ets_frontend/es2panda/test/parser/ts/stack_overflow/
Dstack_overflow_as.ts10 * distributed under the License is distributed on an "AS IS" BASIS,
16 // stack overflow If the recursion depth exceeds 1021 with 'as'
18 a as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
19 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
20 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
21 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
22 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
23 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
24 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
25 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
[all …]
Dstack_overflow_as_normal.ts10 * distributed under the License is distributed on an "AS IS" BASIS,
16 // stack overflow If the recursion depth exceeds 1021 with 'as'
18 a as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
19 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
20 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
21 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
22 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
23 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
24 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
25 as Int as Int as Int as Int as Int as Int as Int as Int as Int as Int
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dlist.std_core_long_instance.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
24 …init_object_data: "[0 as long, 1 as int, -1 as int, Long.MIN_VALUE as long, Long.MAX_VALUE as long…
26 …expected_test_data: "[0 as long, 1 as long, -1 as long, Long.MIN_VALUE as long, Long.MAX_VALUE as
41 init_object_data: "[0 as long, 1 as long, Byte.MIN_VALUE as long, Byte.MAX_VALUE as long]",
43 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
56 init_object_data: "[0 as long, 1 as long, Short.MIN_VALUE as long, Short.MAX_VALUE as long]",
58 …expected_test_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
71 …init_object_data: "[0 as long, 1 as long, -1 as long, Int.MIN_VALUE as long, Int.MAX_VALUE as long…
73 … expected_test_data: "[0 as int, 1 as int, -1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
86 …init_object_data: "[0 as long, 1 as long, -1 as long, Long.MIN_VALUE as long, Long.MAX_VALUE as lo…
[all …]
Dlist.std_core_float_instance.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
23 …init_object_data: "[0.0 as float, 1.0 as float, Float.MIN_VALUE as float, Float.MAX_VALUE as float…
25 …expected_test_data: "[0.0 as float, 1.0 as float, Float.MIN_VALUE as float, Float.MAX_VALUE as flo…
37 … init_object_data: "[0.0 as float, 1.0 as float, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
39 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
51 …init_object_data: "[0.0 as float, 1.0 as byte, Short.MIN_VALUE as short, Short.MAX_VALUE as short]…
53 …expected_test_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
65 … init_object_data: "[0.0 as float, 1.0 as float, Int.MIN_VALUE as float, Int.MAX_VALUE as float]",
67 expected_test_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
79 …init_object_data: "[0.0 as float, 1.0 as float, Long.MIN_VALUE as float, Long.MAX_VALUE as float]",
[all …]
Dlist.std_core_byte_instance.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
18 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
25 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
32 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
39 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
46 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
53 … expected_test_data: "[0 as short, 1 as short, Byte.MIN_VALUE as short, Byte.MAX_VALUE as short]",
60 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
67 expected_test_data: "[0 as int, 1 as int, Byte.MIN_VALUE as int, Byte.MAX_VALUE as int]",
74 init_object_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
[all …]
Dlist.std_core_short_instance.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
18 … init_object_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
25 …expected_test_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
32 init_object_data: "[0 as short, 1 as short, Byte.MIN_VALUE as short, Byte.MAX_VALUE as short]",
39 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
46 … init_object_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
53 …expected_test_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
60 … init_object_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
67 expected_test_data: "[0 as int, 1 as int, Short.MIN_VALUE as int, Short.MAX_VALUE as int]",
74 … init_object_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
[all …]
Dlist.std_core_int_instance.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
18 init_object_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
25 expected_test_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
32 init_object_data: "[0 as int, 1 as int, Byte.MIN_VALUE as int, Byte.MAX_VALUE as int]",
39 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
46 init_object_data: "[0 as int, 1 as int, Short.MIN_VALUE as int, Short.MAX_VALUE as int]",
53 …expected_test_data: "[0 as short, 1 as short, Short.MIN_VALUE as short, Short.MAX_VALUE as short]",
60 init_object_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
67 expected_test_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
74 init_object_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
[all …]
Dlist.std_core_value.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
16 init_values: {"0 as char", "1 as char", "Char.MIN_VALUE as char", "Char.MAX_VALUE as char"},
28 …init_values: {"0 as byte", "1 as byte", "-1 as byte", "Byte.MIN_VALUE as byte", "Byte.MAX_VALUE as
34 …init_values: {"0 as short", "1 as short", "-1 as short", "Short.MIN_VALUE as short", "Short.MAX_VA…
40 …init_values: {"0 as int", "1 as int", "-1 as int", "Int.MIN_VALUE as int", "Int.MAX_VALUE as int"},
46 …init_values: {"0 as long", "1 as long", "-1 as long", "Long.MIN_VALUE as long", "Long.MAX_VALUE as
52 …init_values: {"0.0 as float", "1.0 as float", "-1.0 as float", "Float.MIN_VALUE as float", "Float.…
58 …init_values: {"0.0 as double", "1.0 as double", "-1.0 as double", "Double.MIN_VALUE as double", "D…
64 …ues: {"Char.valueOf(0 as char)", "Char.valueOf(1 as char)", "Char.valueOf(Char.MIN_VALUE as char)"…
76 …lueOf(0 as byte)", "Byte.valueOf(1 as byte)", "Byte.valueOf(-1 as byte)", "Byte.valueOf(Byte.MIN_V…
[all …]
Dlist.std_core_double_instance.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
24 …init_object_data: "[0 as double, 1 as double, Byte.MIN_VALUE as double, Byte.MAX_VALUE as double]",
26 …expected_test_data: "[0 as double, 1 as double, Byte.MIN_VALUE as double, Byte.MAX_VALUE as double…
39 …init_object_data: "[0 as double, 1 as double, Byte.MIN_VALUE as double, Byte.MAX_VALUE as double]",
41 expected_test_data: "[0 as byte, 1 as byte, Byte.MIN_VALUE as byte, Byte.MAX_VALUE as byte]",
54 … init_object_data: "[0 as double, 1 as double, Short.MIN_VALUE as byte, Short.MAX_VALUE as byte]",
56 … expected_test_data: "[0 as short, 1 as short, Short.MIN_VALUE as byte, Short.MAX_VALUE as byte]",
69 … init_object_data: "[0 as double, 1 as double, Int.MIN_VALUE as double, Int.MAX_VALUE as double]",
71 expected_test_data: "[0 as int, 1 as int, Int.MIN_VALUE as int, Int.MAX_VALUE as int]",
84 …init_object_data: "[0 as double, 1 as double, Long.MIN_VALUE as double, Long.MAX_VALUE as double]",
[all …]
Dlist.std_core_array_reverse.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
49 test1: { arr: "[1 as byte]" },
50 test2: { arr: "[1 as byte, 2 as byte]" },
51 test3: { arr: "[1 as byte, 2 as byte, 3 as byte]" },
56 test1: "[1 as byte]",
57 test2: "[2 as byte, 1 as byte]",
58 test3: "[3 as byte, 2 as byte, 1 as byte]",
73 test1: { arr: "[1 as short]" },
74 test2: { arr: "[1 as short, 2 as short]" },
75 test3: { arr: "[1 as short, 2 as short, 3 as short]" },
[all …]
Dlist.std_core_typedarrays_instance.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
18 …a: "[Byte.MIN_VALUE as byte, -120 as byte, -77 as byte, -1 as byte, 0 as byte, 1 as byte, 77 as by…
25 …rt.MIN_VALUE as short, -12345 as short, -777 as short, -1 as short, 0 as short, 1 as short, 777 as
37 ….MIN_VALUE as long, -123456789 as long, -77777 as long, -1 as long, 0 as long, 1 as long, 77777 as
58 …_VALUE, 0.0, -0.0, Float.POSITIVE_INFINITY, -Float.NEGATIVE_INFINITY, 1e10 as float, 3.14159265358…
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
Dcast_expressions.ets10 * distributed under the License is distributed on an "AS IS" BASIS,
17 let Byte_ = null as Byte;
18 let Short_ = null as Short;
19 let Char_ = null as Char;
20 let Int_ = null as Int;
21 let Long_ = null as Long;
22 let Float_ = null as Float;
23 let Double_ = null as Double;
24 let Object = null as Object;
29 let Byte_: Byte = new Byte(42 as byte);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2ets/tests/ohos_sdk/
Dmain.ets10 * distributed under the License is distributed on an "AS IS" BASIS,
16 // import * as _ohos_InputMethodExtensionAbility from "/@ohos.InputMethodExtensionAbility.d.ts";
17 // import * as _ohos_InputMethodExtensionContext from "/@ohos.InputMethodExtensionContext.d.ts";
18 // import * as _ohos_InputMethodSubtype from "/@ohos.InputMethodSubtype.d.ts";
19 // import * as _ohos_UiTest from "/@ohos.UiTest.d.ts";
20 // import * as _ohos_WorkSchedulerExtensionAbility from "/@ohos.WorkSchedulerExtensionAbility.d.ts";
21 // import * as _ohos_ability_ability from "/@ohos.ability.ability.d.ts";
22 // import * as _ohos_ability_dataUriUtils from "/@ohos.ability.dataUriUtils.d.ts";
23 // import * as _ohos_ability_errorCode from "/@ohos.ability.errorCode.d.ts";
24 // import * as _ohos_ability_featureAbility from "/@ohos.ability.featureAbility.d.ts";
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DPunctuatorAnyEqual.ets10 * distributed under the License is distributed on an "AS IS" BASIS,
24 a_int = 10 as int;
25 a_long = 1234 as long;
29 a_int = 10 as int;
30 a_long = 1234 as long;
34 a_int = 2000 as int;
35 a_long = 1234 as long;
39 a_int = 2000 as int;
40 a_long = 1234 as long;
44 a_int = 2 as int;
[all …]
DCastPrimitive.ets10 * distributed under the License is distributed on an "AS IS" BASIS,
18 assert a as float == 2147483648; // rounded
19 assert a as long == 2147483649;
20 assert a as int == 2147483647; // 2^31 - 1 == MAX_INT == 0xFFFFFFFF
21 assert a as short == -1; // 0xFFFF
22 assert a as char == c'\uFFFF';
23 assert a as byte == -1; // 0xFF
26 assert a as float == -2147483648; // rounded
27 assert a as long == -2147483649;
28 assert a as int == -2147483648; // -2^31 == MIN_INT == 0x10000000
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.kinds_of_contexts/03.numeric_operator_contexts/02.binary_numeric_promotion/
Dresult_type_bool.params.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, op: '==' }
17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, op: '!=' }
18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", op: '>' }
19 - { type: byte, val: 1 as byte, rt: int, rv: 1, op: '>=' }
20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '<' }
21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, op: '<=' }
22 - { type: byte, val: 1 as byte, rt: double, rv: 1.0, op: '==' }
24 - { type: byte, val: 1 as byte, rt: Byte, rv: new Byte(1 as byte), op: '!=' }
25 - { type: byte, val: 1 as byte, rt: Short, rv: new Short(1 as short), op: '>' }
[all …]
Dresult_type_cond.params.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, res: 1 }
17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, res: 2 }
18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", res: 3 }
19 - { type: byte, val: 1 as byte, rt: int, rv: 1, res: 3 }
20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, res: 4 }
21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, res: 7 }
22 - { type: byte, val: 1 as byte, rt: double, rv: 1.0, res: 8 }
24 - { type: byte, val: 1 as byte, rt: Byte, rv: new Byte(1 as byte), res: 1 }
25 - { type: byte, val: 1 as byte, rt: Short, rv: new Short(1 as short), res: 2 }
[all …]
Dresult_type_arith.params.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, op: '+', res: 3 }
17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, op: '-', res: 3 }
18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", op: '*', res: 3 }
19 - { type: byte, val: 1 as byte, rt: int, rv: 1, op: '/', res: 3 }
20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '%', res: 4 }
21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, op: '+', res: 7 }
22 - { type: byte, val: 1 as byte, rt: double, rv: 1.0, op: '-', res: 8 }
24 - { type: byte, val: 1 as byte, rt: Byte, rv: new Byte(1 as byte), op: '*', res: 3 }
25 - { type: byte, val: 1 as byte, rt: Short, rv: new Short(1 as short), op: '/', res: 3 }
[all …]
Dresult_type_bitwise.params.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, op: '&', res: 3 }
17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, op: '^', res: 3 }
18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", op: '|', res: 3 }
19 - { type: byte, val: 1 as byte, rt: int, rv: 1, op: '&', res: 3 }
20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '^', res: 4 }
21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, op: '&', res: 3 }
22 - { type: byte, val: 1 as byte, rt: double, rv: 4, op: '^', res: 4 }
24 - { type: byte, val: 1 as byte, rt: Byte, rv: new Byte(1 as byte), op: '|', res: 3 }
25 - { type: byte, val: 1 as byte, rt: Short, rv: new Short(1 as short), op: '&', res: 3 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.kinds_of_contexts/04.casting_contexts/
Dsequenced.params.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
16 - { stype: byte, sval: 0 as byte, dtype: Short }
17 - { stype: byte, sval: 0 as byte, dtype: Char }
18 - { stype: byte, sval: 0 as byte, dtype: Int }
19 - { stype: byte, sval: 0 as byte, dtype: Long }
20 - { stype: byte, sval: 0 as byte, dtype: Float }
21 - { stype: byte, sval: 0 as byte, dtype: Double }
30 - { stype: short, sval: 0 as short, dtype: Byte }
31 - { stype: short, sval: 0 as short, dtype: Char }
32 - { stype: short, sval: 0 as short, dtype: Int }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/
Dlib1.expected10 * distributed under the License is distributed on an "AS IS" BASIS,
20 function _$init$_(): void { return {} as any; };
21 (_$init$_ as any) = (globalThis as any).Panda.getFunction('LETSGLOBAL;', '_$init$_');
26 function SumDouble(a: number, b: number): number { return {} as any; };
27 (SumDouble as any) = (globalThis as any).Panda.getFunction('LETSGLOBAL;', 'SumDouble');
32 function SumBoxedDouble(a: number, b: number): number { return {} as any; };
33 (SumBoxedDouble as any) = (globalThis as any).Panda.getFunction('LETSGLOBAL;', 'SumBoxedDouble');
38 function SumString(a: string, b: string): string { return {} as any; };
39 (SumString as any) = (globalThis as any).Panda.getFunction('LETSGLOBAL;', 'SumString');
44 function Identity<T>(x: T): T { return {} as any; };
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.kinds_of_contexts/01.assignment_and_call_contexts/
Dunboxing2.params.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
19 values: [-128 as byte, 0 as byte, 127 as byte]
23 values: [-128 as byte, 0 as byte, 127 as byte]
27 values: [-128 as byte, 0 as byte, 127 as byte]
31 values: [-128 as byte, 0 as byte, 127 as byte]
35 values: [-128 as byte, 0 as byte, 127 as byte]
57 values: [-32768 as short, -128 as short, 0 as short]
61 values: [-32768 as short, -128 as short, 0 as short]
65 values: [-32768 as short, -128 as short, 0 as short]
69 values: [-32768 as short, -128 as short, 0 as short]
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/02.kinds_of_conversion/01.primitive_types_conversions/
Dprim_narrowing.params.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
17 - { stype: short, src: Short.MIN_VALUE as short, dtype: byte, dst: 0 as byte }
18 - { stype: short, src: Short.MAX_VALUE as short, dtype: byte, dst: (-1) as byte }
19 - { stype: short, src: Short.MIN_VALUE as short, dtype: char, dst: "c'\\u8000'" }
20 - { stype: short, src: Short.MAX_VALUE as short, dtype: char, dst: "c'\\u7fff'" }
22 - { stype: char, src: "c'\\u0000'", dtype: byte, dst: 0 as byte }
23 - { stype: char, src: "c'\\uffff'", dtype: byte, dst: (-1) as byte }
24 - { stype: char, src: "c'\\u0000'", dtype: short, dst: 0 as short }
25 - { stype: char, src: "c'\\uffff'", dtype: short, dst: (-1) as short }
27 - { stype: int, src: Int.MIN_VALUE as int, dtype: byte, dst: 0 as byte }
[all …]
/arkcompiler/ets_frontend/ets2panda/lexer/scripts/
Dkeywords.yaml9 # distributed under the License is distributed on an "AS IS" BASIS,
19 - name: 'as'
36 keyword_like: [as]
42 - name: 'as'
45 custom_handler: [js, ts, as]
57 keyword: [as, ets]
75 keyword: [js, ts, as, ets]
83 keyword: [js, ts, as, ets]
87 keyword: [js, ts, as]
96 keyword: [js, ts, as, ets]
[all …]
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/
Dstructural_identity.ts10 * distributed under the License is distributed on an "AS IS" BASIS,
55 let name = (new B as A).getName();
64 let cl: C = goo() as C;
68 zoo(cl as B);
210 c as IdentLibC; // OK
211 i as IdentLibC; // ERR, no inheritance relation
212 ci as IdentLibC; // ERR, no inheritance relation
213 cc as IdentLibC; // OK
214 ii as IdentLibC; // ERR, no inheritance relation
215 c as IdentLibI; // ERR, no inheritance relation
[all …]

12345678910>>...322