[new compiler] Fix id parsing
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 17 Sep 2013 15:21:11 +0000 (17:21 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 20 Sep 2013 12:26:56 +0000 (14:26 +0200)
commit9702c226edbb58aede140af91b13136b7cd810d8
treee0aa5c7a6ceeb72070192d11355a997491a63707
parent975efc4030cabb41c109d5c848bd865cd50d4ae4
[new compiler] Fix id parsing

    id: foo;

produces a statement on the right hand side that includes the semicolon.
Strip it off - reduce expression statements similar to setBindingValue.

Change-Id: I22a02ce364a309b4364476166402f8284e01ef98
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qqmlcodegenerator.cpp