Review Request 116672: Support named anonymous functions

Niko Sams niko.sams at gmail.com
Sun Mar 9 16:19:44 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116672/
-----------------------------------------------------------

Review request for KDevelop.


Repository: kdev-qmljs


Description
-------

This patch adds support for defining named anonymous functions:
var foo = function() {
}

will result in the same as:
function foo() {
}

While this is not entirely correct (as you could do anything with variable foo) it makes sense to support that in an IDE.


Diffs
-----

  duchain/declarationbuilder.cpp 98da341 

Diff: https://git.reviewboard.kde.org/r/116672/diff/


Testing
-------

Unittest added, others still pass.


Thanks,

Niko Sams

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140309/707536c0/attachment-0001.html>


More information about the KDevelop-devel mailing list