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