QmlJS: Make 'follow symbol' work on JS functions.

Task-number: QTCREATORBUG-1757
This commit is contained in:
Christian Kamm
2010-07-16 10:50:28 +02:00
parent 68be307b49
commit 4ecf0349c5
3 changed files with 15 additions and 4 deletions

View File

@@ -282,7 +282,7 @@ bool Bind::visit(FunctionDeclaration *ast)
//if (_currentObjectValue->property(ast->name->asString(), 0))
// return false;
ASTFunctionValue *function = new ASTFunctionValue(ast, &_engine);
ASTFunctionValue *function = new ASTFunctionValue(ast, _doc, &_engine);
_currentObjectValue->setProperty(ast->name->asString(), function);
// build function scope