| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | switch-expected.txt | 15 "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/ |
| D | test-switch-expected.txt | 14 "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 …]
|
| D | test-switch.js | 17 switch (key) { 25 switch (test) {} 27 switch (t) { 31 switch
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | swicth_expr.ets | 17 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 …]
|
| D | swicth_expr.ets.arkts2.json | 24 …"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/ |
| D | united_switch_ext.params.yaml | 23 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/ |
| D | boost_equal_statements_2.ets | 18 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/ |
| D | switch_negative.params.yaml | 14 --- # 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/ |
| D | switch_readonly_member_different_enum.ets | 34 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 */
|
| D | unclosed_loop.ets | 27 … 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. */
|
| D | illegal_continue_statement.ets | 45 …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/ |
| D | datatype.h | 96 // 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/ |
| D | test-switch.js | 17 switch (key) { 25 switch (test) {} 27 switch (t) { 31 switch
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | big_switch.ets | 18 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/ |
| D | assembly-literals.h | 36 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/ |
| D | assembly-literals.h | 36 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/ |
| D | multierror_switchcases.ets | 22 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/ |
| D | unclosed_loop.ets | 27 … 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/ |
| D | codegen_static_isapi.rb | 53 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/ |
| D | bytecode_optimizer_isapi.rb | 55 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/ |
| D | can_encode_builtin.inl.erb | 24 switch (id) { 37 switch (id) { 51 switch (id) { 63 switch (id) { 83 switch (arch) {
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/ |
| D | can_encode_builtin.inl.erb | 23 switch (id) { 36 switch (id) { 49 switch (id) { 61 switch (id) { 81 switch (arch) {
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | datatype.h | 91 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/ |
| D | inst_props_helpers_dynamic.inc.erb | 18 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/ |
| D | opcodes.h | 53 switch (opcode) { in IsCommutative() 71 switch (opcode) { in IsStmtMustRequire() 101 switch (op) { in GetSwapCmpOp() 122 switch (op) { in GetReverseCmpOp() 143 switch (op) { in IsSupportedOpForCopyInPhasesLoopUnrollAndVRP()
|