QmlJS: Remove Link::scopeChainAt, initialize scope chain in constructor.

Use ScopeBuilder.push(...) for the same functionality.

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-04-22 15:59:21 +02:00
parent 91853c7c83
commit 3286f48504
7 changed files with 34 additions and 37 deletions

View File

@@ -39,6 +39,12 @@ void ScopeBuilder::push(AST::Node *node)
_context->scopeChain().update();
}
void ScopeBuilder::push(const QList<AST::Node *> &nodes)
{
foreach (Node *node, nodes)
push(node);
}
void ScopeBuilder::pop()
{
Node *toRemove = _nodes.last();