api-doc-tools icon indicating copy to clipboard operation
api-doc-tools copied to clipboard

vararg parameters are missing from the docs

Open mairaw opened this issue 6 years ago • 1 comments

This is an example of a method with a vararg param: https://docs.microsoft.com/en-us/dotnet/api/system.console.write?view=netframework-4.8#System_Console_Write_System_String_System_Object_System_Object_System_Object_System_Object_ I don't know how many we had of these.

On MSDN, a ... param was added to the bottom of the list image

And had special syntax for those: image

image

You can see they look different on ildasm: image

/cc @joelmartinez @dend

mairaw avatar Dec 15 '18 00:12 mairaw

interesting ... ok, so digging into this a bit, it looks like we'll need to take the CallingConvention into consideration, something which mdoc doesn't currently do, as you can see below, the calling convention for this particular method in question is VarArg:

image

@dend, is the calling convention something that we should start tracking as a separate property on the model?

Aside from (possibly) adding the property/value to the model ... the formatters will need to take this into account when formatting parameter lists.

joelmartinez avatar Dec 17 '18 15:12 joelmartinez