The default value is interpreted as part of the method body instead of as part of the function signature.
I.E. it outputs
function F( float fParam )
{
fParam = 0;
While the source is:
function F( float fParam = 0 )
{
To fix this issue you would have to read the start of that function's bytecode, each optional parameter has a corresponding DefaultParameterToken or NothingToken, decompile those inline to the parameter declaration and, when deserializing the function body, skip past those and you are done.
I don't need to fix this issue so I won't do a PR for this one either, sorry.
The default value is interpreted as part of the method body instead of as part of the function signature. I.E. it outputs
While the source is:
To fix this issue you would have to read the start of that function's bytecode, each optional parameter has a corresponding
DefaultParameterToken
orNothingToken
, decompile those inline to the parameter declaration and, when deserializing the function body, skip past those and you are done. I don't need to fix this issue so I won't do a PR for this one either, sorry.