251 references to TypeParameter
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
ILLink.RoslynAnalyzer (2)
CompilationExtensions.cs (1)
93 case SymbolKind.TypeParameter:
TrimAnalysis\SingleValueExtensions.cs (1)
30 SymbolKind.TypeParameter => new GenericParameterValue ((ITypeParameterSymbol) type),
Microsoft.CodeAnalysis (1)
Symbols\SymbolKindExtensions.cs (1)
47case SymbolKind.TypeParameter:
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
44case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
128case SymbolKind.TypeParameter: 192if (typeArg.Kind != SymbolKind.TypeParameter &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
614case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
136private static readonly SymbolKindOrTypeKind _typeParameter = new(SymbolKind.TypeParameter); 428case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
168case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
498if (symbol.Kind == SymbolKind.TypeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1040if (receiverType.IsKind(SymbolKind.TypeParameter) && !receiverType.IsReferenceType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
132SymbolKind.TypeParameter => TypeParametersAreEquivalent((ITypeParameterSymbol)x, (ITypeParameterSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
73SymbolKind.TypeParameter => CombineHashCodes((ITypeParameterSymbol)x, currentHash),
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
549if (parameterType.Kind == SymbolKind.TypeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
49public override SymbolKind Kind => SymbolKind.TypeParameter;
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\NamingStyles\NamingStylesTestOptionSets.cs (1)
645ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.TypeParameter)),
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Attributes.cs (1)
949case SymbolKind.TypeParameter:
Binder\Binder_Crefs.cs (3)
101if ((object?)containerOpt != null && containerOpt.Kind == SymbolKind.TypeParameter) 703if (symbol.Kind == SymbolKind.TypeParameter) 718else if (symbol.Kind == SymbolKind.TypeParameter)
Binder\Binder_Expressions.cs (2)
1412if (type.IsUnboundGenericType() || type.Kind == SymbolKind.TypeParameter) 2160case SymbolKind.TypeParameter:
Binder\Binder_Patterns.cs (1)
561if (strippedInputType.Kind is not SymbolKind.ErrorType and not SymbolKind.DynamicType and not SymbolKind.TypeParameter &&
Binder\Binder_Symbols.cs (2)
964case SymbolKind.TypeParameter: 1327if (((object)qualifierOpt != null) && (qualifierOpt.Kind == SymbolKind.TypeParameter))
Binder\Binder_XmlNameAttribute.cs (1)
45Debug.Assert(lookupSymbols[0].Kind == SymbolKind.TypeParameter || lookupSymbols[0].Kind == SymbolKind.Parameter);
Binder\InMethodBinder.cs (3)
278case SymbolKind.TypeParameter: 289if (parameterKind == SymbolKind.TypeParameter) 306case SymbolKind.TypeParameter:
Binder\LocalScopeBinder.cs (1)
525case SymbolKind.TypeParameter:
Binder\Semantics\AccessCheck.cs (3)
79case SymbolKind.TypeParameter: 187case SymbolKind.TypeParameter: 239if (typeArg.Type.Kind != SymbolKind.TypeParameter && !IsSymbolAccessibleCore(typeArg.Type, within, null, out unused, compilation, ref useSiteInfo, basesBeingResolved))
Binder\WithLambdaParametersBinder.cs (1)
143case SymbolKind.TypeParameter:
Compilation\CSharpCompilation.cs (1)
4721case SymbolKind.TypeParameter:
Compilation\SyntaxTreeSemanticModel.cs (1)
259Debug.Assert(symbols.All(s => s.Kind == SymbolKind.TypeParameter || s.Kind == SymbolKind.Parameter));
Compiler\DocumentationCommentCompiler.cs (1)
1204Debug.Assert(referencedSymbol.Kind == SymbolKind.TypeParameter);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
769case SymbolKind.TypeParameter:
Emitter\Model\PEModuleBuilder.cs (1)
1157case SymbolKind.TypeParameter:
FlowAnalysis\NullableWalker.cs (1)
7473return (type.Kind == SymbolKind.TypeParameter && !type.IsReferenceType) || type.IsNullableTypeOrTypeParameter();
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2101if (exprType.Kind == SymbolKind.TypeParameter)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
691refKind = rewrittenReceiver.Type.IsValueType || rewrittenReceiver.Type.Kind == SymbolKind.TypeParameter ? RefKind.Ref : RefKind.None;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
203var variableRepresentsLocation = rewrittenReceiver.Type.IsValueType || rewrittenReceiver.Type.Kind == SymbolKind.TypeParameter;
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
84if (argumentType.Kind == SymbolKind.TypeParameter)
Lowering\SyntheticBoundNodeFactory.cs (1)
1773if (exprType.Kind == SymbolKind.TypeParameter)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
811if (typeArg.Kind == SymbolKind.TypeParameter) 849if (typeArg.Kind == SymbolKind.TypeParameter)
Symbols\AbstractTypeMap.cs (1)
104case SymbolKind.TypeParameter:
Symbols\Compilation_WellKnownMembers.cs (2)
1187if (type.Kind != SymbolKind.TypeParameter) 1201if (type.Kind != SymbolKind.TypeParameter)
Symbols\MemberSymbolExtensions.cs (1)
226case SymbolKind.TypeParameter:
Symbols\Metadata\PE\MetadataDecoder.cs (1)
218case SymbolKind.TypeParameter:
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
164case SymbolKind.TypeParameter:
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
647case SymbolKind.TypeParameter:
Symbols\Symbol.cs (2)
646case SymbolKind.TypeParameter: 1670case SymbolKind.TypeParameter:
Symbols\Symbol_Attributes.cs (1)
106case SymbolKind.TypeParameter:
Symbols\SymbolDistinguisher.cs (1)
65case SymbolKind.TypeParameter:
Symbols\SymbolExtensions.cs (1)
276case SymbolKind.TypeParameter:
Symbols\SymbolKindExtensions.cs (1)
24case SymbolKind.TypeParameter:
Symbols\TypeParameterSymbol.cs (1)
191return SymbolKind.TypeParameter;
Symbols\TypeUnification.cs (2)
182case SymbolKind.TypeParameter: 292case SymbolKind.TypeParameter:
Symbols\VarianceSafety.cs (1)
303case SymbolKind.TypeParameter:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
660if (returnType.Kind == SymbolKind.TypeParameter) 662if (inferredType.Kind != SymbolKind.TypeParameter)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (2)
239[InlineData("class M<[|t|]> {}", "class M<T> {}", SymbolKind.TypeParameter, Accessibility.Private)] 240[InlineData("void M<[|t|]>() {}", "void M<T>() {}", SymbolKind.TypeParameter, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests_NameDeclarationInfoTests.cs (2)
378new SymbolKindOrTypeKind(SymbolKind.TypeParameter)); 390new SymbolKindOrTypeKind(SymbolKind.TypeParameter));
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (3)
342[InlineData("type_parameter", new object[] { SymbolKind.TypeParameter })] 344[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 345[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })]
SymbolKey\SymbolKeyTestBase.cs (1)
163kinds.Add(SymbolKind.TypeParameter);
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
422[new SymbolKindOrTypeKind(SymbolKind.TypeParameter)], 637SymbolKind.TypeParameter => Glyph.TypeParameter,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (2)
239[InlineData("class M<[|t|]> {}", "class M<T> {}", SymbolKind.TypeParameter, Accessibility.Private)] 240[InlineData("void M<[|t|]>() {}", "void M<T>() {}", SymbolKind.TypeParameter, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\LocalFunctionTests.cs (10)
6450Assert.Equal(SymbolKind.TypeParameter, symbol.Kind); 6491Assert.Equal(SymbolKind.TypeParameter, symbol.Kind); 6494Assert.Equal(SymbolKind.TypeParameter, symbol.Kind); 6497Assert.Equal(SymbolKind.TypeParameter, symbol.Kind); 6538Assert.Equal(SymbolKind.TypeParameter, symbol.Kind); 6541Assert.Equal(SymbolKind.TypeParameter, symbol.Kind); 6544Assert.Equal(SymbolKind.TypeParameter, symbol.Kind); 7373Assert.Equal(SymbolKind.TypeParameter, symbolInfo.Symbol.Kind); 7635private void VerifyTParameter(CSharpCompilation comp, int index, string expectedContainer, bool findAnyways = false, string lookupFinds = "TParameter", SymbolKind symbolKind = SymbolKind.TypeParameter) 7656Assert.Equal(SymbolKind.TypeParameter, typeInfo.Type.Kind);
Semantics\LookupTests.cs (7)
1843Assert.True(symbols.Any(s => s.Kind == SymbolKind.TypeParameter)); 1865Assert.False(symbols.Any(s => s.Kind == SymbolKind.TypeParameter)); 1887Assert.False(symbols.Any(s => s.Kind == SymbolKind.TypeParameter)); 1910Assert.False(symbols.Any(s => s.Kind == SymbolKind.TypeParameter)); 1932Assert.False(symbols.Any(s => s.Kind == SymbolKind.TypeParameter)); 1955Assert.True(symbols.Any(s => s.Kind == SymbolKind.TypeParameter)); 1986Assert.True(symbols.Any(s => s.Kind == SymbolKind.TypeParameter));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\GetSemanticInfoTests.cs (1)
1612Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
970Assert.Equal(SymbolKind.TypeParameter, ptsym.Kind);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
12297Assert.Equal(SymbolKind.TypeParameter, sortedCandidates[0].Kind);
DocumentationComments\DocumentationCommentIDTests.cs (1)
326Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (1)
72Assert.Equal(SymbolKind.TypeParameter, varC1_T.Kind);
Symbols\Retargeting\RetargetingTests.cs (2)
1188case SymbolKind.TypeParameter: 1313case SymbolKind.TypeParameter:
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
NullableAttributesVisitor.cs (1)
104case SymbolKind.TypeParameter:
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
741if (symbol.Kind is SymbolKind.NamedType or SymbolKind.Namespace or SymbolKind.TypeParameter)
Rename\CSharpRenameRewriterLanguageService.cs (1)
898else if (renamedSymbol.Kind == SymbolKind.TypeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
660if (returnType.Kind == SymbolKind.TypeParameter) 662if (inferredType.Kind != SymbolKind.TypeParameter)
Microsoft.CodeAnalysis.Features (6)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
107symbol.IsKind(SymbolKind.TypeParameter))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
329SymbolKind.TypeParameter => FeaturesResources.type_parameter,
ExtractMethod\MethodExtractor.Analyzer.cs (1)
795foreach (var pair in symbolMap.Where(p => p.Key.Kind == SymbolKind.TypeParameter))
Shared\Extensions\ISymbolExtensions_2.cs (1)
156case SymbolKind.TypeParameter:
Shared\Utilities\ExtractTypeHelpers.cs (1)
238type.Kind != SymbolKind.TypeParameter &&
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
549if (parameterType.Kind == SymbolKind.TypeParameter)
Microsoft.CodeAnalysis.VisualBasic (70)
Binding\Binder_Attributes.vb (1)
181ElseIf symbol.Kind = SymbolKind.TypeParameter Then
Binding\Binder_Expressions.vb (1)
3339Case SymbolKind.TypeParameter
Binding\Binder_Lookup.vb (1)
187Case SymbolKind.TypeParameter, SymbolKind.Namespace
Binding\Binder_Statements.vb (2)
1889Case SymbolKind.TypeParameter 4092collectionType.Kind <> SymbolKind.TypeParameter) Then
Binding\DocumentationCommentTypeParamRefBinder.vb (1)
47If symbol.Kind = SymbolKind.TypeParameter Then
Binding\ForOrForEachBlockBinder.vb (1)
89result.Symbols(0).Kind <> SymbolKind.TypeParameter) Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
431needDiagnostic = bindResult(0).Kind <> SymbolKind.TypeParameter
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
654If symbol.Kind = SymbolKind.TypeParameter Then
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
189If symbol.Kind = SymbolKind.TypeParameter Then
Compilation\SyntaxTreeSemanticModel.vb (2)
527SymbolKind.TypeParameter, 617If symbol.Kind = SymbolKind.TypeParameter Then
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (1)
497Case SymbolKind.TypeParameter
Emit\SymbolTranslator.vb (1)
258Case SymbolKind.TypeParameter
Lowering\WithExpressionRewriter.vb (1)
324If Not (state.DoNotUseByRefLocal OrElse (value.Kind = BoundKind.ArrayAccess AndAlso value.Type.Kind = SymbolKind.TypeParameter)) Then
Semantics\AccessCheck.vb (4)
116Case SymbolKind.TypeParameter, SymbolKind.Parameter, SymbolKind.Local, SymbolKind.RangeVariable, 154If typeArgs(i).Kind <> SymbolKind.TypeParameter Then 496Case SymbolKind.TypeParameter 599Case SymbolKind.TypeParameter, SymbolKind.ErrorType
Semantics\Conversions.vb (25)
1911If sourceKind <> SymbolKind.TypeParameter AndAlso destinationKind <> SymbolKind.TypeParameter Then 1978Debug.Assert(src.Kind <> SymbolKind.TypeParameter) 1979Debug.Assert(dst.Kind <> SymbolKind.TypeParameter) 1995If destinationKind = SymbolKind.TypeParameter AndAlso 2017If sourceKind = SymbolKind.TypeParameter AndAlso 2051If type.Kind = SymbolKind.TypeParameter Then 3119ElseIf srcElem.Kind = SymbolKind.TypeParameter AndAlso 3120dstElem.Kind = SymbolKind.TypeParameter Then 3155ElseIf srcElem.Kind = SymbolKind.TypeParameter OrElse 3156dstElem.Kind = SymbolKind.TypeParameter Then 3188If srcElem.Kind = SymbolKind.TypeParameter OrElse 3189dstElem.Kind = SymbolKind.TypeParameter Then 3212If srcElem.Kind = SymbolKind.TypeParameter Then 3220If dstElem.Kind = SymbolKind.TypeParameter Then 3281ElseIf dstElem.Kind = SymbolKind.TypeParameter AndAlso 3284If srcElem.Kind = SymbolKind.TypeParameter Then 3307ElseIf srcElem.Kind = SymbolKind.TypeParameter AndAlso Not srcElem.IsReferenceType Then 3310If dstElem.Kind = SymbolKind.TypeParameter Then 3678If source.Kind = SymbolKind.TypeParameter Then 3686If destination.Kind = SymbolKind.TypeParameter Then 3695If source.Kind = SymbolKind.TypeParameter OrElse destination.Kind = SymbolKind.TypeParameter Then 3854If constraint.Kind = SymbolKind.TypeParameter Then 3990ElseIf constraint.Kind = SymbolKind.TypeParameter Then
Semantics\Operators.vb (3)
438ElseIf (sourceType.Kind = SymbolKind.NamedType OrElse sourceType.Kind = SymbolKind.TypeParameter) AndAlso 439(targetType.Kind = SymbolKind.NamedType OrElse targetType.Kind = SymbolKind.TypeParameter) Then 2945If type.Kind = SymbolKind.TypeParameter Then
Semantics\OverloadResolution.vb (1)
4707Case SymbolKind.TypeParameter
Semantics\TypeInference\TypeArgumentInference.vb (5)
1069Case SymbolKind.TypeParameter 1296Case SymbolKind.TypeParameter 1790If baseSearchTypeKind <> SymbolKind.NamedType AndAlso baseSearchTypeKind <> SymbolKind.TypeParameter AndAlso 1841Case SymbolKind.TypeParameter 1873Case SymbolKind.TypeParameter
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
498If typeArg.Kind = SymbolKind.TypeParameter Then
Symbols\ConstraintsHelper.vb (2)
773Case SymbolKind.TypeParameter 804Case SymbolKind.TypeParameter
Symbols\Metadata\PE\MetadataDecoder.vb (1)
195Case SymbolKind.TypeParameter
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
132SymbolKind.TypeParameter,
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
548Case SymbolKind.TypeParameter
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
666Case SymbolKind.TypeParameter
Symbols\Source\SourceMemberFieldSymbol.vb (1)
229(varType.Kind = SymbolKind.TypeParameter AndAlso varType.IsReferenceType)) Then
Symbols\Symbol.vb (1)
606SymbolKind.TypeParameter,
Symbols\Symbol_Attributes.vb (1)
125Case SymbolKind.TypeParameter
Symbols\TypeParameterSymbol.vb (1)
142Return SymbolKind.TypeParameter
Symbols\TypeSymbolExtensions.vb (2)
227Return type.Kind = SymbolKind.TypeParameter 490If this.Kind = SymbolKind.TypeParameter Then
Symbols\WellKnownMembers.vb (2)
650If type.Kind <> SymbolKind.TypeParameter Then 664If type.Kind <> SymbolKind.TypeParameter Then
Utilities\TypeUnification.vb (2)
150Case SymbolKind.TypeParameter 257Case SymbolKind.TypeParameter
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
Binders\EENamedTypeBinder.vb (2)
63If symbol.Kind = SymbolKind.TypeParameter Then 67Debug.Assert(symbols(i).Kind = SymbolKind.TypeParameter)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
796ElseIf oldSymbol.Kind = SymbolKind.TypeParameter Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (31)
DocumentationComments\DocCommentTests.vb (30)
5010Assert.Equal(SymbolKind.TypeParameter, typeParamSymInfo.CandidateSymbols.Single().Kind) 6734SymbolKind.NamedType, SymbolKind.TypeParameter), 6741SymbolKind.NamedType, SymbolKind.TypeParameter), 6748SymbolKind.NamedType, SymbolKind.TypeParameter)) 6760SymbolKind.NamedType, SymbolKind.TypeParameter), 6767SymbolKind.NamedType, SymbolKind.TypeParameter), 6774SymbolKind.NamedType, SymbolKind.TypeParameter)) 7005SymbolKind.TypeParameter)) 7064SymbolKind.TypeParameter)) 7108SymbolKind.TypeParameter), 7113SymbolKind.TypeParameter), 7118SymbolKind.TypeParameter), 7127SymbolKind.TypeParameter), 7132SymbolKind.TypeParameter), 7137SymbolKind.TypeParameter), 7170SymbolKind.TypeParameter), 7175SymbolKind.TypeParameter), 7180SymbolKind.TypeParameter), 7189SymbolKind.TypeParameter), 7194SymbolKind.TypeParameter), 7199SymbolKind.TypeParameter), 7232SymbolKind.TypeParameter, SymbolKind.Parameter), 7237SymbolKind.TypeParameter, SymbolKind.Parameter), 7242SymbolKind.TypeParameter, SymbolKind.Parameter), 7247SymbolKind.TypeParameter, SymbolKind.Parameter), 7252SymbolKind.TypeParameter, SymbolKind.Parameter), 7257SymbolKind.TypeParameter, SymbolKind.Parameter), 7347text.IndexOf("name=""X""", StringComparison.Ordinal) + 6), SymbolKind.Field, SymbolKind.TypeParameter), 7353text.IndexOf("cref=""X""", StringComparison.Ordinal) + 6), SymbolKind.Field, SymbolKind.TypeParameter), 11968If actual.Symbol IsNot Nothing AndAlso actual.Symbol.Kind = SymbolKind.TypeParameter Then ' Works everywhere since we want it to work in name attributes.
SymbolsTests\Metadata\PE\LoadingGenericTypeParameters.vb (1)
71Assert.Equal(SymbolKind.TypeParameter, C1_T.Kind)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
241Case SymbolKind.TypeParameter
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
770ElseIf renamedSymbol.Kind = SymbolKind.TypeParameter Then
Microsoft.CodeAnalysis.Workspaces (16)
FindSymbols\SymbolFinder.cs (1)
141case SymbolKind.TypeParameter:
Recommendations\AbstractRecommendationService.cs (1)
106case SymbolKind.TypeParameter:
Recommendations\AbstractRecommendationServiceRunner.cs (2)
136if (!parameterTypeSymbols.Any(static t => t.IsKind(SymbolKind.TypeParameter))) 155if (parameterTypeSymbol.IsKind<ITypeParameterSymbol>(SymbolKind.TypeParameter, out var typeParameter))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
44case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
128case SymbolKind.TypeParameter: 192if (typeArg.Kind != SymbolKind.TypeParameter &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
614case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
136private static readonly SymbolKindOrTypeKind _typeParameter = new(SymbolKind.TypeParameter); 428case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
168case SymbolKind.TypeParameter:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
498if (symbol.Kind == SymbolKind.TypeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1040if (receiverType.IsKind(SymbolKind.TypeParameter) && !receiverType.IsReferenceType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
132SymbolKind.TypeParameter => TypeParametersAreEquivalent((ITypeParameterSymbol)x, (ITypeParameterSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
73SymbolKind.TypeParameter => CombineHashCodes((ITypeParameterSymbol)x, currentHash),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
49public override SymbolKind Kind => SymbolKind.TypeParameter;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigParsing\NamingStyleParserTests.cs (1)
168symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.TypeParameter), symbolKind),
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
Microsoft.Gen.Logging (3)
Parsing\Parser.cs (1)
152&& paramSymbol.Type.Kind != SymbolKind.TypeParameter)
Parsing\Parser.LogProperties.cs (1)
318&& property.Type.Kind != SymbolKind.TypeParameter
src\Generators\Shared\RoslynExtensions.cs (1)
159case SymbolKind.TypeParameter:
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
159case SymbolKind.TypeParameter:
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
33SymbolKind.TypeParameter);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter:
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
110case SymbolKind.TypeParameter: