| /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/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 101 def find_method_dump(match) argument 104 find(match) 112 def find_block(match) argument 115 find(match) [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | simplify_sb_doc.md | 126 let match = MatchConcatenation(instance) 127 let appendCount = match.appendCount be number of append-calls of instance 128 let append = match.append be an array of append-calls of instance 129 let toStringCall = match.toStringCall be toString-call of instance 155 type Match 160 function MatchConcatenation(instance: StringBuilder): Match 161 let match: Match 164 set match.toStringCall = usage 166 add usage to match.append array 167 increment match.appendCount [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/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/tests/tests-u-runner/runner/plugins/astchecker/ |
| D | util_astchecker.py | 77 def parse_define_statement(self, match: re.Match[str], 79 … link_sources_map: Dict[str, re.Match[str]]) -> Optional[UtilASTChecker._TestCase]: 83 match_str = re.sub(r'\s+', ' ', match.group('pattern'))[1:].strip() 94 line, col = self.get_match_location(match) 98 match = link_sources_map[name] 100 line, col = self.get_match_location(match) 106 def parse_match_statement(self, match: re.Match[str], 108 … link_sources_map: Dict[str, re.Match[str]]) -> Optional[UtilASTChecker._TestCase]: 112 str_match = match.group('pattern') 121 line, col = self.get_match_location(match) [all …]
|
| D | README.md | 9 <directive>: <match-pattern> | <match-at-location-pattern> | <define-pattern> 10 <match-pattern>: <id> | <builtin-pattern> 11 <match-at-location-pattern>: "?" <location> <builtin-pattern> 25 Reference-defines tests consist of two parts: `match` pattern and `define` pattern. 34 Each `define` pattern should have corrensponding `match` pattern: 41 Inplace have only `match` pattern: 52 `Match-at-location` pattern can be defined anywhere in the file and is bound to the location it spe… 88 The same test as a `Match-at-location` pattern:
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | simplify_string_builder.cpp | 245 …yStringBuilder::MatchConcatenation(InstIter &begin, const InstIter &end, ConcatenationMatch &match) in MatchConcatenation() argument 247 …// Walk instruction range [begin, end) and fill the match structure with StringBuilder usage instr… in MatchConcatenation() 249 auto instance = match.instance; in MatchConcatenation() 280 if (match.appendCount >= match.appendIntrinsics.size()) { in MatchConcatenation() 284 match.appendIntrinsics[match.appendCount++] = intrinsic; in MatchConcatenation() 287 match.toStringCall = *begin; in MatchConcatenation() 295 return toStringCallsCount == 1 && match.appendCount > 1; in MatchConcatenation() 305 void SimplifyStringBuilder::Check(const ConcatenationMatch &match) in Check() argument 308 [[maybe_unused]] auto &appendIntrinsics = match.appendIntrinsics; in Check() 309 ASSERT(match.appendCount > 1); in Check() [all …]
|
| D | simplify_string_builder.h | 80 bool MatchConcatenation(InstIter &begin, const InstIter &end, ConcatenationMatch &match); 82 void Check(const ConcatenationMatch &match); 86 void ReplaceWithIntrinsic(const ConcatenationMatch &match); 88 void Cleanup(const ConcatenationMatch &match); 200 void ReconnectStringBuilderCascades(const ConcatenationLoopMatch &match); 201 void ReconnectInstructions(const ConcatenationLoopMatch &match); 206 …void HoistInstructionsToPreHeader(const ConcatenationLoopMatch &match, SaveStateInst *initSaveStat… 208 void HoistInstructionsToPostExit(const ConcatenationLoopMatch &match, SaveStateInst *saveState); 210 void Cleanup(const ConcatenationLoopMatch &match); 225 …void MatchTemporaryInstructions(const StringBuilderUsage &usage, ConcatenationLoopMatch &match, In… [all …]
|
| /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/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_frontend/ets2panda/linter/lib/utils/functions/ |
| D | LibraryTypeCallDiagnosticChecker.ts | 56 const match = constant 57 msg.match(ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE) || 58 msg.match(ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE) || 59 msg.match(TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE) || 60 msg.match(TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE); 61 return !match; 68 if (chain.messageText.match(TYPE_UNKNOWN_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)) { 71 … if (this.inLibCall && chain.messageText.match(TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)) { 74 if (this.inLibCall && chain.messageText.match(TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)) { 81 … chain.messageText.match(ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE) [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/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | RegExp.sts | 22 /** true if match present */ 24 /** The 0-based index of the match in the string */ 95 let match = this.regexp.exec(this.string) 96 if (match == null) { 99 let matchStr = match.get(0) 104 return new IteratorResult<RegExpMatchArray>(match) 124 let match = this.regexp.exec(this.string) 125 if (match == null || this.returned) { 129 return new IteratorResult<RegExpMatchArray>(match) 174 * Has the value true if the dot special character (.) should additionally match [all …]
|
| /arkcompiler/toolchain/build/toolchain/ |
| D | get_concurrent_links.py | 53 match = memtotal_re.match(line) 54 if not match: 56 return float(match.group(1)) * 2**10
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsFunctionType.cpp | 79 Signature *match {}; in ProcessSignatures() local 129 match = it; in ProcessSignatures() 132 return match; in ProcessSignatures() 151 Signature *match = ProcessSignatures(relation, target, sourceFuncType); in AssignmentTarget() local 153 if (match == nullptr) { in AssignmentTarget() 159 if (match->Function()->IsThrowing() || match->Function()->IsRethrowing() || in AssignmentTarget() 160 …match->HasSignatureFlag(SignatureFlags::THROWS) || match->HasSignatureFlag(SignatureFlags::RETHROW… in AssignmentTarget()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_es_checked/ |
| D | math.yaml | 42 - match: 1e18, (-5\.0|-1\.0) 51 - match: -5\.0 113 - match: (\+|-)?1(\.0), (\+|-)?(Infinity|NaN) 115 - match: -5\.0, -5\.0 122 - match: 3\.14, 0\.1
|
| /arkcompiler/ets_runtime/test/moduletest/weakcollectionswithsymbol/ |
| D | weaksetsymbolvalue.js | 46 Symbol.match, 61 print("ws.has(Symbol.match) " + ws.has(Symbol.match));
|
| D | weakmapsymbolkey.js | 50 Symbol.match, 65 print("wm.get(Symbol.match) == 4 " + (wm.get(Symbol.match) == 4));
|
| D | finalizationregistrywithsymbol.js | 30 fr.register(s, "symbol 1", Symbol.match); 39 fr.unregister(Symbol.match);
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/tools/generate-es-checked/src/ |
| D | value_dumper.rb | 63 match = /^\s*(Array|Iterable)<(?<elem>.*)>\s*$/.match(x) 64 if match 65 match[:elem]
|
| /arkcompiler/ets_frontend/ets2panda/linter/stats_calculator/ |
| D | package-lock.json | 13 "balanced-match": { 15 "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 25 "balanced-match": "^1.0.0",
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/ |
| D | test_metadata.py | 85 if not re.match(SPEC_CHAPTER_PATTERN, self.spec): 110 match = PACKAGE_PATTERN.search(data) 111 if match is None: 113 return stmt if (stmt := match.group("package_name")) is not None else None
|
| /arkcompiler/ets_runtime/test/moduletest/regresssstring/ |
| D | regresssstring.js | 35 str.__proto__.__proto__[Symbol.match] = 37 str.match(str);
|