Roslyn api for identifying a subpattern #75512
-
The following switch statement: switch (x)
{
case object o:
break;
case int i:
break;
} gives an error on Is there a publicly available method in Roslyn/Microsoft.CodeAnalysis.CSharp that, similarly to the example above, lets me know if pattern A is a subpattern of pattern B? Can you help me with this? I'm building a very cool analyzer that you guys are all going to love! Well, maybe not really but can you still help me please? A huge thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is no public API to identify pattern subsumption at this time. |
Beta Was this translation helpful? Give feedback.
There is no public API to identify pattern subsumption at this time.