Home
last modified time | relevance | path

Searched full:switch (Results 1 – 25 of 1425) sorted by relevance

12345678910>>...57

/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
Dswitch-expected.txt15 "program": "switch.ets"
20 "program": "switch.ets"
124 "program": "switch.ets"
129 "program": "switch.ets"
143 "program": "switch.ets"
148 "program": "switch.ets"
169 "program": "switch.ets"
174 "program": "switch.ets"
188 "program": "switch.ets"
193 "program": "switch.ets"
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-switch-expected.txt14 "program": "test-switch.js"
19 "program": "test-switch.js"
34 "program": "test-switch.js"
39 "program": "test-switch.js"
51 "program": "test-switch.js"
56 "program": "test-switch.js"
65 "program": "test-switch.js"
70 "program": "test-switch.js"
85 "program": "test-switch.js"
90 "program": "test-switch.js"
[all …]
Dtest-switch.js17 switch (key) {
25 switch (test) {}
27 switch (t) {
31 switch
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dswicth_expr.ets17 switch (isTrue) {
28 switch (objValue) {
38 switch (arrayValue) {
47 switch (isT) {
57 switch (number1) {
71 switch (test) {
81 switch (number2) {
91 switch (number3) {
101 switch (number4) {
112 switch (day) {
[all …]
Dswicth_expr.ets.arkts2.json24 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
44 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
104 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
224 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
254 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
284 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
314 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
404 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
444 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
524 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/
Dunited_switch_ext.params.yaml23 switch (typeof input) {
38 switch (input) {
57 switch (typeof input) {
69 switch (input) {
84 switch (input) {
99 switch (input) {
114 switch (input) {
129 switch (input) {
144 switch (input) {
159 switch (input) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_warnings_tests/boost_equal_statements_tests/
Dboost_equal_statements_2.ets18 let flag: boolean = x == null; // Suggest switch sides
20 if (x == null) { // Suggest switch sides
25 let flag: boolean = x == null; // Suggest switch sides
27 if (x == null) { // Suggest switch sides
33 flag: boolean = null == null; // Not (!!!) suggest switch sides, both are 'null'
35 if (x == null) { // Suggest switch sides
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/13.switch_statements/
Dswitch_negative.params.yaml14 --- # List of valid switch statements
18 switch (i) {
31 switch (i) {
40 switch (i) {
51 switch (i) {
60 switch (i) {
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dswitch_readonly_member_different_enum.ets34 switch (a) {
43 /* @@@ label Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */
44 /* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */
45 /* @@@ label1 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */
46 /* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */
Dunclosed_loop.ets27 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
28 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
29 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
30 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
Dillegal_continue_statement.ets45 …r TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
47 …r TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
50 …r TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
52 …r TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Ddatatype.h96 // CC-OFFNXT(G.FUD.06) switch-case, ODR
99 switch (type) { in GetCommonType()
118 // CC-OFFNXT(G.FUD.06) switch-case, ODR
121 switch (type) { in IsInt32Bit()
135 // CC-OFFNXT(G.FUD.06) switch-case, ODR
138 switch (type) { in IsTypeNumeric()
159 switch (type) { in IsLessInt32()
171 // CC-OFFNXT(G.FUD.06) switch-case, ODR
192 // CC-OFFNXT(G.FUD.06) switch-case, ODR
211 // CC-OFFNXT(G.FUD.06) switch-case, ODR
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-switch.js17 switch (key) {
25 switch (test) {}
27 switch (t) {
31 switch
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dbig_switch.ets18 switch (0) {
20 switch (1) {
69 switch (1) {
117 switch (1) {
165 switch (1) {
213 switch (1) {
261 switch (1) {
309 switch (1) {
357 switch (1) {
405 switch (1) {
[all …]
/arkcompiler/runtime_core/assembler/
Dassembly-literals.h36 switch (tag_) { in IsBoolValue()
47 switch (tag_) { in IsByteValue()
61 switch (tag_) { in IsShortValue()
72 switch (tag_) { in IsIntegerValue()
84 switch (tag_) { in IsLongValue()
95 switch (tag_) { in IsFloatValue()
106 switch (tag_) { in IsDoubleValue()
117 switch (tag_) { in IsStringValue()
143 switch (type) { in GetArrayTagFromComponentType()
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-literals.h36 switch (tag) { in IsSigned()
51 switch (tag) { in IsArray()
72 switch (tag) { in IsBoolValue()
83 switch (tag) { in IsByteValue()
97 switch (tag) { in IsShortValue()
108 switch (tag) { in IsIntegerValue()
120 switch (tag) { in IsLongValue()
132 switch (tag) { in IsFloatValue()
143 switch (tag) { in IsDoubleValue()
154 switch (tag) { in IsStringValue()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/
Dmultierror_switchcases.ets22 switch (arg){
39 /* @@? 31:10 Error TypeError: Switch case type 'int' is not comparable to discriminant type 'String…
40 /* @@? 33:10 Error TypeError: Switch case type 'null|Int' is not comparable to discriminant type 'S…
42 /* @@? 35:10 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'String' …
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/FixedArray/
Dunclosed_loop.ets27 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
28 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
29 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
30 … TypeError: Control flow redirection statement can not be used out of loop or switch statement. */
/arkcompiler/runtime_core/libabckit/src/codegen/
Dcodegen_static_isapi.rb53 Visitor = Struct.new(:ir_op, :cpp, :switch)
54 Switch = Struct.new(:expr, :cases) do constant
56 res = "switch (#{expr}) {\n"
68 res = "switch (#{expr}) {\n"
160 def switch(expr, cases) method
161 Switch.new(expr, cases)
190 prefixed_case("compiler::DataType::", types, switch(condition, inner_cases))
214 switch("static_cast<int>(#{dst_r} != #{r(0)} && #{dst_r} != #{r(1)})",
259 # Switch condition printers
268 # we could use switch on 'bool' type for if-else purposes, but that hurts clang_tidy
[all …]
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb55 Visitor = Struct.new(:ir_op, :cpp, :switch)
56 Switch = Struct.new(:expr, :cases) do constant
58 res = "switch (#{expr}) {\n"
70 res = "switch (#{expr}) {\n"
162 def switch(expr, cases) method
163 Switch.new(expr, cases)
192 prefixed_case("compiler::DataType::", types, switch(condition, inner_cases))
216 switch("static_cast<int>(#{dst_r} != #{r(0)} && #{dst_r} != #{r(1)})",
261 # Switch condition printers
270 # we could use switch on 'bool' type for if-else purposes, but that hurts clang_tidy
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/intrinsics/
Dcan_encode_builtin.inl.erb24 switch (id) {
37 switch (id) {
51 switch (id) {
63 switch (id) {
83 switch (arch) {
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/
Dcan_encode_builtin.inl.erb23 switch (id) {
36 switch (id) {
49 switch (id) {
61 switch (id) {
81 switch (arch) {
/arkcompiler/runtime_core/compiler/optimizer/ir/
Ddatatype.h91 switch (type) { in GetCommonType()
109 switch (type) { in IsInt32Bit()
125 switch (type) { in IsTypeNumeric()
146 switch (type) { in IsLessInt32()
198 switch (type) { in Is32Bits()
224 switch (type) { in IsFloatType()
235 switch (type) { in IsTypeSigned()
260 switch (type) { in ShiftByType()
/arkcompiler/runtime_core/libabckit/src/adapter_dynamic/templates/
Dinst_props_helpers_dynamic.inc.erb18 switch(opcode) {
34 switch(opcode) {
72 switch(opcode) {
91 switch(opcode) {
109 switch(opcode) {
125 switch(opcode) {
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dopcodes.h53 switch (opcode) { in IsCommutative()
71 switch (opcode) { in IsStmtMustRequire()
101 switch (op) { in GetSwapCmpOp()
122 switch (op) { in GetReverseCmpOp()
143 switch (op) { in IsSupportedOpForCopyInPhasesLoopUnrollAndVRP()

12345678910>>...57