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

`ref` modifier appears to be removed from `struct` types

Open BillWagner opened this issue 7 years ago • 6 comments

See more details in dotnet/docs#5208

There are couple important points here:

  • For types (like Span<T>) that are ref struct types, the ref modifier is missing.
  • When a method signature returns a ref T, the ref T modifier is missing.

BillWagner avatar May 25 '18 16:05 BillWagner

A similar problem happens for ref readonly struct declarations.

BillWagner avatar Jun 22 '18 16:06 BillWagner

For the second point, that will be addressed in the next release by the resolution to https://github.com/mono/api-doc-tools/issues/249

joelmartinez avatar Aug 09 '18 14:08 joelmartinez

@joelmartinez should I add a new issue or just include the conditions from https://github.com/MicrosoftDocs/feedback/issues/468 here too given this one is still open?

mairaw avatar Feb 22 '19 07:02 mairaw

@mairaw Yeah, a new issue would be ideal, so we can keep the scope of each issue a bit more focused. This one will be for the ref struct, and the new one will address the indexer ref scenario

joelmartinez avatar Feb 22 '19 14:02 joelmartinez

OK, filed a new one for the indexers then: https://github.com/mono/api-doc-tools/issues/422

mairaw avatar Feb 23 '19 01:02 mairaw

Internal bug logged.

mimisasouvanh avatar Jan 24 '20 19:01 mimisasouvanh