QmlJS checks: Fix collection of use-before-declaration warnings.
QmlJS checks: Fix collection of use-before-declaration warnings.

Previously they would not be collected if the var had a
duplicate-declaration warning.

Change-Id: I82244e911fcdfc3d11cc391288da263ee288a3ca
Reviewed-on: http://codereview.qt-project.org/4330
Reviewed-by: Fawzi Mohamed <7388270c57edd0fabd71d8eb0322d66e3c40e57e@nokia.com>

AltarBeastiful/qt-creator,KDAB/KDAB-Creator,malikcjm/qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,farseerri/git_code,KDAB/KDAB-Creator,colede/qtcreator,farseerri/git_code,malikcjm/qtcreator,azat/qtcreator,KDE/android-qt-creator,Distrotech/qtcreator,azat/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,jonnor/qt-creator,xianian/qt-creator,ostash/qt-creator-i18n-uk,danimo/qt-creator,omniacreator/qtcreator,bakaiadam/collaborative_qt_creator,jonnor/qt-creator,maui-packages/qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,colede/qtcreator,richardmg/qtcreator,maui-packages/qt-creator,KDE/android-qt-creator,KDAB/KDAB-Creator,kuba1/qtcreator,richardmg/qtcreator,ostash/qt-creator-i18n-uk,amyvmiwei/qt-creator,colede/qtcreator,hdweiss/qt-creator-visualizer,xianian/qt-creator,malikcjm/qtcreator,malikcjm/qtcreator,duythanhphan/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,ostash/qt-creator-i18n-uk,amyvmiwei/qt-creator,richardmg/qtcreator,bakaiadam/collaborative_qt_creator,Distrotech/qtcreator,hdweiss/qt-creator-visualizer,amyvmiwei/qt-creator,omniacreator/qtcreator,ostash/qt-creator-i18n-uk,farseerri/git_code,amyvmiwei/qt-creator,KDAB/KDAB-Creator,malikcjm/qtcreator,hdweiss/qt-creator-visualizer,colede/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,azat/qtcreator,hdweiss/qt-creator-visualizer,bakaiadam/collaborative_qt_creator,Distrotech/qtcreator,ostash/qt-creator-i18n-uk,xianian/qt-creator,richardmg/qtcreator,bakaiadam/collaborative_qt_creator,AltarBeastiful/qt-creator,maui-packages/qt-creator,jonnor/qt-creator,syntheticpp/qt-creator,AltarBeastiful/qt-creator,azat/qtcreator,darksylinc/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,syntheticpp/qt-creator,danimo/qt-creator,maui-packages/qt-creator,colede/qtcreator,ostash/qt-creator-i18n-uk,malikcjm/qtcreator,martyone/sailfish-qtcreator,bakaiadam/collaborative_qt_creator,danimo/qt-creator,xianian/qt-creator,kuba1/qtcreator,danimo/qt-creator,omniacreator/qtcreator,martyone/sailfish-qtcreator,duythanhphan/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,amyvmiwei/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,malikcjm/qtcreator,martyone/sailfish-qtcreator,Distrotech/qtcreator,danimo/qt-creator,kuba1/qtcreator,jonnor/qt-creator,syntheticpp/qt-creator,ostash/qt-creator-i18n-uk,bakaiadam/collaborative_qt_creator,duythanhphan/qt-creator,azat/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,bakaiadam/collaborative_qt_creator,darksylinc/qt-creator,KDE/android-qt-creator,maui-packages/qt-creator,danimo/qt-creator,KDE/android-qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,richardmg/qtcreator,syntheticpp/qt-creator,KDE/android-qt-creator,kuba1/qtcreator,farseerri/git_code,jonnor/qt-creator,darksylinc/qt-creator,xianian/qt-creator,farseerri/git_code,maui-packages/qt-creator,Distrotech/qtcreator,darksylinc/qt-creator,KDE/android-qt-creator,syntheticpp/qt-creator,KDAB/KDAB-Creator,AltarBeastiful/qt-creator,xianian/qt-creator,xianian/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,danimo/qt-creator,KDAB/KDAB-Creator,AltarBeastiful/qt-creator,hdweiss/qt-creator-visualizer,omniacreator/qtcreator,colede/qtcreator,syntheticpp/qt-creator,farseerri/git_code,omniacreator/qtcreator,syntheticpp/qt-creator,hdweiss/qt-creator-visualizer,azat/qtcreator,KDE/android-qt-creator,farseerri/git_code,duythanhphan/qt-creator,jonnor/qt-creator,kuba1/qtcreator,KDE/android-qt-creator,danimo/qt-creator,danimo/qt-creator,duythanhphan/qt-creator,xianian/qt-creator,colede/qtcreator,richardmg/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator