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

@@ -24,9 +24,6 @@ public:
const QStringList &importPaths);
~Link();
// Get the scope chain for the currentObject inside doc.
void scopeChainAt(Document::Ptr doc, const QList<AST::Node *> &astPath = QList<AST::Node *>());
QList<DiagnosticMessage> diagnosticMessages() const;
private:
@@ -42,6 +39,7 @@ private:
static AST::UiQualifiedId *qualifiedTypeNameId(AST::Node *node);
void linkImports();
void initializeScopeChain();
void populateImportedTypes(Interpreter::ObjectValue *typeEnv, Document::Ptr doc);
void importFile(Interpreter::ObjectValue *typeEnv, Document::Ptr doc,