Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/declarationbuilder.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | |||||
65 | protected: | 65 | protected: | ||
66 | void visitClassDeclarationStatement(ClassDeclarationStatementAst *node) override; | 66 | void visitClassDeclarationStatement(ClassDeclarationStatementAst *node) override; | ||
67 | void visitInterfaceDeclarationStatement(InterfaceDeclarationStatementAst *node) override; | 67 | void visitInterfaceDeclarationStatement(InterfaceDeclarationStatementAst *node) override; | ||
68 | void visitTraitDeclarationStatement(TraitDeclarationStatementAst *node) override; | 68 | void visitTraitDeclarationStatement(TraitDeclarationStatementAst *node) override; | ||
69 | void visitClassStatement(ClassStatementAst *node) override; | 69 | void visitClassStatement(ClassStatementAst *node) override; | ||
70 | virtual void importTraitMethods(ClassStatementAst *node); | 70 | virtual void importTraitMethods(ClassStatementAst *node); | ||
71 | void visitClassExtends(ClassExtendsAst *node) override; | 71 | void visitClassExtends(ClassExtendsAst *node) override; | ||
72 | void visitClassImplements(ClassImplementsAst *node) override; | 72 | void visitClassImplements(ClassImplementsAst *node) override; | ||
73 | void visitParameterList(ParameterListAst *node) override; | ||||
73 | void visitParameter(ParameterAst *node) override; | 74 | void visitParameter(ParameterAst *node) override; | ||
74 | void visitFunctionDeclarationStatement(FunctionDeclarationStatementAst *node) override; | 75 | void visitFunctionDeclarationStatement(FunctionDeclarationStatementAst *node) override; | ||
75 | void visitClassVariable(ClassVariableAst *node) override; | 76 | void visitClassVariable(ClassVariableAst *node) override; | ||
76 | void visitConstantDeclaration(ConstantDeclarationAst *node) override; | 77 | void visitConstantDeclaration(ConstantDeclarationAst *node) override; | ||
77 | void visitTraitAliasStatement(TraitAliasStatementAst *node) override; | 78 | void visitTraitAliasStatement(TraitAliasStatementAst *node) override; | ||
78 | virtual void createTraitAliasDeclarations(TraitAliasStatementAst *node, KDevelop::DeclarationPointer dec); | 79 | virtual void createTraitAliasDeclarations(TraitAliasStatementAst *node, KDevelop::DeclarationPointer dec); | ||
79 | void visitOuterTopStatement(OuterTopStatementAst* node) override; | 80 | void visitOuterTopStatement(OuterTopStatementAst* node) override; | ||
80 | void visitAssignmentExpression(AssignmentExpressionAst* node) override; | 81 | void visitAssignmentExpression(AssignmentExpressionAst* node) override; | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 121 | struct FindVariableResults { | |||
137 | FindVariableResults(); | 138 | FindVariableResults(); | ||
138 | }; | 139 | }; | ||
139 | FindVariableResults m_findVariable; | 140 | FindVariableResults m_findVariable; | ||
140 | 141 | | |||
141 | /// The position of the current argument, will only be set inside function calls. | 142 | /// The position of the current argument, will only be set inside function calls. | ||
142 | int m_functionCallParameterPos; | 143 | int m_functionCallParameterPos; | ||
143 | /// Type of the current function, will only be set inside function calls. | 144 | /// Type of the current function, will only be set inside function calls. | ||
144 | KDevelop::FunctionType::Ptr m_currentFunctionType; | 145 | KDevelop::FunctionType::Ptr m_currentFunctionType; | ||
146 | /// The AstNode of the previous function declaration argument | ||||
147 | ParameterAst *m_functionDeclarationPreviousArgument; | ||||
145 | 148 | | |||
146 | unsigned int m_currentModifers; | 149 | unsigned int m_currentModifers; | ||
147 | QString m_lastTopStatementComment; | 150 | QString m_lastTopStatementComment; | ||
148 | 151 | | |||
149 | QHash<qint64, ClassDeclaration*> m_types; | 152 | QHash<qint64, ClassDeclaration*> m_types; | ||
150 | QHash<qint64, FunctionDeclaration*> m_functions; | 153 | QHash<qint64, FunctionDeclaration*> m_functions; | ||
151 | QHash<qint64, NamespaceDeclaration*> m_namespaces; | 154 | QHash<qint64, NamespaceDeclaration*> m_namespaces; | ||
152 | QList<KDevelop::QualifiedIdentifier> m_upcomingClassVariables; | 155 | QList<KDevelop::QualifiedIdentifier> m_upcomingClassVariables; | ||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |