Closed Stefanuk12 closed 3 months ago
Thanks for taking the time to submit this issue! I will link it to this other issue: https://github.com/seaofvoices/darklua/issues/44
It is a trivial sub-case of constant function inlining, where the function is simply empty 😄 It is not really a duplicate but I'll still close it as it will get done using the same rule. I'll add a comment to the issue to remember to support that use case!
To improve DX, a developer may make a function like this:
When combined with
remove_unused_if_branch
,compute_expression
, andinject_global_value
, it can make writing debug prints and similar code a lot simpler.would bundle down to
This is related to #5, this needs to be done first before this can be achieved to have more robust variable tracking.