Open john-h-k opened 4 years ago
Can confirm same issue with Roslyn in dotnet sdk 5.0.100 (RTM).
Fragment of the code to generate docs:
/// <summary>
/// Pushes a given C# function pointer with native Cdecl calling convention onto the Lua stack.
/// </summary>
/// <remarks>
/// Function which pointer is pushed onto the Lua stack must conform lua_CFunction specification as described here: https://www.lua.org/pil/26.1.html
/// </remarks>
/// <param name="function_pointer">C# function pointer with native calling convention Cdecl.</param>
public unsafe void PushCFunction(delegate* unmanaged[Cdecl]<IntPtr, int> function_pointer);
Resulting XML docs:
<member name="M:GmodNET.API.ILua.PushCFunction()">
<summary>
Pushes a given C# function pointer with native Cdecl calling convention onto the Lua stack.
</summary>
<remarks>
Function which pointer is pushed onto the Lua stack must conform lua_CFunction specification as described here: https://www.lua.org/pil/26.1.html
</remarks>
<param name="function_pointer">C# function pointer with native calling convention Cdecl.</param>
</member>
https://github.com/dotnet/roslyn/issues/48363 is about defining the DocID format. Implementation will be easy once the DocID is defined.
Version Used: Latest public preview
Steps to Reproduce:
Expected Behavior: Function pointers are encoded in the XML, or at least compiler provides a warning
Actual Behavior: Function pointers are not encoded in the metadata and simply vanish,, no warning or messages are provided, e.g the XML output for above is