SymbolDisplayVisitor
doesn't correctly classify function pointer calling conventions
#70746
Labels
SymbolDisplayVisitor
doesn't correctly classify function pointer calling conventions
#70746
There are four calling conventions that are special-cased and hard coded in the compiler implementation. They don't necessarily represent classes.
roslyn/src/Compilers/CSharp/Portable/SymbolDisplay/SymbolDisplayVisitor.Members.cs
Lines 593 to 604 in eba055a
roslyn/src/Compilers/CSharp/Portable/Symbols/FunctionPointers/FunctionPointerMethodSymbol.cs
Lines 147 to 154 in 7ba92d6
While the BCL have corresponding classes, e.g,
System.Runtime.CompilerServices.CallConvCdecl
. The language rules don't seem to require these classes to exist, so IMO these are more like keywords not class names.This issue is opened as the first step towards getting #59052.
The text was updated successfully, but these errors were encountered: