Add an accessor to get the flat scope list from ScopeChain.

Done-with: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-02-22 10:21:07 +01:00
parent e9039db984
commit 8d14f18ec0
3 changed files with 20 additions and 12 deletions

View File

@@ -249,7 +249,10 @@ public:
// rebuilds the flat list of all scopes
void update();
QList<const ObjectValue *> all;
QList<const ObjectValue *> all() const;
private:
QList<const ObjectValue *> _all;
};
class QMLJS_EXPORT Context