summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/parser
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-05-14 12:14:22 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-05-14 12:14:22 (GMT)
commitc041a09b0243d7b2dfbb02bafec6ea29520ef578 (patch)
tree74947bee05702d2cdffafd109790485313f70e35 /src/declarative/qml/parser
parente3ea232cdb9116914df533b423f25ffd7384a78b (diff)
downloadQt-c041a09b0243d7b2dfbb02bafec6ea29520ef578.zip
Qt-c041a09b0243d7b2dfbb02bafec6ea29520ef578.tar.gz
Qt-c041a09b0243d7b2dfbb02bafec6ea29520ef578.tar.bz2
There's no need to record the current AST in the QML/JS engine.
Diffstat (limited to 'src/declarative/qml/parser')
-rw-r--r--src/declarative/qml/parser/javascriptengine_p.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/declarative/qml/parser/javascriptengine_p.h b/src/declarative/qml/parser/javascriptengine_p.h
index 966349b..933487f 100644
--- a/src/declarative/qml/parser/javascriptengine_p.h
+++ b/src/declarative/qml/parser/javascriptengine_p.h
@@ -115,12 +115,11 @@ class Engine
{
Lexer *_lexer;
NodePool *_nodePool;
- AST::Node *_ast;
QSet<NameId> _literals;
public:
Engine()
- : _lexer(0), _nodePool(0), _ast(0)
+ : _lexer(0), _nodePool(0)
{ }
QSet<NameId> literals() const
@@ -143,16 +142,6 @@ public:
void setNodePool(NodePool *nodePool)
{ _nodePool = nodePool; }
-
- AST::Node *ast() const
- { return _ast; }
-
- AST::Node *changeAbstractSyntaxTree(AST::Node *node)
- {
- AST::Node *previousAST = _ast;
- _ast = node;
- return previousAST;
- }
};
} // end of namespace JavaScript