Changeset View
Changeset View
Standalone View
Standalone View
codegen/refactoring.h
Show All 28 Lines | |||||
29 | 29 | | |||
30 | namespace Php | 30 | namespace Php | ||
31 | { | 31 | { | ||
32 | 32 | | |||
33 | class Refactoring : public KDevelop::BasicRefactoring | 33 | class Refactoring : public KDevelop::BasicRefactoring | ||
34 | { | 34 | { | ||
35 | public: | 35 | public: | ||
36 | explicit Refactoring(QObject *parent = nullptr); | 36 | explicit Refactoring(QObject *parent = nullptr); | ||
37 | | ||||
38 | KDevelop::DocumentChangeSet::ChangeResult applyChangesToDeclarations( | ||||
39 | const QString& oldName, | ||||
40 | const QString& newName, | ||||
41 | KDevelop::DocumentChangeSet& changes, | ||||
42 | const QList<KDevelop::IndexedDeclaration>& declarations) override; | ||||
43 | | ||||
44 | KDevelop::DocumentChangeSet::ChangeResult applyChanges( | ||||
45 | const QString& oldName, | ||||
46 | const QString& newName, | ||||
47 | KDevelop::DocumentChangeSet& changes, | ||||
48 | KDevelop::DUContext* context, | ||||
49 | int usedDeclarationIndex) override; | ||||
50 | | ||||
51 | private: | ||||
52 | bool shouldRemoveDollar(const KDevelop::RangeInRevision &range, QString name); | ||||
53 | bool shouldRemoveDollar(const KTextEditor::Range &range, QString name); | ||||
37 | }; | 54 | }; | ||
38 | 55 | | |||
39 | } // End of namespace Php | 56 | } // End of namespace Php | ||
40 | 57 | | |||
41 | 58 | | |||
42 | #endif /* REFACTORING_H */ | 59 | #endif /* REFACTORING_H */ |