Make QmlJS scope building more flexible.

Instead of only maintaining a flat list of scopes, actually store the
global, component chain, root object, scope object, function, id and js
scopes separately.
This commit is contained in:
Christian Kamm
2010-02-19 10:14:34 +01:00
parent b0e7b15bfc
commit c289897351
7 changed files with 140 additions and 102 deletions

View File

@@ -189,7 +189,7 @@ public:
_properties.clear();
_currentObject = 0;
foreach (const Interpreter::ObjectValue *scope, _context->scopeChain())
foreach (const Interpreter::ObjectValue *scope, _context->scopeChain().all)
enumerateProperties(scope);
return _properties;