-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Right now function arguments that are themselves functions calls don't get upvalued (as they are not even being looked at).
Hence
self.SetBreakOffTriggerMult(3, self.SetBreakOffDistanceMult(4))
gets turned into
-- Automatically upvalued moho functions for performance
local UnitMethods = _G.moho.unit_methods
local UnitMethodsSetBreakOffDistanceMult = UnitMethods.SetBreakOffDistanceMult
local UnitMethodsSetBreakOffTriggerMult = UnitMethods.SetBreakOffTriggerMult
-- End of automatically upvalued moho functions
UnitMethodsSetBreakOffTriggerMult(3, self.SetBreakOffDistanceMult(4))
but should turn into
-- Automatically upvalued moho functions for performance
local UnitMethods = _G.moho.unit_methods
local UnitMethodsSetBreakOffTriggerMult = UnitMethods.SetBreakOffTriggerMult
-- End of automatically upvalued moho functions
UnitMethodsSetBreakOffTriggerMult(3, UnitMethodsSetBreakOffDistanceMult(4))
Metadata
Metadata
Assignees
Labels
No labels