common icon indicating copy to clipboard operation
common copied to clipboard

DCOM-307: Create a "Code Inliner" component for inlining function calls

Open doctrinebot opened this issue 10 years ago • 2 comments

Jira issue originally created by user @ocramius:

Given following pieces of code:

function baz($tab) {
    $taz;
}
function foo () {
    return baz('tab');
}

echo foo();

we want to have a simple (safe - must bail out eagerly) code-inliner that produces following:

$foo*generated*tab = 'tab';
echo $foo*generated*tab;

This sort of code generator/inliner would be useful to simplify generated hydrators

doctrinebot avatar Nov 07 '15 16:11 doctrinebot

doctrinebot avatar Nov 07 '15 16:11 doctrinebot

Comment created by yourwebmaker:

Hi Marco,

Could you give more in/out examples?

doctrinebot avatar Nov 11 '15 15:11 doctrinebot