Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/predeclarationbuilder.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 50 | PreDeclarationBuilder(QHash<qint64, ClassDeclaration*>* types, | |||
---|---|---|---|---|---|
53 | QList<KDevelop::QualifiedIdentifier>* upcomingClassVariables, | 53 | QList<KDevelop::QualifiedIdentifier>* upcomingClassVariables, | ||
54 | EditorIntegrator* editor ) | 54 | EditorIntegrator* editor ) | ||
55 | : m_types(types), m_functions(functions), m_namespaces(namespaces), | 55 | : m_types(types), m_functions(functions), m_namespaces(namespaces), | ||
56 | m_upcomingClassVariables(upcomingClassVariables) | 56 | m_upcomingClassVariables(upcomingClassVariables) | ||
57 | { | 57 | { | ||
58 | m_editor = editor; | 58 | m_editor = editor; | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | virtual ~PreDeclarationBuilder(); | 61 | ~PreDeclarationBuilder() override; | ||
62 | 62 | | |||
63 | /// make it accessible to the declaration builder | 63 | /// make it accessible to the declaration builder | ||
64 | bool didRecompile() { return recompiling(); } | 64 | bool didRecompile() { return recompiling(); } | ||
65 | 65 | | |||
66 | protected: | 66 | protected: | ||
67 | // virtual void visitNode(AstNode* node); | 67 | // virtual void visitNode(AstNode* node); | ||
68 | virtual void visitClassDeclarationStatement(ClassDeclarationStatementAst *node); | 68 | void visitClassDeclarationStatement(ClassDeclarationStatementAst *node) override; | ||
69 | virtual void visitInterfaceDeclarationStatement(InterfaceDeclarationStatementAst *node); | 69 | void visitInterfaceDeclarationStatement(InterfaceDeclarationStatementAst *node) override; | ||
70 | virtual void visitTraitDeclarationStatement(TraitDeclarationStatementAst *node); | 70 | void visitTraitDeclarationStatement(TraitDeclarationStatementAst *node) override; | ||
71 | virtual void visitFunctionDeclarationStatement(FunctionDeclarationStatementAst *node); | 71 | void visitFunctionDeclarationStatement(FunctionDeclarationStatementAst *node) override; | ||
72 | virtual void visitClassVariable(ClassVariableAst* node); | 72 | void visitClassVariable(ClassVariableAst* node) override; | ||
73 | virtual void openNamespace(NamespaceDeclarationStatementAst* parent, IdentifierAst* node, const IdentifierPair& identifier, const KDevelop::RangeInRevision& range); | 73 | void openNamespace(NamespaceDeclarationStatementAst* parent, IdentifierAst* node, const IdentifierPair& identifier, const KDevelop::RangeInRevision& range) override; | ||
74 | virtual void closeNamespace(NamespaceDeclarationStatementAst* parent, IdentifierAst* node, const IdentifierPair& identifier); | 74 | void closeNamespace(NamespaceDeclarationStatementAst* parent, IdentifierAst* node, const IdentifierPair& identifier) override; | ||
75 | 75 | | |||
76 | virtual void closeDeclaration(); | 76 | void closeDeclaration() override; | ||
77 | virtual void closeContext(); | 77 | void closeContext() override; | ||
78 | private: | 78 | private: | ||
79 | QHash<qint64, ClassDeclaration*>* m_types; | 79 | QHash<qint64, ClassDeclaration*>* m_types; | ||
80 | QHash<qint64, FunctionDeclaration*>* m_functions; | 80 | QHash<qint64, FunctionDeclaration*>* m_functions; | ||
81 | QHash<qint64, NamespaceDeclaration*>* m_namespaces; | 81 | QHash<qint64, NamespaceDeclaration*>* m_namespaces; | ||
82 | QList<KDevelop::QualifiedIdentifier>* m_upcomingClassVariables; | 82 | QList<KDevelop::QualifiedIdentifier>* m_upcomingClassVariables; | ||
83 | }; | 83 | }; | ||
84 | 84 | | |||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | #endif // PREDECLARATIONBUILDER_H | 87 | #endif // PREDECLARATIONBUILDER_H | ||
88 | 88 | |