4 implementations of HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationTypeParameterSymbol.cs (1)
16public bool HasReferenceTypeConstraint { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
87bool ITypeParameterSymbol.HasReferenceTypeConstraint => _underlying.HasReferenceTypeConstraint;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeParameterSymbol.vb (1)
316Public MustOverride ReadOnly Property HasReferenceTypeConstraint As Boolean Implements ITypeParameterSymbol.HasReferenceTypeConstraint
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationTypeParameterSymbol.cs (1)
16public bool HasReferenceTypeConstraint { get; }
36 references to HasReferenceTypeConstraint
Microsoft.CodeAnalysis (1)
Symbols\ITypeParameterSymbol.cs (1)
51/// If <see cref="HasReferenceTypeConstraint"/> is true, returns the top-level nullability of the
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
833typeParam.HasReferenceTypeConstraint || typeParam.HasValueTypeConstraint || 862if (typeParam.HasReferenceTypeConstraint)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
150instance is { Type: ITypeParameterSymbol { HasReferenceTypeConstraint: false } };
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
83!typeParameter.HasReferenceTypeConstraint)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ITypeParameterSymbolExtensions.cs (1)
40if (typeParameter.HasReferenceTypeConstraint)
MethodGenerator.cs (1)
233{ HasReferenceTypeConstraint: true } => s_classConstraint,
Microsoft.CodeAnalysis.CSharp.Features (4)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
150instance is { Type: ITypeParameterSymbol { HasReferenceTypeConstraint: false } };
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
83!typeParameter.HasReferenceTypeConstraint)
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
247if (typeParam.HasReferenceTypeConstraint) 296typeParam.HasReferenceTypeConstraint || typeParam.HasValueTypeConstraint;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
176if (typeParameter.HasReferenceTypeConstraint)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
ITypeParameterSymbolExtensions.cs (1)
40if (typeParameter.HasReferenceTypeConstraint)
MethodGenerator.cs (1)
233{ HasReferenceTypeConstraint: true } => s_classConstraint,
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2327oldParameter.HasReferenceTypeConstraint == newParameter.HasReferenceTypeConstraint &&
ExtractMethod\MethodExtractor.Analyzer.cs (1)
875!parameter.HasReferenceTypeConstraint &&
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
339parameter.HasConstructorConstraint, parameter.HasReferenceTypeConstraint, parameter.HasUnmanagedTypeConstraint,
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
77hasReferenceConstraint: typeParameter.HasReferenceTypeConstraint,
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (1)
387var condition3 = typeParameter.HasReferenceTypeConstraint && typeParameter.ConstraintTypes.Any(static ts => ts.IsReferenceType && ts.SpecialType != SpecialType.System_Object);
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
523Return If(typeParam.HasReferenceTypeConstraint, 1, 0) + 549If typeParam.HasReferenceTypeConstraint Then
Symbols\TypeParameterSymbol.vb (1)
316Public MustOverride ReadOnly Property HasReferenceTypeConstraint As Boolean Implements ITypeParameterSymbol.HasReferenceTypeConstraint
Microsoft.CodeAnalysis.VisualBasic.Features (2)
SignatureHelp\GenericNameSignatureHelpProvider.vb (2)
178If typeParam.HasReferenceTypeConstraint Then 214Return If(typeParam.HasReferenceTypeConstraint, 1, 0) +
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\TypeParameterGenerator.vb (1)
25If symbol.HasReferenceTypeConstraint Then
Microsoft.CodeAnalysis.Workspaces (5)
Editing\SyntaxGenerator.cs (2)
884| (tp.HasReferenceTypeConstraint ? SpecialTypeConstraintKind.ReferenceType : SpecialTypeConstraintKind.None) 895=> typeParameter.HasConstructorConstraint || typeParameter.HasReferenceTypeConstraint || typeParameter.HasValueTypeConstraint || typeParameter.ConstraintTypes.Length > 0;
Shared\Extensions\IMethodSymbolExtensions.cs (1)
136typeParameter.HasReferenceTypeConstraint,
Shared\Utilities\SignatureComparer.cs (2)
225typeParameter1.HasReferenceTypeConstraint != typeParameter2.HasReferenceTypeConstraint ||
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ObjectBrowser\DescriptionBuilder.cs (2)
344!typeParameterSymbol.HasReferenceTypeConstraint && 358if (typeParameterSymbol.HasReferenceTypeConstraint)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
ObjectBrowser\DescriptionBuilder.vb (3)
449If typeParameter.HasReferenceTypeConstraint Then 466If typeParameter.HasReferenceTypeConstraint Then 506If typeParameter.HasReferenceTypeConstraint Then