Closed jeparlefrancais closed 1 year ago
Closes #53
This adds a new rule remove_compound_assignment. It will expand:
remove_compound_assignment
local counter = 0 counter += 1
Into:
local counter = 0 counter = counter + 1
To preserve the appropriate potential side effects, the rule will define new variables to hold the temporary values.
object[getProp()] += 1 -- converts to local __DARKLUA_VAR = getProp() object[__DARKLUA_VAR] = object[__DARKLUA_VAR] + 1
This rule is not enabled by default.
Closes #53
This adds a new rule
remove_compound_assignment
. It will expand:Into:
To preserve the appropriate potential side effects, the rule will define new variables to hold the temporary values.
This rule is not enabled by default.