common
common copied to clipboard
DCOM-307: Create a "Code Inliner" component for inlining function calls
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
- is required for DCOM-308: Create a Mapping Component
Comment created by yourwebmaker:
Hi Marco,
Could you give more in/out examples?