kdevelop/kdevplatform/language/duchain
namespacealiasdeclaration.cpp
Go to the documentation of this file.
33 NamespaceAliasDeclaration::NamespaceAliasDeclaration(const RangeInRevision& range, DUContext* context)
42 NamespaceAliasDeclaration::NamespaceAliasDeclaration(NamespaceAliasDeclarationData& data) : Declaration(data)
106 return i18n("Import %1 as %2", d->m_importIdentifier.identifier().toString(), identifier().toString());
Represents a single declaration in a definition-use chain.
Definition: declaration.h:51
const IndexedIdentifier & globalIndexedImportIdentifier()
This is the identifier that can be used to search namespace-import declarations, and should be used t...
Definition: ducontext.cpp:96
void setAbstractType(AbstractType::Ptr type) override
A NamespaceAliasDeclaration cannot have a type, so setAbstractType does nothing here.
Definition: namespacealiasdeclaration.cpp:96
REGISTER_DUCHAIN_ITEM(AliasDeclaration)
void removeDeclaration(const IndexedQualifiedIdentifier &id, const IndexedDeclaration &declaration)
Adds declaration declaration with id id to the symbol table.
Definition: persistentsymboltable.cpp:251
void setContext(DUContext *context, bool anonymous=false)
Set the context in which this declaration occurs.
Definition: declaration.cpp:290
virtual DeclarationId id(bool forceDirect=false) const
Definition: declaration.cpp:567
QualifiedIdentifier importIdentifier() const
The identifier that was imported.
Definition: namespacealiasdeclaration.cpp:46
QString toString(IdentifierStringFormattingOptions options=NoOptions) const
Definition: identifier.cpp:594
static PersistentSymbolTable & self()
Definition: persistentsymboltable.cpp:486
const IndexedIdentifier & globalIndexedAliasIdentifier()
This is the identifier that can be used to search namespace-alias declarations.
Definition: ducontext.cpp:102
const IndexedIdentifier & indexedIdentifier() const
Access this declaration's identifier.
Definition: declaration.cpp:210
void setInSymbolTable(bool inSymbolTable) override
Adds or removes this declaration to/from the symbol table.
Definition: namespacealiasdeclaration.cpp:63
void push(const IndexedIdentifier &id)
Append id to this qualified identifier.
Definition: identifier.cpp:995
QualifiedIdentifier qualifiedIdentifier() const
Determine the global qualified identifier of this declaration.
Definition: declaration.cpp:267
A class which represents a "using namespace" statement, or a "namespace A = B" statement.
Definition: namespacealiasdeclaration.h:53
bool persistentlyDestroying() const
Returns true if this declaration is being currently destroyed persistently, which means that it shoul...
Definition: declaration.cpp:134
~NamespaceAliasDeclaration() override
Definition: namespacealiasdeclaration.cpp:57
void addDeclaration(const IndexedQualifiedIdentifier &id, const IndexedDeclaration &declaration)
Adds declaration declaration with id id to the symbol table.
Definition: persistentsymboltable.cpp:200
virtual void setInSymbolTable(bool inSymbolTable)
Adds or removes this declaration to/from the symbol table.
Definition: declaration.cpp:617
void setImportIdentifier(const QualifiedIdentifier &id)
The identifier must be absolute (Resolve it before setting it!) Although the identifier is global...
Definition: namespacealiasdeclaration.cpp:51
NamespaceAliasDeclaration(const NamespaceAliasDeclaration &rhs)
Definition: namespacealiasdeclaration.cpp:28
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
QString toString() const override
Determine this declaration as a string.
Definition: namespacealiasdeclaration.cpp:102
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 9 2019 02:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 9 2019 02:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.