Changeset View
Changeset View
Standalone View
Standalone View
duchain/expressionvisitor.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | public: | 43 | public: | ||
44 | ExpressionVisitor(EditorIntegrator* editor); | 44 | ExpressionVisitor(EditorIntegrator* editor); | ||
45 | ExpressionEvaluationResult result() { | 45 | ExpressionEvaluationResult result() { | ||
46 | return m_result; | 46 | return m_result; | ||
47 | } | 47 | } | ||
48 | void setCreateProblems(bool v); | 48 | void setCreateProblems(bool v); | ||
49 | void setOffset(const KDevelop::CursorInRevision& offset); | 49 | void setOffset(const KDevelop::CursorInRevision& offset); | ||
50 | 50 | | |||
51 | virtual void visitNode(AstNode *node); | 51 | void visitNode(AstNode *node) override; | ||
52 | 52 | | |||
53 | protected: | 53 | protected: | ||
54 | KDevelop::DeclarationPointer processVariable( VariableIdentifierAst* variable); | 54 | KDevelop::DeclarationPointer processVariable( VariableIdentifierAst* variable); | ||
55 | 55 | | |||
56 | void visitAssignmentExpression(AssignmentExpressionAst *node); | 56 | void visitAssignmentExpression(AssignmentExpressionAst *node) override; | ||
57 | virtual void visitArrayIndexSpecifier(ArrayIndexSpecifierAst* node); | 57 | void visitArrayIndexSpecifier(ArrayIndexSpecifierAst* node) override; | ||
58 | void visitCompoundVariableWithSimpleIndirectReference(CompoundVariableWithSimpleIndirectReferenceAst *node); | 58 | void visitCompoundVariableWithSimpleIndirectReference(CompoundVariableWithSimpleIndirectReferenceAst *node) override; | ||
59 | void visitVarExpressionNewObject(VarExpressionNewObjectAst *node); | 59 | void visitVarExpressionNewObject(VarExpressionNewObjectAst *node) override; | ||
60 | virtual void visitVarExpressionArray(VarExpressionArrayAst *node); | 60 | void visitVarExpressionArray(VarExpressionArrayAst *node) override; | ||
61 | virtual void visitClosure(ClosureAst* node); | 61 | void visitClosure(ClosureAst* node) override; | ||
62 | void visitFunctionCall(FunctionCallAst* node); | 62 | void visitFunctionCall(FunctionCallAst* node) override; | ||
63 | void visitConstantOrClassConst(ConstantOrClassConstAst *node); | 63 | void visitConstantOrClassConst(ConstantOrClassConstAst *node) override; | ||
64 | void visitScalar(ScalarAst *node); | 64 | void visitScalar(ScalarAst *node) override; | ||
65 | void visitStaticScalar(StaticScalarAst *node); | 65 | void visitStaticScalar(StaticScalarAst *node) override; | ||
66 | void visitEncapsVar(EncapsVarAst *node); | 66 | void visitEncapsVar(EncapsVarAst *node) override; | ||
67 | void visitVariableProperty(VariablePropertyAst *node); | 67 | void visitVariableProperty(VariablePropertyAst *node) override; | ||
68 | void visitStaticMember(StaticMemberAst* node); | 68 | void visitStaticMember(StaticMemberAst* node) override; | ||
69 | void visitUnaryExpression(UnaryExpressionAst* node); | 69 | void visitUnaryExpression(UnaryExpressionAst* node) override; | ||
70 | void visitAdditiveExpressionRest(AdditiveExpressionRestAst* node); | 70 | void visitAdditiveExpressionRest(AdditiveExpressionRestAst* node) override; | ||
71 | void visitVariable(VariableAst* node); | 71 | void visitVariable(VariableAst* node) override; | ||
72 | void visitFunctionCallParameterList( FunctionCallParameterListAst* node ); | 72 | void visitFunctionCallParameterList( FunctionCallParameterListAst* node ) override; | ||
73 | void visitFunctionCallParameterListElement(FunctionCallParameterListElementAst* node); | 73 | void visitFunctionCallParameterListElement(FunctionCallParameterListElementAst* node) override; | ||
74 | void visitRelationalExpression(RelationalExpressionAst* node); | 74 | void visitRelationalExpression(RelationalExpressionAst* node) override; | ||
75 | 75 | | |||
76 | QString stringForNode(AstNode* id); | 76 | QString stringForNode(AstNode* id); | ||
77 | KDevelop::QualifiedIdentifier identifierForNode(IdentifierAst* id); | 77 | KDevelop::QualifiedIdentifier identifierForNode(IdentifierAst* id); | ||
78 | QString stringForNode(VariableIdentifierAst* id); | 78 | QString stringForNode(VariableIdentifierAst* id); | ||
79 | KDevelop::QualifiedIdentifier identifierForNode(VariableIdentifierAst* id); | 79 | KDevelop::QualifiedIdentifier identifierForNode(VariableIdentifierAst* id); | ||
80 | 80 | | |||
81 | 81 | | |||
82 | virtual void usingDeclaration(AstNode* node, const KDevelop::DeclarationPointer& decl) { | 82 | virtual void usingDeclaration(AstNode* node, const KDevelop::DeclarationPointer& decl) { | ||
Show All 29 Lines |