Improve error location reporting for invalid aliases in old VME
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 30 Sep 2013 06:56:29 +0000 (08:56 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 30 Sep 2013 16:21:56 +0000 (18:21 +0200)
commit7df73c27121149c36a6c8a21850d85728ea79ad5
treeacd2c88747e7fe8b827426e544520f43e4376b81
parentfb89bc5635c09cab0d737ffd17de5f17d797373a
Improve error location reporting for invalid aliases in old VME

When an alias declaration is missing a location, report the error with the
location of the alias declaration, not the object declaration.  This matches
the code patch in the new compiler, which also reports it accurately.

Change-Id: I709dbddb3273f4e05cc4d63079da52d7224466bd
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlcompiler.cpp
tests/auto/qml/qqmllanguage/data/invalidAlias.1.errors.txt