Php7 IIFE syntax parsing

Review Request #129906 - Created Feb. 1, 2017 and discarded

Information
Shashwat Dixit
kdev-php
Reviewers
brauch, kfunk, mwolff

added parsing support for php7 iife syntax ( https://bugs.kde.org/show_bug.cgi?id=370515 )

tested with following input

<?php

$foo = function($a) {
    return function($b) use ($a) {
        return $a + $b;
    };
};

$var = (function(){return "hi";})();

echo $var;

(function ($a){echo $a;})(" kdevelop ");

(function($a) {
    echo $a;
})(5);

$var2 = (function ($a){echo $a;})(" shashwat") + (function ($a){echo $a ;})(" dixit");

(function($b){echo $b;})(" fixed") + (function(){echo " a bug" ;})();

if((function(){return true;})())
    echo "\nit works";

works fine

Shashwat Dixit
Milian Wolff
Shashwat Dixit
Review request changed

Status: Discarded

Change Summary:

Superseded by https://phabricator.kde.org/D4391

Loading...