Parser\LanguageParser_Patterns.cs (15)
53private PatternSyntax ParsePattern(Precedence precedence, bool afterIs = false, bool inSwitchArmPattern = false)
58private PatternSyntax ParseDisjunctivePattern(Precedence precedence, bool afterIs, bool inSwitchArmPattern)
104private PatternSyntax ParseConjunctivePattern(Precedence precedence, bool afterIs, bool inSwitchArmPattern)
158private PatternSyntax ParseNegatedPattern(Precedence precedence, bool afterIs, bool inSwitchArmPattern)
172private PatternSyntax ParsePrimaryPattern(Precedence precedence, bool afterIs, bool inSwitchArmPattern)
209Debug.Assert(precedence < Precedence.Shift);
212this.ParseSubExpression(Precedence.Relational));
242bool CanTokenFollowTypeInPattern(Precedence precedence)
269private PatternSyntax? ParsePatternContinued(TypeSyntax? type, Precedence precedence, bool inSwitchArmPattern)
438var pattern = ParsePattern(Precedence.Conditional, inSwitchArmPattern: true);
507PatternSyntax pattern = ParsePattern(Precedence.Conditional);
516pattern = ParsePattern(Precedence.Conditional);
596var pattern = ParsePattern(Precedence.Coalescing, inSwitchArmPattern: true);
606ParseWhenClause(Precedence.Coalescing),
642static @this => @this.ParsePattern(Precedence.Conditional),