1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
/*
SPDX-FileCopyrightText: 2007 David Nolden <david.nolden.kdevelop@art-master.de>
SPDX-FileCopyrightText: 2008 Niko Sams <niko.sams@gmail.com>
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef DECLARATIONNAVIGATIONCONTEXT_H
#define DECLARATIONNAVIGATIONCONTEXT_H
#include <language/duchain/navigation/abstractdeclarationnavigationcontext.h>
#include <language/duchain/types/abstracttype.h>
namespace Php
{
class DeclarationNavigationContext : public KDevelop::AbstractDeclarationNavigationContext
{
public:
DeclarationNavigationContext(KDevelop::DeclarationPointer decl, KDevelop::TopDUContextPointer topContext, KDevelop::AbstractNavigationContext* previousContext = nullptr);
protected:
KDevelop::NavigationContextPointer registerChild(KDevelop::DeclarationPointer declaration);
KDevelop::QualifiedIdentifier prettyQualifiedIdentifier(const KDevelop::DeclarationPointer& decl) const override;
void htmlClass() override;
void htmlAdditionalNavigation() override;
void htmlFunction() override;
void makeLink(const QString& name, const KDevelop::DeclarationPointer& declaration, KDevelop::NavigationAction::Type actionType) override;
QString declarationKind(const KDevelop::DeclarationPointer& decl) override;
};
}
#endif
|