This seems a fairly stupid question and I'm not sure it is suitable for StackOverflow.
A user of my tool has reported an error with the message
Unable to cast object of type
'Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax' to type
'Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax'.
I don't know exactly what his code looks like (at least not yet). I might be able to reproduce the error if I could write some code containing a PatternSyntax.
My problem is, that I haven't a clue what language construct in C# generates a syntax node of type PatternSyntax.
Can anybody help me with an example?