Task-number: QTCREATORBUG-6094
Change-Id: Icf286bc412b48dbd1cb38c47ad7b91040b5aae0f
Reviewed-on: http://codereview.qt-project.org/4864
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
return evaluator(_ast->expression);
}
+bool ASTVariableReference::getSourceLocation(QString *fileName, int *line, int *column) const
+{
+ *fileName = _doc->fileName();
+ *line = _ast->identifierToken.startLine;
+ *column = _ast->identifierToken.startColumn;
+ return true;
+}
+
ASTFunctionValue::ASTFunctionValue(FunctionExpression *ast, const Document *doc, ValueOwner *valueOwner)
: FunctionValue(valueOwner), _ast(ast), _doc(doc)
{
private:
virtual const Value *value(ReferenceContext *referenceContext) const;
+ virtual bool getSourceLocation(QString *fileName, int *line, int *column) const;
};
class QMLJS_EXPORT ASTFunctionValue: public FunctionValue