Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@controlflow
Created March 6, 2019 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save controlflow/12686430a09e6eef318ea6163d2bf850 to your computer and use it in GitHub Desktop.
Save controlflow/12686430a09e6eef318ea6163d2bf850 to your computer and use it in GitHub Desktop.
case IRecursivePattern recursivePattern
when recursivePattern.TypeUsage == null
&& recursivePattern.DeconstructionPatternClause == null
&& recursivePattern.PropertyPatternClause is IPropertyPatternClause patternPropertyPatternClause
&& patternPropertyPatternClause.PatternsEnumerable.IsEmpty()
&& recursivePattern.Designation == null
&& !recursivePattern.ContainsPreprocessorDirectives():
{
}
case IRecursivePattern {
TypeUsage: null,
DeconstructionPatternClause: null,
PropertyPatternClause: { Patterns: { Count: 0 } }
Designation: null
} recursivePattern
when !recursivePattern.ContainsPreprocessorDirectives():
{
}
case IRecursivePattern(null, null, { Patterns: { Count: 0 } }, null) recursivePattern
when !recursivePattern.ContainsPreprocessorDirectives():
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment