remove_compound_assignment
Added in 0.9.0
This rule can be particularly useful to convert Luau code to Lua.
Examples
counter += 1
counter =counter+ 1
object.prop -= 1
object.prop =object.prop- 1
object.message ..= ' (context: ' .. context .. ')'
object.message =object.message.. ' (context: ' .. context .. ')'
Input | Output |
---|---|
|
|
|
|
|
|