56 references to RelationalPattern
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
331
currentToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.
RelationalPattern
||
332
previousToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.
RelationalPattern
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
131
public int? RelationalPattern => (int)SyntaxKind.
RelationalPattern
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1448
leftToken.Parent.IsKind(SyntaxKind.
RelationalPattern
))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Semantics\PatternMatchingTests3.cs (12)
4219
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4226
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4245
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4252
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4277
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4284
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4453
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4460
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4479
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4486
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4511
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
4518
Assert.Equal(SyntaxKind.
RelationalPattern
, pattern.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (36)
Parsing\LambdaParameterParsingTests.cs (2)
3677
N(SyntaxKind.
RelationalPattern
);
3714
N(SyntaxKind.
RelationalPattern
);
Parsing\PatternParsingTests.cs (31)
8706
N(SyntaxKind.
RelationalPattern
);
8723
N(SyntaxKind.
RelationalPattern
);
8740
N(SyntaxKind.
RelationalPattern
);
8757
N(SyntaxKind.
RelationalPattern
);
8774
N(SyntaxKind.
RelationalPattern
);
8791
N(SyntaxKind.
RelationalPattern
);
8880
N(SyntaxKind.
RelationalPattern
);
8921
N(SyntaxKind.
RelationalPattern
);
8962
N(SyntaxKind.
RelationalPattern
);
9039
N(SyntaxKind.
RelationalPattern
);
9064
N(SyntaxKind.
RelationalPattern
);
9089
N(SyntaxKind.
RelationalPattern
);
9143
N(SyntaxKind.
RelationalPattern
);
9183
N(SyntaxKind.
RelationalPattern
);
9227
N(SyntaxKind.
RelationalPattern
);
9853
N(SyntaxKind.
RelationalPattern
);
9862
N(SyntaxKind.
RelationalPattern
);
9874
N(SyntaxKind.
RelationalPattern
);
9883
N(SyntaxKind.
RelationalPattern
);
9972
N(SyntaxKind.
RelationalPattern
);
11110
N(SyntaxKind.
RelationalPattern
);
11167
N(SyntaxKind.
RelationalPattern
);
11231
N(SyntaxKind.
RelationalPattern
);
11381
N(SyntaxKind.
RelationalPattern
);
11427
N(SyntaxKind.
RelationalPattern
);
11495
N(SyntaxKind.
RelationalPattern
);
11504
N(SyntaxKind.
RelationalPattern
);
11521
N(SyntaxKind.
RelationalPattern
);
11530
N(SyntaxKind.
RelationalPattern
);
11579
N(SyntaxKind.
RelationalPattern
);
11591
N(SyntaxKind.
RelationalPattern
);
Parsing\PatternParsingTests_ListPatterns.cs (2)
364
N(SyntaxKind.
RelationalPattern
);
1087
N(SyntaxKind.
RelationalPattern
);
Parsing\PatternParsingTests2.cs (1)
622
N(SyntaxKind.
RelationalPattern
);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
331
currentToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.
RelationalPattern
||
332
previousToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.
RelationalPattern
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
131
public int? RelationalPattern => (int)SyntaxKind.
RelationalPattern
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1448
leftToken.Parent.IsKind(SyntaxKind.
RelationalPattern
))