make_assignment_local
unreleased
This rule converts all const assignments into regular local assignments. It is applied to variable assignments and function assignments.
Note: this rule is useful if you are converting Luau code into regular Lua code.
Examples
const PI = math.pi
local PI = math.pi
const function example() end
local function example() end
| Input | Output |
|---|---|
| |
| |