On occasions one can have #pragma's in unexpected locations, like when you have a CA1001 warning and resolve it by adding pragmas.
You end up having the following construct:
namespace somespace {
#pragma warning disable CA1001 // Types that own disposable fields should be disposable
public sealed class SomeClass
#pragma warning restore CA1001 // This class is never disposed
{
// ... lots of methods here
}
}
Now fast forward to Alt+M ... only the namespace shows up in the navbar, no class, no methods.
Remove the second pragma, and all goes back to normal.