Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/typebuilder.cpp
Context not available. | |||||
514 | if (classDec->isPublicBaseClass(iteratorDecl, currentContext()->topContext())) { | 514 | if (classDec->isPublicBaseClass(iteratorDecl, currentContext()->topContext())) { | ||
---|---|---|---|---|---|
515 | /// Qualified identifier for 'current' | 515 | /// Qualified identifier for 'current' | ||
516 | static const QualifiedIdentifier currentQId(QStringLiteral("current")); | 516 | static const QualifiedIdentifier currentQId(QStringLiteral("current")); | ||
517 | foreach (Declaration *d, classDec->internalContext()->findDeclarations(currentQId)) { | 517 | auto classContext = classDec->internalContext(); | ||
518 | if (!dynamic_cast<ClassMethodDeclaration*>(d)) continue; | 518 | if (classContext) { | ||
519 | Q_ASSERT(d->type<FunctionType>()); | 519 | foreach (Declaration *d, classContext->findDeclarations(currentQId)) { | ||
520 | injectType(d->type<FunctionType>()->returnType()); | 520 | if (!dynamic_cast<ClassMethodDeclaration*>(d)) continue; | ||
521 | foundType = true; | 521 | Q_ASSERT(d->type<FunctionType>()); | ||
522 | // qCDebug(DUCHAIN) << "that's it: " << d->type<FunctionType>()->returnType()->toString(); | 522 | injectType(d->type<FunctionType>()->returnType()); | ||
523 | foundType = true; | ||||
524 | // qCDebug(DUCHAIN) << "that's it: " << d->type<FunctionType>()->returnType()->toString(); | ||||
525 | } | ||||
523 | } | 526 | } | ||
524 | } | 527 | } | ||
525 | } | 528 | } | ||
Context not available. |