QmlJS: Allow 'follow symbol' to jump to the target of a file import.

Task-number: QTCREATORBUG-1736
This commit is contained in:
Christian Kamm
2010-07-16 11:16:22 +02:00
parent 37efd0e10f
commit 8519ca11c3
3 changed files with 35 additions and 0 deletions

View File

@@ -181,6 +181,7 @@ bool Bind::visit(AST::Program *)
bool Bind::visit(UiImport *ast)
{
ImportInfo info;
info.ast = ast;
if (ast->versionToken.isValid()) {
const QString versionString = _doc->source().mid(ast->versionToken.offset, ast->versionToken.length);