diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-24 12:10:46 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-24 12:42:45 +0200 |
commit | be4f0622f8c0d89371e9314e2d53c246dd77871b (patch) | |
tree | 55417377038c0a859703f4c5821c53df81e77be7 /src/qml/qml/qqmlrewrite_p.h | |
parent | 1eb41200948ab414f1c47d93123b41c547a993df (diff) |
Remove the remaining dependencies onto the binding rewriter
Remove the remaining places that were rewriting bindings. Remove the
binding rewriter class.
Change-Id: Ib1e9121dc10f4526ddb7cf0ae32fecd8ce2d4993
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlrewrite_p.h')
-rw-r--r-- | src/qml/qml/qqmlrewrite_p.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/qml/qml/qqmlrewrite_p.h b/src/qml/qml/qqmlrewrite_p.h index c3139c6a2f..127c0811cc 100644 --- a/src/qml/qml/qqmlrewrite_p.h +++ b/src/qml/qml/qqmlrewrite_p.h @@ -88,58 +88,6 @@ public: virtual bool visit(AST::BinaryExpression *); }; -class RewriteBinding: protected AST::Visitor -{ - unsigned _position; - TextWriter *_writer; - QString _name; - const QString *_code; - -public: - QString operator()(const QString &code, bool *ok = 0, bool *sharable = 0, bool *safe = 0); - QString operator()(QQmlJS::AST::Node *node, const QString &code, bool *sharable = 0, bool *safe = 0); - - //name of the function: used for the debugger - void setName(const QString &name) { _name = name; } - -protected: - using AST::Visitor::visit; - - void accept(AST::Node *node); - QString rewrite(QString code, unsigned position, AST::Statement *node); - void rewriteCaseStatements(AST::StatementList *statements, bool rewriteTheLastStatement); - - virtual bool visit(AST::StringLiteral *ast); - virtual bool visit(AST::Block *ast); - virtual bool visit(AST::ExpressionStatement *ast); - - virtual bool visit(AST::DoWhileStatement *ast); - virtual void endVisit(AST::DoWhileStatement *ast); - - virtual bool visit(AST::WhileStatement *ast); - virtual void endVisit(AST::WhileStatement *ast); - - virtual bool visit(AST::ForStatement *ast); - virtual void endVisit(AST::ForStatement *ast); - - virtual bool visit(AST::LocalForStatement *ast); - virtual void endVisit(AST::LocalForStatement *ast); - - virtual bool visit(AST::ForEachStatement *ast); - virtual void endVisit(AST::ForEachStatement *ast); - - virtual bool visit(AST::LocalForEachStatement *ast); - virtual void endVisit(AST::LocalForEachStatement *ast); - - virtual bool visit(AST::CaseBlock *ast); - - virtual bool visit(AST::FunctionExpression *ast); - virtual bool visit(AST::FunctionDeclaration *ast); - -private: - int _inLoop; -}; - class RewriteSignalHandler: protected AST::Visitor { public: |