Review Request 116672: Support named anonymous functions

Niko Sams niko.sams at gmail.com
Thu Jun 5 07:35:29 UTC 2014


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

(Updated June 5, 2014, 7:35 a.m.)


Status
------

This change has been discarded.


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/20140605/a322e1b0/attachment-0001.html>


More information about the KDevelop-devel mailing list