Changeset View
Changeset View
Standalone View
Standalone View
duchain/helper.cpp
Context not available. | |||||
456 | return id; | 456 | return id; | ||
---|---|---|---|---|---|
457 | } | 457 | } | ||
458 | 458 | | |||
459 | QualifiedIdentifier identifierForNamespace(NamespacedIdentifierBeforeGroupedNamespaceAst* node, EditorIntegrator* editor, bool lastIsConstIdentifier) | ||||
460 | { | ||||
461 | QualifiedIdentifier id; | ||||
462 | if (node->isGlobal != -1) { | ||||
463 | id.setExplicitlyGlobal(true); | ||||
464 | } | ||||
465 | const KDevPG::ListNode< IdentifierAst* >* it = node->namespaceNameSequence->front(); | ||||
466 | do { | ||||
467 | if (lastIsConstIdentifier && !it->hasNext()) { | ||||
468 | id.push(Identifier(editor->parseSession()->symbol(it->element))); | ||||
469 | } else { | ||||
470 | id.push(Identifier(editor->parseSession()->symbol(it->element).toLower())); | ||||
471 | } | ||||
472 | } while (it->hasNext() && (it = it->next)); | ||||
473 | return id; | ||||
474 | } | ||||
475 | | ||||
459 | QualifiedIdentifier identifierWithNamespace(const QualifiedIdentifier& base, DUContext* context) | 476 | QualifiedIdentifier identifierWithNamespace(const QualifiedIdentifier& base, DUContext* context) | ||
460 | { | 477 | { | ||
461 | DUChainReadLocker lock; | 478 | DUChainReadLocker lock; | ||
Context not available. |