| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/ |
| D | ambient_annotations_bad_type01.sts | 34 /* @@? 19:26 Error TypeError: The initial value does not match the expected value. */ 35 /* @@? 19:5 Error TypeError: Initializer for field 'authorName' does not match the expected definit… 36 /* @@? 20:25 Error TypeError: The initial value does not match the expected value. */ 37 /* @@? 20:5 Error TypeError: Initializer for field 'authorAge' does not match the expected definiti… 38 /* @@? 21:25 Error TypeError: The initial value does not match the expected value. */ 39 /* @@? 21:5 Error TypeError: Initializer for field 'testBool' does not match the expected definitio… 40 /* @@? 22:29 Error TypeError: The initial value does not match the expected value. */ 41 /* @@? 22:5 Error TypeError: Initializer for field 'favorColor' does not match the expected definit… 42 /* @@? 23:27 Error TypeError: The initial value does not match the expected value. */ 43 /* @@? 23:26 Error TypeError: The initial value does not match the expected value. */ [all …]
|
| D | ambient_annotations_bad_type02.sts | 35 /* @@? 20:22 Error TypeError: The initial value does not match the expected value. */ 36 /* @@? 20:5 Error TypeError: Initializer for field 'authorAge' does not match the expected definiti… 38 /* @@? 21:5 Error TypeError: Initializer for field 'testBool' does not match the expected definitio… 39 /* @@? 22:5 Error TypeError: Initializer for field 'favorColor' does not match the expected definit… 40 /* @@? 23:5 Error TypeError: Initializer for field 'color' does not match the expected definition i…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/03.types/References_Types/Bigint/ |
| D | bigint-bitwise-and-1.sts | 21 function match(a: bigint, b: bigint, c: bigint): void { 27 match(0n, 1n, 0n) 28 match(65535n, 255n, 255n) 30 match(12345678n, 12345678n, 12345678n) 31 match(12345678n, -12345678n, 2n) 32 match(123456789012n, -123456789012n, 4n) 34 match(18446744073709552000n, -256n, 18446744073709551872n) 35 match(-256n, 18446744073709552000n, 18446744073709551872n) 37 match(18446744073709552000n, 18446744073709552000n, 18446744073709552000n) 38 match(18446744073709552000n, -18446744073709552000n, 128n) [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
| D | descriptor.py | 56 match = self.includes.search(header) 57 includes += [incl.strip() for incl in match.group("includes").split(",")] if match else [] 59 match = self.includes2.search(header) 60 … includes += [incl.strip() for incl in match.group("includes").split("-")][1:] if match else [] 64 match = self.flags.search(header) 65 if match: 66 result["flags"] = [flag.strip() for flag in match.group("flags").split(",")] 68 match = self.negative.search(header) 69 if match: 70 result["negative_phase"] = match.group("phase") [all …]
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | checker.rb | 65 def match_str(match) argument 66 match.is_a?(Regexp) ? "/#{match.source}/" : match 69 def contains?(str, match) argument 70 return str =~ match if match.is_a? Regexp 72 raise_error "Wrong type for search: #{match.class}" unless match.is_a? String 73 str.include? match 91 def find(match) argument 92 return if match.nil? 94 @current_index = @lines.index { |line| contains?(line, match) } 95 raise_error "#{@name} not found: #{match_str(match)}" if @current_index.nil? [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | escompat_Array_find.sts | 54 let match: Object = source[2] 56 let test = src.find((item: Object): boolean => { return item == match}) 57 if (test == match) return SUCCESS 64 let match: Object = {{.item.fillValue}} 66 let test = src.find((item: Object): boolean => { return item == match}) 74 let match: Object = source[2] 76 let index = src.findIndex((item: Object): boolean => { return item == match}) 84 let match: Object = {{.item.fillValue}} 86 let index = src.findIndex((item: Object): boolean => { return item == match}) 96 let match: Object = source[2] [all …]
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | checker.rb | 79 def match_str(match) argument 80 match.is_a?(Regexp) ? "/#{match.source}/" : match 83 def contains?(str, match) argument 84 return str =~ match if match.is_a? Regexp 86 raise_error "Wrong type for search: #{match.class}" unless match.is_a? String 87 str.include? match 102 def find_method_dump(match) argument 105 find(match) 113 def find_block(match) argument 116 find(match) [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | builtinsregexp.js | 26 const data = url.match(/(?<=\/)\w+(.jpg)$/); 37 // Test 3 - RegExp $1 .. $9 match the lastest successful results 44 "abc".match(/(a)/); 54 var res1 = testStr.match(pattern); 57 var res2 = testStr.match(pattern); 60 var res3 = testStr.match(pattern); 80 const match = emailRegex.exec(testString); constant 81 if (match) { 82 print("match result:", match[0]); 83 print("match start index:", match.index); [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | simplify_sb_doc.md | 191 let match = MatchConcatenation(instance) 192 let appendCount = match.appendCount be number of append-calls of instance 193 let append = match.append be an array of append-calls of instance 194 let toStringCall = match.toStringCall be toString-call of instance 220 type Match 225 function MatchConcatenation(instance: StringBuilder): Match 226 let match: Match 229 set match.toStringCall = usage 231 add usage to match.append array 232 increment match.appendCount [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/ |
| D | util_astchecker.py | 109 def get_match_location(match: re.Match, start: bool = False) -> Tuple[int, int]: argument 111 Returns match location in file: line and column (counting from 1) 113 match_idx = match.start() if start else match.end() 114 line_start_index = match.string[:match_idx].rfind('\n') + 1 116 line = match.string[:match_idx].count('\n') + 1 158 def parse_define_statement(self, match: re.Match[str], 160 … link_sources_map: Dict[str, re.Match[str]]) -> Optional[UtilASTChecker._TestCase]: 164 match_str = re.sub(r'\s+', ' ', match.group('pattern'))[1:].strip() 175 line, col = self.get_match_location(match) 179 match = link_sources_map[name] [all …]
|
| D | README.md | 9 <directive>: <match-pattern> | <match-at-location-pattern> | <define-pattern> | <skip-option>* 10 <match-pattern>: <id> | <builtin-pattern> 11 <match-at-location-pattern>: "?" <location> <builtin-pattern> 28 Reference-defines tests consist of two parts: `match` pattern and `define` pattern. 37 Each `define` pattern should have corrensponding `match` pattern: 44 Inplace have only `match` pattern: 55 `Match-at-location` pattern can be defined anywhere in the file and is bound to the location it spe… 91 The same test as a `Match-at-location` pattern:
|
| /arkcompiler/ets_frontend/ets2panda/scripts/ |
| D | es2panda_pre_test.py | 54 match test_type: 56 match = pattern_progress_bar.search(line) 57 if match: 60 match = re.match(pattern_clang_tidy, line) 61 if match: 62 print(f"[{match.group(1)}/{match.group(2)}] {match.group(3)}") 64 match = re.match(pattern_clang_format, line) 65 if match: 66 print(f"[{match.group(1)}/{match.group(2)}] Clang-format: {match.group(3)} \n")
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | simplify_string_builder.cpp | 250 …yStringBuilder::MatchConcatenation(InstIter &begin, const InstIter &end, ConcatenationMatch &match) in MatchConcatenation() argument 252 auto instance = match.instance; in MatchConcatenation() 257 …// Walk instruction range [begin, end) and fill the match structure with StringBuilder usage instr… in MatchConcatenation() 283 match.appendIntrinsics[match.appendCount++] = intrinsic; in MatchConcatenation() 285 match.toStringCall = *begin; in MatchConcatenation() 291 for (size_t index = 0; index < match.appendCount; ++index) { in MatchConcatenation() 292 if (!match.appendIntrinsics[index]->IsDominate(match.toStringCall)) { in MatchConcatenation() 310 void SimplifyStringBuilder::Check(const ConcatenationMatch &match) in Check() argument 313 [[maybe_unused]] auto &appendIntrinsics = match.appendIntrinsics; in Check() 314 ASSERT(match.appendCount > 1); in Check() [all …]
|
| D | simplify_string_builder.h | 83 bool MatchConcatenation(InstIter &begin, const InstIter &end, ConcatenationMatch &match); 85 void Check(const ConcatenationMatch &match); 89 void ReplaceWithConcatIntrinsic(const ConcatenationMatch &match); 91 void Cleanup(const ConcatenationMatch &match); 203 void ReconnectStringBuilderCascades(const ConcatenationLoopMatch &match); 204 void ReconnectInstructions(const ConcatenationLoopMatch &match); 209 …void HoistInstructionsToPreHeader(const ConcatenationLoopMatch &match, SaveStateInst *initSaveStat… 211 void HoistInstructionsToPostExit(const ConcatenationLoopMatch &match, SaveStateInst *saveState); 213 void Cleanup(const ConcatenationLoopMatch &match); 228 …bool MatchTemporaryInstruction(ConcatenationLoopMatch &match, ConcatenationLoopMatch::TemporaryIns… [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/regex/ |
| D | modifier_y-2.js | 17 var match = str.match(regex); variable 18 match = str.match(regex); 19 print(JSON.stringify(match)); // null
|
| D | quantifier_match_one_or_more_times.js | 17 var match = str.match(regex); variable 18 print(JSON.stringify(match)); // abbbbc
|
| D | character_class_point.js | 17 var match = str.match(regex); variable 18 print(JSON.stringify(match)); // a
|
| D | character_class_any_non_digit.js | 17 var match = str.match(regex); variable 18 print(JSON.stringify(match)); // a
|
| D | character_class_two_hexadecimal_digits.js | 17 var match = str.match(regex); variable 18 print(JSON.stringify(match)); // \x1B
|
| D | character_class_line_feed.js | 17 var match = str.match(regex); variable 18 print(JSON.stringify(match)); // \n
|
| D | character_class_corresponding_character.js | 17 var match = str.match(regex); variable 18 print(JSON.stringify(match)); // a
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | test262util.py | 126 match = self.includes.search(header) 127 includes = list(map(lambda e: e.strip(), match.group( 128 'includes').split(','))) if match else [] 130 match = self.includes2.search(header) 131 includes += list(map(lambda e: e.strip(), match.group( 132 'includes').split('-')))[1:] if match else [] 136 match = self.flags.search(header) 138 match.group('flags').split(','))) if match else [] 143 match = self.negative.search(header) 144 negative_phase = match.group('phase') if match else 'pass' [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_regexp_iterator.cpp | 57 // 9. Let match be ? RegExpExec(R, S). in Next() 58 JSMutableHandle<JSTaggedValue> match(thread, JSTaggedValue::Undefined()); in Next() local 61 match.Update(BuiltinsRegExp::RegExpBuiltinExec(thread, regexp, inputStr, isFastPath, true)); in Next() 63 match.Update(BuiltinsRegExp::RegExpExec(thread, regexp, inputStr, false)); in Next() 67 // 10. If match is null, then in Next() 71 if (match->IsNull()) { in Next() 78 // ii. Return ! CreateIterResultObject(match, false). in Next() 80 return JSIterator::CreateIterResultObject(thread, match, false).GetTaggedValue(); in Next() 83 // i. Let matchStr be ? ToString(? Get(match, "0")). in Next() 86 JSHandle<JSTaggedValue> getZero(JSObject::GetProperty(thread, match, zeroString).GetValue()); in Next() [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/ut/initialization/ |
| D | systemApiCache.json | 2 "ReservedGlobalNames": "Reserved property names should match", 3 "ReservedNames": "Reserved names should match", 4 "ReservedPropertyNames": "Reserved global names should match"
|
| /arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/async/ |
| D | async_dynamic.cpp | 42 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 56 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 64 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 80 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 88 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 104 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 112 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 129 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 137 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 152 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() [all …]
|