31 references to Type
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Constraints.cs (1)
255
var typeSyntax = typeConstraintSyntax.
Type
;
Binder\LocalScopeBinder.cs (1)
247
typeConstraint.
Type
.VisitRankSpecifiers((rankSpecifier, args) =>
Syntax.xml.Main.Generated.cs (1)
2038
=> node.Update((TypeSyntax?)Visit(node.
Type
) ?? throw new ArgumentNullException("type"));
Syntax.xml.Syntax.Generated.cs (1)
11839
if (type != this.
Type
)
Syntax\SyntaxFacts.cs (1)
164
return ((TypeConstraintSyntax)parent).
Type
== node;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
44
if (constraint.
Type
is not IdentifierNameSyntax { Identifier.IsMissing: true } type)
93
constraintSyntax.
Type
, newType
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
102
identifier.Parent is TypeConstraintSyntax typeConstraint && typeConstraint.
Type
== identifier &&
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
44
if (constraint.
Type
is not IdentifierNameSyntax { Identifier.IsMissing: true } type)
93
constraintSyntax.
Type
, newType
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (20)
Generated\Syntax.Test.xml.Generated.cs (2)
13345
Assert.NotNull(node.
Type
);
13346
var newNode = node.WithType(node.
Type
);
Parsing\DeclarationParsingTests.cs (18)
1134
Assert.NotNull(bound.
Type
);
1135
Assert.Equal("c", bound.
Type
.ToString());
1175
Assert.NotNull(bound.
Type
);
1176
Assert.Equal("c", bound.
Type
.ToString());
1370
Assert.NotNull(typeBound.
Type
);
1371
Assert.Equal("c", typeBound.
Type
.ToString());
1419
Assert.NotNull(typeBound.
Type
);
1420
Assert.Equal("c", typeBound.
Type
.ToString());
1474
Assert.NotNull(typeBound.
Type
);
1475
Assert.Equal("c", typeBound.
Type
.ToString());
1485
Assert.True(bound.
Type
.IsMissing);
1520
Assert.NotNull(typeBound.
Type
);
1521
Assert.Equal("c", typeBound.
Type
.ToString());
1529
Assert.True(bound.
Type
.IsMissing);
1575
Assert.NotNull(typeBound.
Type
);
1576
Assert.Equal("e", typeBound.
Type
.ToString());
3447
Assert.NotNull(typeBound.
Type
);
3448
Assert.Equal("d", typeBound.
Type
.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
1211
nodeToSpeculate = typeConstraint.
Type
;