| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_warnings_tests/boost_equal_statements_tests/ |
| D | boost_equal_statements_2.sts | 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/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/parser/js/ |
| D | test-switch.js | 17 switch (key) { 25 switch (test) {} 27 switch (t) { 31 switch
|
| /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/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() 142 switch (type) { in GetArrayTagFromComponentType()
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | unclosed_loop.sts | 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 | switch_readonly_member_different_enum.sts | 34 switch (a) { 43 /* @@@ label Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ 44 /* @@@ label1 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */
|
| /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/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/ets_frontend/ets2panda/test/ast/parser/ |
| D | multierror_switchcases.sts | 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/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/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/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) {
|
| D | intrinsics_flags.inl.erb | 21 switch (intrinsic) 50 switch (intrinsic) 63 switch (intrinsic) // NOLINT(hicpp-multiway-paths-covered) 76 switch (intrinsic) { // NOLINT(hicpp-multiway-paths-covered) 93 switch (intrinsic) 112 switch (intrinsic)
|
| /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()
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | fibers_test.cpp | 109 // EOT: switch to parent (otherwise fibers lib will call abort()) in Entry() 140 // ...and the check for the counters to stay correct after the switch in LoopedSwitchEntry() 147 /// Create fiber, switch to it, execute till its end, switch back 159 * Switch to the last one, wait till the whole chain is executed 172 /// Create the child fiber, then switch context back and forth several times in a loop 187 // do something with the context before the next switch in TEST_F() 200 // counters should not be corrupted after a switch in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 8_statements.rst | 464 switch statement 479 ``switch``, ``while``, ``do``, ``for``, or ``for-of`` statement. If 492 switch statement 632 ``switch`` Statements 639 …todo: spec issue: optional identifier before the switch - it should be clarified it can be a label… 641 A ``switch`` statement transfers control to a statement or a block by using the 642 result of successful evaluation of the value of a ``switch`` expression. 645 switch statement 650 switch expression 655 (identifier ':')? 'switch' '(' expression ')' switchBlock [all …]
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | coding-style.md | 26 10. Always explicitly mark fall through in switch … case. Google uses its own macro, we can agree o… 28 switch (x) { 55 14. switch and case on the same level 58 switch (ch) {
|
| /arkcompiler/runtime_core/docs/ |
| D | coding-style.md | 26 10. Always explicitly mark fall through in switch … case. Google uses its own macro, we can agree o… 28 switch (x) { 55 14. switch and case on the same level 58 switch (ch) {
|
| /arkcompiler/runtime_core/libabckit/src/ |
| D | metadata_inspect_impl.cpp | 122 switch (ModuleGetTarget(m)) { in ModuleEnumerateImports() 144 switch (ModuleGetTarget(m)) { in ModuleEnumerateExports() 166 switch (ModuleGetTarget(m)) { in ModuleEnumerateNamespaces() 185 switch (ModuleGetTarget(m)) { in ModuleEnumerateClasses() 205 switch (ModuleGetTarget(m)) { in ModuleEnumerateTopLevelFunctions() 225 switch (ModuleGetTarget(m)) { in ModuleEnumerateAnonymousFunctions() 245 switch (ModuleGetTarget(m)) { in ModuleEnumerateAnnotationInterfaces() 267 switch (n->owningModule->target) { in NamespaceGetName() 296 switch (ModuleGetTarget(n->owningModule)) { in NamespaceEnumerateNamespaces() 316 switch (ModuleGetTarget(n->owningModule)) { in NamespaceEnumerateClasses() [all …]
|
| D | metadata_modify_impl.cpp | 110 switch (file->frontend) { in CreateValueU1() 126 switch (file->frontend) { in CreateValueDouble() 144 switch (file->frontend) { in CreateValueString() 161 switch (file->frontend) { in CreateLiteralArrayValue() 184 switch (file->frontend) { in CreateString() 205 switch (file->frontend) { in CreateLiteralArray() 221 switch (file->frontend) { in CreateLiteralBool() 237 switch (file->frontend) { in CreateLiteralU8() 253 switch (file->frontend) { in CreateLiteralU16() 269 switch (file->frontend) { in CreateLiteralMethodAffiliate() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_type.h | 41 // CC-OFFNXT(G.FUD.06) switch-case, ODR 44 switch (type.GetId()) { in ConvertPandaTypeToEtsType() 75 // CC-OFFNXT(G.FUD.06) switch-case, ODR 78 switch (type) { in ConvertEtsTypeToPandaType() 104 // CC-OFFNXT(G.FUD.06) switch-case, ODR 107 switch (type) { in ConvertEtsPrimitiveTypeToString()
|
| /arkcompiler/runtime_core/static_core/runtime/profiling/ |
| D | profiling-disasm-inl.h | 30 switch (lang) { in ReadProfile() 42 switch (lang) { in DestroyProfile() 55 switch (lang) { in FindMethodInProfile() 68 switch (lang) { in DumpProfile()
|