Review Request 117885: Also return the SourceLocation of a QML attribute in getQMLAttribute
Commit Hook
null at kde.org
Tue Apr 29 18:33:38 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/117885/#review56925
-----------------------------------------------------------
This review has been submitted with commit 4bfb55ae27cf9fa23648253e3c880b7ebfa26ce3 by Denis Steckelmacher to branch master.
- Commit Hook
On April 29, 2014, 6:23 p.m., Denis Steckelmacher wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/117885/
> -----------------------------------------------------------
>
> (Updated April 29, 2014, 6:23 p.m.)
>
>
> Review request for KDevelop.
>
>
> Repository: kdev-qmljs
>
>
> Description
> -------
>
> This patch changes Utils::getQMLAttribute so that it returns the value and the source location of an attribute. This is especially useful for code snippets like this:
>
> Rectangle {
> id: my_rectangle
> }
>
> Before this patch, my_rectangle was left uncolored and Rectangle was used to represent the declaration of "my_rectangle". Now, Rectangle is left black and "my_rectangle" is rainbow-colored.
>
>
> Diffs
> -----
>
> duchain/declarationbuilder.cpp 5c2c090
> duchain/helper.h bdcef3a
> duchain/helper.cpp 0c258dd
>
> Diff: https://git.reviewboard.kde.org/r/117885/diff/
>
>
> Testing
> -------
>
> The whole testsuite passes and manual testing shows that ids are correctly recognized.
>
>
> Thanks,
>
> Denis Steckelmacher
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140429/0924dfd3/attachment.html>
More information about the KDevelop-devel
mailing list