luau/Analysis
JohnnyMorganz ab4bb355a3
Add ToStringOptions.hideFunctionSelfArgument (#486)
Adds an option to hide the `self: type` argument as the first argument in the string representation of a named function type var if the ftv hasSelf.

Also added in a test for the original output (i.e., if the option was disabled)

I didn't apply this option in the normal `Luau::toString()` function, just the `Luau::toStringNamedFunction()` one (for my usecase, that is enough + I felt like a named function would include the method colon `:` to signify self). If this is unintuitive, I can also add it to the general `Luau::toString()` function.
2022-05-16 09:50:15 -07:00
..
include/Luau Add ToStringOptions.hideFunctionSelfArgument (#486) 2022-05-16 09:50:15 -07:00
src Add ToStringOptions.hideFunctionSelfArgument (#486) 2022-05-16 09:50:15 -07:00