38 references to ClassConstraint
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
133
case SyntaxKind.
ClassConstraint
:
Parser\LanguageParser.cs (1)
1953
SyntaxKind.
ClassConstraint
,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
TokenBasedFormattingRule.cs (1)
458
currentToken.Parent is (kind: SyntaxKind.NullableType or SyntaxKind.
ClassConstraint
))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ITypeParameterSymbolExtensions.cs (1)
42
constraints.Add(SyntaxFactory.ClassOrStructConstraint(SyntaxKind.
ClassConstraint
));
MethodGenerator.cs (1)
23
private static readonly TypeParameterConstraintSyntax s_classConstraint = SyntaxFactory.ClassOrStructConstraint(SyntaxKind.
ClassConstraint
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Generated\Syntax.Test.xml.Generated.cs (2)
527
=> InternalSyntaxFactory.ClassOrStructConstraint(SyntaxKind.
ClassConstraint
, InternalSyntaxFactory.Token(SyntaxKind.ClassKeyword), null);
10503
=> SyntaxFactory.ClassOrStructConstraint(SyntaxKind.
ClassConstraint
, SyntaxFactory.Token(SyntaxKind.ClassKeyword), default(SyntaxToken));
Parsing\DeclarationParsingTests.cs (14)
1279
Assert.Equal(SyntaxKind.
ClassConstraint
, cs.ConstraintClauses[0].Constraints[0].Kind());
1362
Assert.Equal(SyntaxKind.
ClassConstraint
, cs.ConstraintClauses[0].Constraints[0].Kind());
1567
Assert.Equal(SyntaxKind.
ClassConstraint
, cs.ConstraintClauses[0].Constraints[0].Kind());
7009
N(SyntaxKind.
ClassConstraint
);
7095
N(SyntaxKind.
ClassConstraint
);
7187
N(SyntaxKind.
ClassConstraint
);
9100
N(SyntaxKind.
ClassConstraint
);
9172
N(SyntaxKind.
ClassConstraint
);
10301
N(SyntaxKind.
ClassConstraint
);
10363
N(SyntaxKind.
ClassConstraint
);
10440
N(SyntaxKind.
ClassConstraint
);
11084
N(SyntaxKind.
ClassConstraint
);
11146
N(SyntaxKind.
ClassConstraint
);
11219
N(SyntaxKind.
ClassConstraint
);
Parsing\MemberDeclarationParsingTests.cs (1)
9536
N(SyntaxKind.
ClassConstraint
);
Parsing\RecordParsing.cs (12)
479
N(SyntaxKind.
ClassConstraint
);
523
N(SyntaxKind.
ClassConstraint
);
568
N(SyntaxKind.
ClassConstraint
);
581
N(SyntaxKind.
ClassConstraint
);
622
N(SyntaxKind.
ClassConstraint
);
667
N(SyntaxKind.
ClassConstraint
);
680
N(SyntaxKind.
ClassConstraint
);
735
N(SyntaxKind.
ClassConstraint
);
936
N(SyntaxKind.
ClassConstraint
);
981
N(SyntaxKind.
ClassConstraint
);
1029
N(SyntaxKind.
ClassConstraint
);
4076
N(SyntaxKind.
ClassConstraint
);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1856
constraints = constraints.Insert(0, SyntaxFactory.ClassOrStructConstraint(isReferenceType ? SyntaxKind.
ClassConstraint
: SyntaxKind.StructConstraint));
ITypeParameterSymbolExtensions.cs (1)
42
constraints.Add(SyntaxFactory.ClassOrStructConstraint(SyntaxKind.
ClassConstraint
));
MethodGenerator.cs (1)
23
private static readonly TypeParameterConstraintSyntax s_classConstraint = SyntaxFactory.ClassOrStructConstraint(SyntaxKind.
ClassConstraint
);
TokenBasedFormattingRule.cs (1)
458
currentToken.Parent is (kind: SyntaxKind.NullableType or SyntaxKind.
ClassConstraint
))