Home
last modified time | relevance | path

Searched refs:found (Results 1 - 25 of 106) sorted by relevance

12345

/arkcompiler/ets_frontend/ets2panda/ir/
H A DastNode.cpp171 void AnyChildHelper(bool *found, const NodePredicate &cb, AstNode *ast) in AnyChildHelper() argument
173 if (*found) { in AnyChildHelper()
178 *found = true; in AnyChildHelper()
182 ast->Iterate([=](AstNode *child) { AnyChildHelper(found, cb, child); }); in AnyChildHelper()
187 bool found = false; in IsAnyChild() local
188 Iterate([&found, cb](AstNode *child) { AnyChildHelper(&found, cb, child); }); in IsAnyChild()
189 return found; in IsAnyChild()
192 void FindChildHelper(AstNode *&found, const NodePredicate &cb, AstNode *ast) in FindChildHelper() argument
194 if (found ! in FindChildHelper()
208 AstNode *found = nullptr; FindChild() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dintrusive_gc_test_api_test.cpp68 bool found = false; in TEST_P() local
69 vm->IterateOverMarkQueue([&count, &found, object](ObjectHeader *obj) { in TEST_P()
72 found = true; in TEST_P()
76 ASSERT_TRUE(found); in TEST_P()
87 found = false; in TEST_P()
88 vm->IterateOverMarkQueue([&found, object](ObjectHeader *obj) { in TEST_P()
90 found = true; in TEST_P()
93 ASSERT_TRUE(found); in TEST_P()
/arkcompiler/runtime_core/static_core/libpandafile/external/
H A Dfile_ext.cpp61 ark::panda_file::ext::MethodSymEntry *found = nullptr; in QueryMethodSymByOffset() local
63 auto callBack = [this, offset, &found](ark::panda_file::MethodDataAccessor &mda) -> void { in QueryMethodSymByOffset()
74 found = &ret.first->second; in QueryMethodSymByOffset()
87 return found; in QueryMethodSymByOffset()
91 ark::panda_file::ext::MethodSymEntry *found) in EnumerateAllMethods()
94 cda.EnumerateMethods([this, &cda, &offset, &found](ark::panda_file::MethodDataAccessor &mda) -> void { in EnumerateAllMethods()
106 found = &ret.first->second; in EnumerateAllMethods()
109 found->id = idNew; in EnumerateAllMethods()
110 found->name = ark::os::native_stack::ChangeJaveStackFormat(reinterpret_cast<const char *>(nameId)) + in EnumerateAllMethods()
111 "." + found in EnumerateAllMethods()
127 ark::panda_file::ext::MethodSymEntry *found = nullptr; QueryMethodSymAndLineByOffset() local
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
H A DobjectType.cpp53 varbinder::LocalVariable *found = otherObj->Desc()->FindProperty(it->Name()); in FindPropertyAndCheckIdentical() local
54 if (found == nullptr) { in FindPropertyAndCheckIdentical()
59 relation->IsIdenticalTo(it->TsType(), found->TsType()); in FindPropertyAndCheckIdentical()
65 if (it->Flags() != found->Flags()) { in FindPropertyAndCheckIdentical()
128 varbinder::LocalVariable *found = source->GetProperty(it->Name(), true); in AssignProperties() local
131 if (found != nullptr) { in AssignProperties()
132 Type *sourceType = relation->GetChecker()->GetTypeOfVariable(found); in AssignProperties()
138 if (found->HasFlag(varbinder::VariableFlags::OPTIONAL) && in AssignProperties()
213 auto *found = GetProperty(it->Name(), true); in CheckExcessProperties() local
215 if (found ! in CheckExcessProperties()
[all...]
/arkcompiler/ets_frontend/es2panda/typescript/types/
H A DobjectType.cpp54 binder::LocalVariable *found = otherObj->Desc()->FindProperty(it->Name()); in IsPropertiesIdentical() local
55 if (!found) { in IsPropertiesIdentical()
60 relation->IsIdenticalTo(it->TsType(), found->TsType()); in IsPropertiesIdentical()
66 if (it->Flags() != found->Flags()) { in IsPropertiesIdentical()
132 binder::LocalVariable *found = source->GetProperty(it->Name(), true); in AssignProperties() local
135 if (found) { in AssignProperties()
136 Type *sourceType = relation->GetChecker()->GetTypeOfVariable(found); in AssignProperties()
142 if (found->HasFlag(binder::VariableFlags::OPTIONAL) && !it->HasFlag(binder::VariableFlags::OPTIONAL)) { in AssignProperties()
216 auto *found = GetProperty(it->Name(), true); in checkExcessProperties() local
218 if (found || (i in checkExcessProperties()
[all...]
/arkcompiler/ets_frontend/es2panda/ir/ts/
H A DtsRestType.cpp43 auto found = checker->NodeCache().find(this); in GetType() local
44 if (found != checker->NodeCache().end()) { in GetType()
45 return found->second; in GetType()
H A DtsLiteralType.cpp43 auto found = checker->NodeCache().find(this); in GetType() local
44 if (found != checker->NodeCache().end()) { in GetType()
45 return found->second; in GetType()
H A DtsOptionalType.cpp43 auto found = checker->NodeCache().find(this); in GetType() local
44 if (found != checker->NodeCache().end()) { in GetType()
45 return found->second; in GetType()
H A DtsTypeQuery.cpp43 auto found = checker->NodeCache().find(this); in GetType() local
44 if (found != checker->NodeCache().end()) { in GetType()
45 return found->second; in GetType()
H A DtsParenthesizedType.cpp43 auto found = checker->NodeCache().find(this); in GetType() local
44 if (found != checker->NodeCache().end()) { in GetType()
45 return found->second; in GetType()
H A DtsIndexSignature.cpp50 auto found = checker->NodeCache().find(this); in Check() local
51 if (found != checker->NodeCache().end()) { in Check()
52 return found->second; in Check()
H A DtsTypeLiteral.cpp56 auto found = checker->NodeCache().find(this); in GetType() local
57 if (found != checker->NodeCache().end()) { in GetType()
58 return found->second; in GetType()
H A DtsIndexedAccessType.cpp63 auto found = checker->NodeCache().find(this); in GetType() local
64 if (found != checker->NodeCache().end()) { in GetType()
65 return found->second; in GetType()
H A DtsTypeReference.cpp56 auto found = checker->NodeCache().find(this); in GetType() local
57 if (found != checker->NodeCache().end()) { in GetType()
58 return found->second; in GetType()
H A DtsUnionType.cpp49 auto found = checker->NodeCache().find(this); in GetType() local
50 if (found != checker->NodeCache().end()) { in GetType()
51 return found->second; in GetType()
H A DtsSignatureDeclaration.cpp57 auto found = checker->NodeCache().find(this); in Check() local
58 if (found != checker->NodeCache().end()) { in Check()
59 return found->second; in Check()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dscope.cpp190 // If the variable cannot be found in the scope of the local ETSGLOBAL, than we still need to check the true in FindInGlobal()
724 auto found = typeAliasScope_->Bindings().find(name); in FindLocal() local
725 if (found != typeAliasScope_->Bindings().end()) { in FindLocal()
726 return found->second; in FindLocal()
784 auto found = typeAliasScope_->Bindings().find(name); in FindLocal() local
785 if (found != typeAliasScope_->Bindings().end()) { in FindLocal()
786 return found->second; in FindLocal()
819 auto found = TypeAliasScope()->Bindings().find(name); in FindLocal() local
820 if (found != TypeAliasScope()->Bindings().end()) { in FindLocal()
821 return found in FindLocal()
826 auto found = instanceFieldScope_->Bindings().find(name); FindLocal() local
833 auto found = staticFieldScope_->Bindings().find(name); FindLocal() local
840 auto found = instanceDeclScope_->Bindings().find(name); FindLocal() local
847 auto found = staticDeclScope_->Bindings().find(name); FindLocal() local
854 auto found = instanceMethodScope_->Bindings().find(name); FindLocal() local
861 auto found = staticMethodScope_->Bindings().find(name); FindLocal() local
[all...]
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DASTVerifier.cpp85 ctx.AddCheckMessage(std::string {"Invariant was not found: "} + invariant, *ast, lexer::SourcePosition {}); in Verify()
90 if (const auto &found = invariantsChecks_.find(name); found != invariantsChecks_.end()) { in Verify()
95 auto invariant = found->second; in Verify()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat/array_js_suites/
H A Dtest_find.js44 let found = arr.find(fnTrue);
45 ASSERT_EQ(found, 123);
H A Dtest_find_index.js39 let found = arr.findIndex(fnTrue);
40 ASSERT_EQ(found, 0);
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
H A Dets_intrinsics_helpers.cpp352 size_t found = result.find_last_of('e'); in DoubleToExponential() local
353 if (found != PandaString::npos && found < result.size() - 2U && result[found + 2U] == '0') { in DoubleToExponential()
354 result.erase(found + 2U, 1); // 2:offset of e in DoubleToExponential()
357 size_t end = found; in DoubleToExponential()
358 while (--found > 0) { in DoubleToExponential()
359 if (result[found] != '0') { in DoubleToExponential()
363 if (result[found] == '.') { in DoubleToExponential()
364 found in DoubleToExponential()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Doptimize_common.cpp178 bool found = false; in DumpBBInstructions() local
184 found = FoundListOpndRegNum(listOpnd, *insn, vReg); in DumpBBInstructions()
187 found = FoundMemAccessOpndRegNum(memOpnd, *insn, vReg); in DumpBBInstructions()
191 found = FoundNormalOpndRegNum(regOpnd, *insn, vReg); in DumpBBInstructions()
194 if (found) { in DumpBBInstructions()
198 if (found) { in DumpBBInstructions()
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
H A Darrayfind.js18 const found = array1.find((element) => element > 10);
19 console.log(found);
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Dfilesystem.cpp55 size_t found = filepath.find_last_of("/\\"); in GetParentDir() local
56 if (found == std::string::npos) { in GetParentDir()
59 return filepath.substr(0, found); in GetParentDir()
/arkcompiler/ets_frontend/es2panda/typescript/core/
H A Dhelpers.cpp224 bool found = false; in IsVariableUsedInConditionBody() local
226 parent->Iterate([this, searchVar, &found](const ir::AstNode *childNode) -> void { in IsVariableUsedInConditionBody()
235 found = true; in IsVariableUsedInConditionBody()
244 return found; in IsVariableUsedInConditionBody()
249 bool found = false; in FindVariableInBinaryExpressionChain() local
251 parent->Iterate([this, searchVar, &found](const ir::AstNode *childNode) -> void { in FindVariableInBinaryExpressionChain()
256 found = true; in FindVariableInBinaryExpressionChain()
264 return found; in FindVariableInBinaryExpressionChain()

Completed in 12 milliseconds

12345