26 references to ExpressionColon
Microsoft.CodeAnalysis.CSharp (14)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1809=> node.Update((BaseExpressionColonSyntax?)Visit(node.ExpressionColon), (PatternSyntax?)Visit(node.Pattern) ?? throw new ArgumentNullException("pattern"));
_generated\2\Syntax.xml.Syntax.Generated.cs (2)
5602if (expressionColon != this.ExpressionColon || pattern != this.Pattern) 5613public SubpatternSyntax WithPattern(PatternSyntax pattern) => Update(this.ExpressionColon, pattern);
Binder\Binder_Patterns.cs (10)
1710else if (subPattern.ExpressionColon != null) 1712MessageID.IDS_FeatureExtendedPropertyPatterns.CheckFeatureAvailability(diagnostics, subPattern.ExpressionColon.ColonToken); 1714diagnostics.Add(ErrorCode.ERR_IdentifierExpected, subPattern.ExpressionColon.Expression.Location); 1747else if (subpatternSyntax.ExpressionColon != null) 1749diagnostics.Add(ErrorCode.ERR_IdentifierExpected, subpatternSyntax.ExpressionColon.Expression.Location); 1792else if (subpatternSyntax.ExpressionColon != null) 1794diagnostics.Add(ErrorCode.ERR_IdentifierExpected, subpatternSyntax.ExpressionColon.Expression.Location); 2130if (p.ExpressionColon is ExpressionColonSyntax) 2131MessageID.IDS_FeatureExtendedPropertyPatterns.CheckFeatureAvailability(diagnostics, p.ExpressionColon.ColonToken); 2133ExpressionSyntax? expr = p.ExpressionColon?.Expression;
Syntax\SubpatternSyntax.cs (1)
11public NameColonSyntax? NameColon => ExpressionColon as NameColonSyntax;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\SimplifyPropertyPatternHelpers.cs (2)
26ExpressionColon: { } outer, 35subpatterns[0] is { ExpressionColon: { } inner } &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
69var innerExpressionColon = innerSubpattern.ExpressionColon;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1550subpattern.ExpressionColon != null) 1554foreach (var symbol in this.SemanticModel.GetSymbolInfo(subpattern.ExpressionColon.Expression).GetAllSymbols())
Microsoft.CodeAnalysis.CSharp.Features (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\SimplifyPropertyPatternHelpers.cs (2)
26ExpressionColon: { } outer, 35subpatterns[0] is { ExpressionColon: { } inner } &&
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
69var innerExpressionColon = innerSubpattern.ExpressionColon;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1550subpattern.ExpressionColon != null) 1554foreach (var symbol in this.SemanticModel.GetSymbolInfo(subpattern.ExpressionColon.Expression).GetAllSymbols())
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1550subpattern.ExpressionColon != null) 1554foreach (var symbol in this.SemanticModel.GetSymbolInfo(subpattern.ExpressionColon.Expression).GetAllSymbols())