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)
5172
if (whenKeyword != this.
WhenKeyword
|| condition != this.Condition)
5183
public WhenClauseSyntax WithCondition(ExpressionSyntax condition) => Update(this.
WhenKeyword
, condition);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2371
if (previousToken.HasValue && previousToken.Value != whenClause.
WhenKeyword
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
12143
Assert.Equal(SyntaxKind.WhenKeyword, node.
WhenKeyword
.Kind());
12145
var newNode = node.WithWhenKeyword(node.
WhenKeyword
).WithCondition(node.Condition);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2371
if (previousToken.HasValue && previousToken.Value != whenClause.
WhenKeyword
)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2371
if (previousToken.HasValue && previousToken.Value != whenClause.
WhenKeyword
)