qmljsscopebuilder.h 599 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef QMLJSSCOPEBUILDER_H
#define QMLJSSCOPEBUILDER_H

#include <qmljs/qmljsdocument.h>

#include <QtCore/QList>

namespace QmlJS {

namespace AST {
    class Node;
}

namespace Interpreter {
    class Context;
}

18
class QMLJS_EXPORT ScopeBuilder
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
public:
    ScopeBuilder(Document::Ptr doc, Interpreter::Context *context);
    ~ScopeBuilder();

    void push(AST::Node *node);
    void pop();

private:
    void setQmlScopeObject(AST::Node *node);

    Document::Ptr _doc;
    Interpreter::Context *_context;
    QList<AST::Node *> _nodes;
};

} // namespace QmlJS

#endif // QMLJSSCOPEBUILDER_H