8 references to WhenKeyword
Microsoft.CodeAnalysis.CSharp (3)
Syntax.xml.Main.Generated.cs (1)
1768=> node.Update(VisitToken(node.WhenKeyword), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"));
Syntax.xml.Syntax.Generated.cs (2)
5172if (whenKeyword != this.WhenKeyword || condition != this.Condition) 5183public WhenClauseSyntax WithCondition(ExpressionSyntax condition) => Update(this.WhenKeyword, condition);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2371if (previousToken.HasValue && previousToken.Value != whenClause.WhenKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
12143Assert.Equal(SyntaxKind.WhenKeyword, node.WhenKeyword.Kind()); 12145var newNode = node.WithWhenKeyword(node.WhenKeyword).WithCondition(node.Condition);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2371if (previousToken.HasValue && previousToken.Value != whenClause.WhenKeyword)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2371if (previousToken.HasValue && previousToken.Value != whenClause.WhenKeyword)