darklua
DocumentationTry itGitHub

remove_method_call


unreleased

This rule converts function calls that use the colon syntax (:) to function calls using dot notation (.).

This rule only transforms method calls where the prefix is an identifier. Other method calls using field access, index access or function call prefixes are left unchanged.

Examples


obj:method()
game:GetService('RunService')
return player:LoadCharacter()
InputOutput
obj:method()
obj.method(obj)
game:GetService('RunService')
game.GetService(game,'RunService')
return player:LoadCharacter()
return player.LoadCharacter(player)