Home
last modified time | relevance | path

Searched refs:childContexts (Results 1 – 25 of 60) sorted by relevance

123

/dports/devel/kdevelop/kdevelop-21.12.3/plugins/qmljs/duchain/tests/
H A Dtest_qmljscontexts.cpp66 QCOMPARE(top->childContexts().count(), 3); // module, exports, the function in testFunctionContext()
68 DUContext* argCtx = top->childContexts().at(2); in testFunctionContext()
71 QCOMPARE(argCtx->childContexts().size(), 2); // The prototype context then the body context in testFunctionContext()
73 DUContext* bodyCtx = argCtx->childContexts().at(1); in testFunctionContext()
126 QCOMPARE(top->childContexts().count(), 3); // module, exports, Text in testQMLContext()
127 DUContext* mainCtx = top->childContexts().at(2); in testQMLContext()
130 QCOMPARE(mainCtx->childContexts().size(), 2); in testQMLContext()
132 DUContext* child1Ctx = mainCtx->childContexts().first(); in testQMLContext()
135 QCOMPARE(child1Ctx->childContexts().size(), 0); in testQMLContext()
137 DUContext* child2Ctx = mainCtx->childContexts().last(); in testQMLContext()
[all …]
/dports/x11-toolkits/qt5-declarative/kde-qtdeclarative-5.15.2p41/src/qml/qml/
H A Dqqmlcontext.cpp357 QQmlContextData *childContexts = data->childContexts; in setContextProperties() local
360 data->childContexts = nullptr; in setContextProperties()
366 data->childContexts = childContexts; in setContextProperties()
596 while (childContexts) { in invalidate()
598 if (childContexts->stronglyReferencedByParent && !--childContexts->refCount) in invalidate()
599 childContexts->destroy(); in invalidate()
708 nextChild = p->childContexts; in setParent()
711 p->childContexts = this; in setParent()
741 if (childContexts) in refreshExpressionsRecursive()
771 } else if (childContexts) { in refreshExpressionsRecursive()
[all …]
/dports/x11-toolkits/qt5-declarative-test/kde-qtdeclarative-5.15.2p41/src/qml/qml/
H A Dqqmlcontext.cpp357 QQmlContextData *childContexts = data->childContexts; in setContextProperties() local
360 data->childContexts = nullptr; in setContextProperties()
366 data->childContexts = childContexts; in setContextProperties()
596 while (childContexts) { in invalidate()
598 if (childContexts->stronglyReferencedByParent && !--childContexts->refCount) in invalidate()
599 childContexts->destroy(); in invalidate()
708 nextChild = p->childContexts; in setParent()
711 p->childContexts = this; in setParent()
741 if (childContexts) in refreshExpressionsRecursive()
771 } else if (childContexts) { in refreshExpressionsRecursive()
[all …]
/dports/devel/kdev-php/kdev-php-21.12.3/duchain/tests/
H A Dduchain.cpp605 DUContext* contextClassA = top->childContexts().at(0)->childContexts().first(); in classMemberVarDocBlockType()
606 DUContext* contextClassB = top->childContexts().at(1)->childContexts().first(); in classMemberVarDocBlockType()
1048 QCOMPARE(top->childContexts().at(0)->childContexts().count(), 0); in declareTypehintFunction()
1577 QVERIFY(top->childContexts().at(1)->childContexts().at(1 + 2)); in ownStaticMethod()
1580 QCOMPARE(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(0) in ownStaticMethod()
1582 QCOMPARE(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(1) in ownStaticMethod()
1705 DUContext* barContext = top->childContexts().at(1)->childContexts().at(1); in ownStaticMemberVariable()
2828 DUContext* fooCtx = top->childContexts().first()->childContexts().last(); in foreachIterator4()
3481 QCOMPARE(top->childContexts().at(1)->childContexts().size(), 1); in namespaces()
4290 dec = top->childContexts().at(2)->childContexts().at(1)->localDeclarations().at(0); in generatorClosure()
[all …]
H A Duses.cpp702 …Declaration* i = top->childContexts().first()->childContexts().first()->localDeclarations().first(… in staticArrayIndex()
960 QCOMPARE(top->childContexts().size(), 2); in functionArguments()
1252 QCOMPARE(top->childContexts().count(), 2); in instanceofClassProperty()
1299 QCOMPARE(top->childContexts().count(), 2); in instanceofStaticProperty()
1346 QCOMPARE(top->childContexts().count(), 2); in instanceofMixedProperty()
1394 QCOMPARE(top->childContexts().count(), 2); in instanceofVariableProperty()
1440 QCOMPARE(top->childContexts().count(), 2); in instanceofDynamicStaticProperty()
1486 QCOMPARE(top->childContexts().count(), 2); in instanceofDynamicVariableProperty()
1531 QCOMPARE(top->childContexts().count(), 2); in instanceofPropertyArrayAccess()
1583 QCOMPARE(top->childContexts().at(0)->childContexts().count(), 2); in dimListAfterClassNameReference()
[all …]
H A Dexpressionparser.cpp62 … DUContextPointer(top->childContexts().first()->childContexts().last()), in newSelf()
80 … DUContextPointer(top->childContexts().first()->childContexts().last()), in newStatic()
134 QCOMPARE(top->childContexts().size(), 1); in newTrait()
135 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in newTrait()
150 QCOMPARE(top->childContexts().size(), 1); in newTraitWithAbstractMethod()
151 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in newTraitWithAbstractMethod()
468 QCOMPARE(top->childContexts().size(), 3); in findArg()
469 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in findArg()
470 QVERIFY(top->childContexts().at(1)->type() == DUContext::Function); in findArg()
471 QVERIFY(top->childContexts().at(2)->type() != DUContext::Function); in findArg()
[all …]
/dports/devel/umbrello/umbrello-21.12.3/lib/kdev4-php/duchain/tests/
H A Dduchain.cpp53 QCOMPARE(top->childContexts().count(), 2); in declareFunction()
571 QCOMPARE(top->childContexts().at(0)->childContexts().count(), 0); in declareTypehintFunction()
760 QVERIFY(top->childContexts().at(1)); in ownStaticMethod()
769 QVERIFY(top->childContexts().at(1)->childContexts().at(1 + 2)); in ownStaticMethod()
770 QVERIFY(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(0)); in ownStaticMethod()
772 QCOMPARE(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(0) in ownStaticMethod()
774 QCOMPARE(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(1) in ownStaticMethod()
897 DUContext* barContext = top->childContexts().at(1)->childContexts().at(1); in ownStaticMemberVariable()
1806 DUContext* fooCtx = top->childContexts().first()->childContexts().last(); in foreachIterator4()
2429 QCOMPARE(top->childContexts().at(1)->childContexts().size(), 1); in namespaces()
[all …]
H A Dexpressionparser.cpp62 … DUContextPointer(top->childContexts().first()->childContexts().last()), in newSelf()
80 … DUContextPointer(top->childContexts().first()->childContexts().last()), in newStatic()
134 QCOMPARE(top->childContexts().size(), 1); in newTrait()
135 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in newTrait()
150 QCOMPARE(top->childContexts().size(), 1); in newTraitWithAbstractMethod()
151 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in newTraitWithAbstractMethod()
438 QCOMPARE(top->childContexts().size(), 3); in findArg()
439 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in findArg()
440 QVERIFY(top->childContexts().at(1)->type() == DUContext::Function); in findArg()
441 QVERIFY(top->childContexts().at(2)->type() != DUContext::Function); in findArg()
[all …]
H A Duses.cpp86 Declaration* fun = top->childContexts().first()->localDeclarations().first(); in memberFunctionCall()
100 Declaration* var = top->childContexts().first()->localDeclarations().first(); in memberVariable()
244 compareUses(top->childContexts().at(1)->localDeclarations().at(0), ranges); in variableTypeChangeInFunction()
373 Declaration* dec = top->childContexts().first()->localDeclarations().first(); in classConstant()
609 Declaration* a = top->childContexts().first()->localDeclarations().first(); in staticArrayIndex()
613 …Declaration* i = top->childContexts().first()->childContexts().first()->localDeclarations().first(… in staticArrayIndex()
628 Declaration *d = top->childContexts().first()->localDeclarations().first(); in functionParamNewDeclaration()
871 QCOMPARE(top->childContexts().size(), 2); in functionArguments()
872 QCOMPARE(top->childContexts().first()->type(), DUContext::Function); in functionArguments()
875 Declaration *d = top->childContexts().at(0)->localDeclarations().at(0); in functionArguments()
[all …]
/dports/devel/umbrello/umbrello-21.12.3/lib/kdev5-php/duchain/tests/
H A Dduchain.cpp56 QCOMPARE(top->childContexts().count(), 2); in declareFunction()
576 QCOMPARE(top->childContexts().at(0)->childContexts().count(), 0); in declareTypehintFunction()
787 QVERIFY(top->childContexts().at(1)); in ownStaticMethod()
796 QVERIFY(top->childContexts().at(1)->childContexts().at(1 + 2)); in ownStaticMethod()
797 QVERIFY(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(0)); in ownStaticMethod()
799 QCOMPARE(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(0) in ownStaticMethod()
801 QCOMPARE(top->childContexts().at(1)->childContexts().at(1 + 2)->localDeclarations().at(1) in ownStaticMethod()
924 DUContext* barContext = top->childContexts().at(1)->childContexts().at(1); in ownStaticMemberVariable()
1833 DUContext* fooCtx = top->childContexts().first()->childContexts().last(); in foreachIterator4()
2456 QCOMPARE(top->childContexts().at(1)->childContexts().size(), 1); in namespaces()
[all …]
H A Dexpressionparser.cpp62 … DUContextPointer(top->childContexts().first()->childContexts().last()), in newSelf()
80 … DUContextPointer(top->childContexts().first()->childContexts().last()), in newStatic()
134 QCOMPARE(top->childContexts().size(), 1); in newTrait()
135 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in newTrait()
150 QCOMPARE(top->childContexts().size(), 1); in newTraitWithAbstractMethod()
151 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in newTraitWithAbstractMethod()
444 QCOMPARE(top->childContexts().size(), 3); in findArg()
445 QVERIFY(top->childContexts().at(0)->type() == DUContext::Class); in findArg()
446 QVERIFY(top->childContexts().at(1)->type() == DUContext::Function); in findArg()
447 QVERIFY(top->childContexts().at(2)->type() != DUContext::Function); in findArg()
[all …]
H A Duses.cpp85 Declaration* fun = top->childContexts().first()->localDeclarations().first(); in memberFunctionCall()
99 Declaration* var = top->childContexts().first()->localDeclarations().first(); in memberVariable()
243 compareUses(top->childContexts().at(1)->localDeclarations().at(0), ranges); in variableTypeChangeInFunction()
372 Declaration* dec = top->childContexts().first()->localDeclarations().first(); in classConstant()
608 Declaration* a = top->childContexts().first()->localDeclarations().first(); in staticArrayIndex()
612 …Declaration* i = top->childContexts().first()->childContexts().first()->localDeclarations().first(… in staticArrayIndex()
627 Declaration *d = top->childContexts().first()->localDeclarations().first(); in functionParamNewDeclaration()
870 QCOMPARE(top->childContexts().size(), 2); in functionArguments()
871 QCOMPARE(top->childContexts().first()->type(), DUContext::Function); in functionArguments()
874 Declaration *d = top->childContexts().at(0)->localDeclarations().at(0); in functionArguments()
[all …]
/dports/devel/kdev-php/kdev-php-21.12.3/completion/tests/
H A Dtest_completion.cpp481 …PhpCompletionTester tester(top->childContexts().first()->childContexts().first(), QStringLiteral("… in projectFileClass()
662 DUContext* classContext = top->childContexts().last(); in implementMethods()
694 DUContext* classContext = top->childContexts().last(); in overrideMethods()
749 DUContext* classContext = top->childContexts().last(); in overrideVars()
997 PhpCompletionTester tester(top->childContexts().first(), {}); in nonGlobalInFunction()
1136 QVector< Declaration* > args = top->childContexts().first()->localDeclarations(); in functionArguments()
1139 PhpCompletionTester tester(top->childContexts().last(), {}); in functionArguments()
1187 Declaration* aCtor = top->childContexts().first()->localDeclarations().first(); in ctorCall()
1188 Declaration* bCtor = top->childContexts().last()->localDeclarations().first(); in ctorCall()
1293 PhpCompletionTester tester(top->childContexts().at(0), {}); in inNamespace()
[all …]
/dports/devel/umbrello/umbrello-21.12.3/lib/kdev5-php/completion/tests/
H A Dtest_completion.cpp481 …PhpCompletionTester tester(top->childContexts().first()->childContexts().first(), QStringLiteral("… in projectFileClass()
662 DUContext* classContext = top->childContexts().last(); in implementMethods()
694 DUContext* classContext = top->childContexts().last(); in overrideMethods()
749 DUContext* classContext = top->childContexts().last(); in overrideVars()
997 PhpCompletionTester tester(top->childContexts().first(), {}); in nonGlobalInFunction()
1132 QVector< Declaration* > args = top->childContexts().first()->localDeclarations(); in functionArguments()
1135 PhpCompletionTester tester(top->childContexts().last(), {}); in functionArguments()
1183 Declaration* aCtor = top->childContexts().first()->localDeclarations().first(); in ctorCall()
1184 Declaration* bCtor = top->childContexts().last()->localDeclarations().first(); in ctorCall()
1289 PhpCompletionTester tester(top->childContexts().at(0), {}); in inNamespace()
[all …]
/dports/devel/umbrello/umbrello-21.12.3/lib/kdev4-php/completion/tests/
H A Dtest_completion.cpp480 PhpCompletionTester tester(top->childContexts().first()->childContexts().first(), "<?php "); in projectFileClass()
661 DUContext* classContext = top->childContexts().last(); in implementMethods()
693 DUContext* classContext = top->childContexts().last(); in overrideMethods()
748 DUContext* classContext = top->childContexts().last(); in overrideVars()
996 PhpCompletionTester tester(top->childContexts().first(), ""); in nonGlobalInFunction()
1134 PhpCompletionTester tester(top->childContexts().last(), ""); in functionArguments()
1183 Declaration* bCtor = top->childContexts().last()->localDeclarations().first(); in ctorCall()
1288 PhpCompletionTester tester(top->childContexts().at(0), ""); in inNamespace()
1298 PhpCompletionTester tester(top->childContexts().at(0), "\\"); in inNamespace()
1309 PhpCompletionTester tester(top->childContexts().at(0), "\\foo\\"); in inNamespace()
[all …]
/dports/devel/kdevelop/kdevelop-21.12.3/plugins/clang/duchain/
H A Dduchainutils.cpp35 auto childContexts = functionContext->childContexts(); in functionSignatureRange() local
36 if (childContexts.isEmpty()) { in functionSignatureRange()
41 const auto end = childContexts[0]->rangeInCurrentRevision().start(); in functionSignatureRange()
/dports/devel/kdevelop/kdevelop-21.12.3/kdevplatform/language/duchain/tests/
H A Dtest_duchainshutdown.cpp54 QCOMPARE(top->childContexts().size(), 1); in runTest()
75 QCOMPARE(top->childContexts().size(), 1); in runTest()
76 …QCOMPARE(top->childContexts().first()->localScopeIdentifier().toString(), QStringLiteral("foo::bar… in runTest()
77 QCOMPARE(idxCtx.data(), top->childContexts().first()); in runTest()
/dports/devel/kdevelop/kdevelop-21.12.3/kdevplatform/language/duchain/
H A Dduchainutils.cpp289 const auto childContexts = ctx->childContexts(); in itemUnderCursorInternal() local
290 for (DUContext* subCtx : childContexts) { in itemUnderCursorInternal()
365 const auto childContexts = ctx->childContexts(); in declarationInLine() local
366 for (DUContext* child : childContexts){ in declarationInLine()
380 QVector<DUContext*> children = context->childContexts(); in collectItems()
540 const auto childContexts = context->childContexts(); in hasUse() local
541 return std::any_of(childContexts.begin(), childContexts.end(), [&](DUContext* child) { in hasUse()
560 const auto childContexts = context->childContexts(); in countUses() local
561 for (DUContext* child : childContexts) { in countUses()
H A Ddumpdotgraph.cpp176 const auto childContexts = context->childContexts(); in dotGraphInternal() local
177 if (!childContexts.isEmpty()) { in dotGraphInternal()
178 label += QStringLiteral(", %1 C.").arg(childContexts.count()); in dotGraphInternal()
182 for (DUContext* child : childContexts) { in dotGraphInternal()
H A Dduchaindumper.cpp173 << "Declarations," << context->childContexts().size() << "child-contexts" << endl; in dump()
191 const auto childContexts = context->childContexts(); in dump() local
192 for (DUContext* child : childContexts) { in dump()
/dports/devel/mono-addins/mono-addins-mono-addins-1.3/Mono.Addins/Mono.Addins/
H A DExtensionContext.cs54 List<WeakReference> childContexts; field in Mono.Addins.ExtensionContext
92 childContexts = null; in ClearContext()
105 if (childContexts != null) in CleanDisposedChildContexts()
112 if (childContexts != null) { in ResetCachedData()
113 foreach (WeakReference wref in childContexts) { in ResetCachedData()
124 if (childContexts == null) in CreateChildContext()
125 childContexts = new List<WeakReference> (); in CreateChildContext()
132 childContexts.Add (wref); in CreateChildContext()
793 if (childContexts != null) { in NotifyConditionChanged()
819 if (childContexts != null) { in NotifyAddinLoaded()
[all …]
/dports/devel/kdevelop/kdevelop-21.12.3/plugins/clang/tests/
H A Dtest_duchain.cpp367 … DUContext *exprContext = file.topContext()->childContexts().first()->childContexts().first(); in testReparse()
460 QCOMPARE(fooCtx->childContexts().size(), 1); in testNamespace()
462 DUContext* barCtx = fooCtx->childContexts().first(); in testNamespace()
532 QCOMPARE(ctx->childContexts().size(), 1); in testTypeDeductionInTemplateInstantiation()
533 DUContext* fooCtx = ctx->childContexts().first(); in testTypeDeductionInTemplateInstantiation()
561 QCOMPARE(top->childContexts().count(), 3); in testVirtualMemberFunction()
1045 QCOMPARE(ctx->childContexts().size(), 2); in testReparseOnDocumentActivated()
1809 auto context = file.topContext()->childContexts().first()->childContexts().first(); in testDeclarationsInsideMacroExpansion()
2444 QCOMPARE(fooContext->childContexts().size(), 0); in testBitWidth()
2499 QCOMPARE(top->childContexts().size(), 1); in testBitWidthUpdate()
[all …]
/dports/devel/kdevelop/kdevelop-21.12.3/kdevplatform/language/duchain/navigation/
H A Dabstractincludenavigationcontext.cpp35 if (ctx->childContexts().count() != 0 in pickContextWithData()
36 … && (duchain == nullptr || ctx->childContexts().count() > duchain->childContexts().count())) { in pickContextWithData()
126 QVector<DUContext*> children = ctx->childContexts(); in addDeclarationsFromContext()
/dports/converters/wkhtmltopdf/qt-5db36ec/src/declarative/qml/
H A Dqdeclarativecontext.cpp502 imports(0), childContexts(0), nextChild(0), prevChild(0), expressions(0), contextObjects(0), in QDeclarativeContextData()
510 imports(0), childContexts(0), nextChild(0), prevChild(0), expressions(0), contextObjects(0), in QDeclarativeContextData()
518 while (childContexts) in invalidate()
519 childContexts->invalidate(); in invalidate()
622 nextChild = p->childContexts; in setParent()
624 prevChild = &p->childContexts; in setParent()
625 p->childContexts = this; in setParent()
636 QDeclarativeContextData *child = childContexts; in refreshExpressions()
/dports/devel/kdev-php/kdev-php-21.12.3/codegen/
H A Drefactoring.cpp62 const auto childContexts = context->childContexts(); in applyChanges() local
63 for (DUContext* child : childContexts) { in applyChanges()

123