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