10 references to Pattern
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Semantics\PatternMatchingTests.cs (10)
4982
return "not " +
Pattern
(d - 1);
4984
return "(" +
Pattern
(d - 1) + ")";
4988
return
Pattern
(d - 1) + " and " +
Pattern
(d - 1);
4990
return
Pattern
(d - 1) + " or " +
Pattern
(d - 1);
4992
return ".." + (r.Next(2) == 0 ?
Pattern
(d - 1) : null);
5017
return string.Join(", ", Enumerable.Range(0, r.Next(3)).Select(i => $"{(propNames ? $"P{r.Next(10)}: " : null)}{
Pattern
(d)}"));
5034
statement.Append($"if ({Expression()} is {
Pattern
()}) {{}}");
5043
statement.AppendLine($" case {
Pattern
()}:");