562 references to NamedType
Aspire.Hosting.Integration.Analyzers (1)
AspireExportAnalyzer.cs (1)
171SymbolKind.NamedType);
GenerateDocumentationAndConfigFiles (15)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
166'T' => SymbolKind.NamedType, 274case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
164case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
42public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
65public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
37s is { Kind: SymbolKind.NamedType, IsStatic: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
30case SymbolKind.NamedType:
ILLink.RoslynAnalyzer (6)
DynamicallyAccessedMembersAnalyzer.cs (2)
161}, SymbolKind.NamedType); 171}, SymbolKind.NamedType);
ISymbolExtensions.cs (1)
167if (methodSymbol.ContainingSymbol?.Kind == SymbolKind.NamedType)
RequiresAnalyzerBase.cs (2)
104}, SymbolKind.NamedType); 110context.RegisterSymbolAction(AnalyzeImplicitBaseCtor, SymbolKind.NamedType);
TrimAnalysis\SingleValueExtensions.cs (1)
34SymbolKind.NamedType => new SystemTypeValue(new TypeProxy(type)),
Microsoft.Analyzers.Extra (1)
MakeExeTypesInternalAnalyzer.cs (1)
137}, SymbolKind.NamedType);
Microsoft.Analyzers.Local (2)
ApiLifecycle\ApiLifecycleAnalyzer.cs (2)
51.Where(symbol => symbol.IsExternallyVisible() && symbol.Kind == SymbolKind.NamedType) 145.Where(symbol => symbol.IsExternallyVisible() && symbol.Kind == SymbolKind.NamedType)
Microsoft.AspNetCore.Analyzers (4)
BuildServiceProviderAnalyzer.cs (1)
21Debug.Assert(context.Symbol.Kind == SymbolKind.NamedType);
StartupAnalyzer.cs (1)
101}, SymbolKind.NamedType);
UseAuthorizationAnalyzer.cs (1)
22Debug.Assert(context.Symbol.Kind == SymbolKind.NamedType);
UseMvcAnalyzer.cs (1)
21Debug.Assert(context.Symbol.Kind == SymbolKind.NamedType);
Microsoft.AspNetCore.App.Analyzers (1)
Mvc\MvcAnalyzer.cs (1)
87}, SymbolKind.NamedType);
Microsoft.AspNetCore.Components.Analyzers (5)
AuthenticationStateProviderAnalyzer.cs (1)
86}, SymbolKind.NamedType);
ComponentDisposableSanityAnalyzer.cs (1)
96}, SymbolKind.NamedType);
ComponentParameterAnalyzer.cs (1)
136}, SymbolKind.NamedType);
InternalUsageAnalyzer.cs (1)
52SymbolKind.NamedType,
StateHasChangedAnalyzer.cs (1)
185}, SymbolKind.NamedType);
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentParameterAnalyzer.cs (1)
123}, SymbolKind.NamedType);
InternalUsageAnalyzer.cs (1)
52SymbolKind.NamedType,
Microsoft.AspNetCore.Mvc.Analyzers (1)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
64}, SymbolKind.NamedType);
Microsoft.Build.TaskAuthoring.Analyzer (5)
MultiThreadableTaskAnalyzer.cs (1)
94}, SymbolKind.NamedType);
MultiThreadableTaskDeclarationAnalyzer.cs (1)
64SymbolKind.NamedType);
PreferTypedParameterAnalyzer.cs (1)
134}, SymbolKind.NamedType);
TaskEnvironmentConstructorInjectionAnalyzer.cs (1)
47SymbolKind.NamedType);
UnsupportedTaskItemTypeAnalyzer.cs (1)
128}, SymbolKind.NamedType);
Microsoft.CodeAnalysis (18)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1322case SymbolKind.NamedType:
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
187case SymbolKind.NamedType:
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
560case SymbolKind.NamedType: 593ImmutableArray.Create(SymbolKind.Method, SymbolKind.Property, SymbolKind.NamedType));
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (6)
119candidateMembers.Where(s => s.Kind == SymbolKind.NamedType).ToImmutableArray() : 120candidateMembers.Where(s => s.Kind != SymbolKind.NamedType).ToImmutableArray(); 171if (containingSymbol.Kind == SymbolKind.NamedType) 223not SymbolKind.NamedType); 824s.Kind == SymbolKind.NamedType && 833SymbolKind.NamedType);
DocumentationCommentId.cs (4)
785kind = SymbolKind.NamedType; 870case SymbolKind.NamedType: 1211if (symbol.Kind == SymbolKind.NamedType) 1238if (symbol.Kind == SymbolKind.Namespace || (symbol.Kind == SymbolKind.NamedType && ((INamedTypeSymbol)symbol).Arity == 0))
Emit\EditAndContinue\SymbolChanges.cs (2)
171if (synthesizedSymbol.Kind == SymbolKind.NamedType) 194if (synthesizedSymbol.Kind == SymbolKind.NamedType)
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (1)
70case SymbolKind.NamedType:
Symbols\SymbolKindExtensions.cs (1)
23case SymbolKind.NamedType:
Microsoft.CodeAnalysis.Analyzers (36)
FixAnalyzers\FixerWithFixAllAnalyzer.cs (1)
125context.RegisterSymbolStartAction(context => AnalyzeNamedType(context, analysisTypes), SymbolKind.NamedType);
ImplementationIsObsoleteAnalyzer.cs (1)
38context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.NamedType);
InternalImplementationOnlyAnalyzer.cs (1)
41context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.NamedType);
MetaAnalyzers\ClassIsNotDiagnosticAnalyzer.cs (1)
57}, SymbolKind.NamedType);
MetaAnalyzers\CompilerExtensionStrictApiAnalyzer.cs (1)
155SymbolKind.NamedType);
MetaAnalyzers\CompilerExtensionTargetFrameworkAnalyzer.cs (1)
107SymbolKind.NamedType);
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (1)
107}, SymbolKind.NamedType);
MetaAnalyzers\DiagnosticAnalyzerCorrectnessAnalyzer.cs (1)
36compilationContext.RegisterSymbolAction(c => analyzer.AnalyzeSymbol(c), SymbolKind.NamedType);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
321}, SymbolKind.NamedType); 447}, SymbolKind.NamedType);
MetaAnalyzers\DoNotUseFileTypesForAnalyzersOrGenerators.cs (1)
46context.RegisterSymbolAction(symbolContext => AnalyzeSymbol(symbolContext, diagnosticAnalyzer, codeFixProvider, isourceGenerator, iincrementalGenerator), SymbolKind.NamedType);
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
183nameof(SymbolKind.NamedType),
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
69context.RegisterSymbolAction(analyzePossibleAnalyzerOrGenerator, SymbolKind.NamedType);
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (1)
74SymbolKind.NamedType,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
62Debug.Assert(child.Children.All(grandChild => grandChild.Symbol.Kind == SymbolKind.NamedType));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (5)
38SymbolKind.NamedType or 43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 138case SymbolKind.NamedType: 271SymbolKind.NamedType => await NamedTypeMetricData.ComputeAsync((INamedTypeSymbol)symbol, context).ConfigureAwait(false), 309SymbolKind.NamedType => NamedTypeMetricData.ComputeSynchronously((INamedTypeSymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (1)
52var members = namedType.GetMembers().Where(m => m.Kind != SymbolKind.NamedType);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
166'T' => SymbolKind.NamedType, 274case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
164case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
42public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
65public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
37s is { Kind: SymbolKind.NamedType, IsStatic: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
30case SymbolKind.NamedType:
Microsoft.CodeAnalysis.AnalyzerUtilities (19)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
62Debug.Assert(child.Children.All(grandChild => grandChild.Symbol.Kind == SymbolKind.NamedType));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (5)
38SymbolKind.NamedType or 43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 138case SymbolKind.NamedType: 271SymbolKind.NamedType => await NamedTypeMetricData.ComputeAsync((INamedTypeSymbol)symbol, context).ConfigureAwait(false), 309SymbolKind.NamedType => NamedTypeMetricData.ComputeSynchronously((INamedTypeSymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (1)
52var members = namedType.GetMembers().Where(m => m.Kind != SymbolKind.NamedType);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
166'T' => SymbolKind.NamedType, 274case SymbolKind.NamedType:
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2616if (capturedVariable.Kind == SymbolKind.NamedType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
164case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
Microsoft.CodeAnalysis.CodeStyle (22)
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
71}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
81}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
34private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
781case SymbolKind.NamedType:
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
285}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
218}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
113case SymbolKind.NamedType:
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (6)
119candidateMembers.Where(s => s.Kind == SymbolKind.NamedType).ToImmutableArray() : 120candidateMembers.Where(s => s.Kind != SymbolKind.NamedType).ToImmutableArray(); 171if (containingSymbol.Kind == SymbolKind.NamedType) 223not SymbolKind.NamedType); 824s.Kind == SymbolKind.NamedType && 833SymbolKind.NamedType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
164case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
42public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
65public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
37s is { Kind: SymbolKind.NamedType, IsStatic: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
30case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp (173)
Binder\Binder_AnonymousTypes.cs (1)
200case SymbolKind.NamedType:
Binder\Binder_Constraints.cs (1)
35Debug.Assert((containingSymbol.Kind == SymbolKind.NamedType) || (containingSymbol.Kind == SymbolKind.Method));
Binder\Binder_Crefs.cs (1)
1026case SymbolKind.NamedType:
Binder\Binder_Expressions.cs (12)
1729bool isNamedType = (symbol.Kind == SymbolKind.NamedType) || (symbol.Kind == SymbolKind.ErrorType); 1841this.ContainingMember() is { Kind: not SymbolKind.NamedType, IsStatic: false } && // We are in an instance member 2097this.ContainingMember() is null or { Kind: SymbolKind.NamedType } or { IsStatic: true } || // We are not in an instance member 2185case SymbolKind.NamedType: 2348this.ContainingMember() is not { Kind: not SymbolKind.NamedType, IsStatic: false } containingMember || // We are not in an instance member 2407(containingMember.Kind != SymbolKind.NamedType || currentType.IsScriptClass); 2477if (containingMember.Kind == SymbolKind.NamedType) 3297if ((InConstructorInitializer || InFieldInitializer) && ContainingMemberOrLambda.ContainingSymbol.Kind == SymbolKind.NamedType) 8090Debug.Assert(sym.Kind == SymbolKind.NamedType); 8107Debug.Assert(symbols[0].Kind == SymbolKind.NamedType); 8691left = ReplaceTypeOrValueReceiver(left, symbol.IsStatic || symbol.Kind == SymbolKind.NamedType, diagnostics); 8703case SymbolKind.NamedType:
Binder\Binder_Invocation.cs (1)
2216if (parameterType?.Kind == SymbolKind.NamedType &&
Binder\Binder_Lookup.cs (6)
404if (existingDefinition.Kind != SymbolKind.NamedType || arity == 0) 778if (symbol.Kind == SymbolKind.NamedType) 1401else if (nsOrType.Kind == SymbolKind.NamedType && originalBinder.IsEarlyAttributeBinder) 1425else if (nsOrType.Kind == SymbolKind.NamedType && originalBinder.IsEarlyAttributeBinder) 1820case SymbolKind.NamedType: 1875case SymbolKind.NamedType:
Binder\Binder_NameConflicts.cs (2)
160case SymbolKind.NamedType: 164return containingMemberOrLambda.ContainingSymbol?.Kind == SymbolKind.NamedType &&
Binder\Binder_Patterns.cs (1)
1090if ((InConstructorInitializer || InFieldInitializer) && ContainingMemberOrLambda.ContainingSymbol.Kind == SymbolKind.NamedType)
Binder\Binder_Symbols.cs (16)
594if (left.Kind == SymbolKind.NamedType) 973if (((AliasSymbol)s).Target.Kind == SymbolKind.NamedType) return true; 975case SymbolKind.NamedType: 1675bool isLeftUnboundGenericType = left.Kind == SymbolKind.NamedType && 2000if (symbol.Kind == SymbolKind.NamedType) 2073if (srcSymbol.Kind == SymbolKind.Namespace && mdSymbol.Kind == SymbolKind.NamedType) 2084else if (srcSymbol.Kind == SymbolKind.NamedType && mdSymbol.Kind == SymbolKind.Namespace) 2095else if (srcSymbol.Kind == SymbolKind.NamedType && mdSymbol.Kind == SymbolKind.NamedType) 2144if (first.Kind == SymbolKind.NamedType && second.Kind == SymbolKind.NamedType) 2186else if (first.Kind == SymbolKind.Namespace && second.Kind == SymbolKind.NamedType) 2199else if (first.Kind == SymbolKind.NamedType && second.Kind == SymbolKind.Namespace) 2284first.Kind == SymbolKind.NamedType && 2285second.Kind == SymbolKind.NamedType && 2345if (singleResult.Kind == SymbolKind.NamedType &&
Binder\Binder.cs (3)
488case SymbolKind.NamedType: 645case SymbolKind.NamedType: 682RoslynDebug.Assert(symbol.Kind == SymbolKind.NamedType ||
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
298treatAsInstanceMemberAccess = !(symbol.IsStatic || symbol.Kind == SymbolKind.NamedType);
Binder\InContainerBinder.cs (1)
54get { return (_container.Kind == SymbolKind.NamedType) && ((NamedTypeSymbol)_container).IsScriptClass; }
Binder\InMethodBinder.cs (2)
139if (refKind == RefKind.None && returnType.Kind == SymbolKind.NamedType) 170if (refKind == RefKind.None && returnType.Kind == SymbolKind.NamedType)
Binder\Semantics\AccessCheck.cs (2)
73case SymbolKind.NamedType: 157case SymbolKind.NamedType:
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1296if (destination.Kind == SymbolKind.NamedType) 1348if (destination.Kind == SymbolKind.NamedType)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
727if (target.Type.Kind != SymbolKind.NamedType) 923if (formalType.Type.Kind != SymbolKind.NamedType)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3385if (targetType.Kind != SymbolKind.NamedType)
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
168case SymbolKind.NamedType:
BoundTree\BoundExpressionExtensions.cs (1)
275return receiverType is NamedTypeSymbol { Kind: SymbolKind.NamedType, IsComImport: true };
Compilation\CSharpSemanticModel.cs (3)
1611if ((object)containingType != null && containingType.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)containingType).IsScriptClass) 1775if (lookupResult.Symbols.Any(t => t.Kind == SymbolKind.NamedType || t.Kind == SymbolKind.Namespace || t.Kind == SymbolKind.ErrorType)) 4010if (unwrappedSymbols.Count == 1 && unwrappedSymbols[0].Kind == SymbolKind.NamedType)
Compilation\SyntaxTreeSemanticModel.cs (4)
2488case SymbolKind.NamedType: 2524case SymbolKind.NamedType: 2552case SymbolKind.NamedType: 2609case SymbolKind.NamedType:
Compiler\ClsComplianceChecker.cs (8)
425symbolKind == SymbolKind.NamedType || 448if (symbol.Kind == SymbolKind.NamedType) 471if (symbolKind == SymbolKind.NamedType) 506else if (symbol.IsAbstract && symbol.Kind != SymbolKind.NamedType) 746case SymbolKind.NamedType: 1116System.Diagnostics.Debug.Assert(symbol.Kind == SymbolKind.NamedType || !((symbol is TypeSymbol)), 1165return (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.NamedType) 1269return symbol.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)symbol).IsImplicitClass;
Compiler\DocumentationCommentCompiler.cs (3)
144symbol.Kind == SymbolKind.NamedType || 757case SymbolKind.NamedType: 781case SymbolKind.NamedType:
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
568case SymbolKind.NamedType: 590case SymbolKind.NamedType: // Includes delegates.
Compiler\MethodCompiler.cs (1)
521case SymbolKind.NamedType:
Compiler\SynthesizedMetadataCompiler.cs (1)
96case SymbolKind.NamedType:
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
374case SymbolKind.NamedType: 458SymbolKind.NamedType or SymbolKind.ErrorType => ((NamedTypeSymbol)otherContainer).TypeParameters, 779case SymbolKind.NamedType: 795if (symbol.Kind == SymbolKind.NamedType)
Emitter\Model\PEModuleBuilder.cs (7)
246case SymbolKind.NamedType: 255case SymbolKind.NamedType: 366case SymbolKind.NamedType: 377case SymbolKind.NamedType: 388case SymbolKind.NamedType: 584if (symbol.Kind == SymbolKind.NamedType) 1303case SymbolKind.NamedType:
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
100if (AdaptedTypeParameterSymbol.ContainingSymbol.Kind == SymbolKind.NamedType) 115if (AdaptedTypeParameterSymbol.ContainingSymbol.Kind == SymbolKind.NamedType)
Emitter\NoPia\EmbeddedTypesManager.cs (1)
324if (member.Kind != SymbolKind.NamedType)
FlowAnalysis\NullableWalker.cs (1)
2292if (container.Kind == SymbolKind.NamedType)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
108text = EscapeIdentifier(text, symbol?.Kind is SymbolKind.NamedType or SymbolKind.Alias);
Symbols\AbstractTypeMap.cs (1)
106case SymbolKind.NamedType:
Symbols\Attributes\AttributeData.cs (4)
340Debug.Assert(targetSymbol.Kind == SymbolKind.Assembly || targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method); 383Debug.Assert(targetSymbol.Kind == SymbolKind.Assembly || targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method); 437if (targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method) 744case SymbolKind.NamedType:
Symbols\Attributes\SourceAttributeData.cs (1)
290if (parameterType.Kind != SymbolKind.NamedType && parameterType.Kind != SymbolKind.ErrorType)
Symbols\Compilation_WellKnownMembers.cs (4)
227if (type.Kind != SymbolKind.NamedType || type.TypeKind != TypeKind.Class) 1139if (type.Kind != SymbolKind.NamedType) 1157if (type.Kind != SymbolKind.NamedType) 1248if (typeParam.ContainingSymbol.Kind != SymbolKind.NamedType)
Symbols\ConstraintsHelper.cs (1)
589if (type.Kind == SymbolKind.NamedType)
Symbols\ExtendedErrorTypeSymbol.cs (2)
37(containingSymbol.Kind == SymbolKind.NamedType) || 316case SymbolKind.NamedType:
Symbols\MemberSymbolExtensions.cs (5)
470case SymbolKind.NamedType: 521case SymbolKind.NamedType: 542case SymbolKind.NamedType: 574case SymbolKind.NamedType: 592case SymbolKind.NamedType:
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
154case SymbolKind.NamedType:
Symbols\Metadata\PE\MetadataDecoder.cs (3)
231goto case SymbolKind.NamedType; 232case SymbolKind.NamedType: 544Debug.Assert(scope.Kind == SymbolKind.NamedType || scope.Kind == SymbolKind.ErrorType);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
1732Debug.Assert(SymbolKind.Event.ToSortOrder() < SymbolKind.NamedType.ToSortOrder()); 1900if (member.Kind == SymbolKind.NamedType)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
173case SymbolKind.NamedType:
Symbols\MethodSymbolExtensions.cs (1)
108case SymbolKind.NamedType:
Symbols\NamedTypeSymbol.cs (2)
536Debug.Assert(member.Kind != SymbolKind.NamedType); 1077return SymbolKind.NamedType;
Symbols\OverriddenOrHiddenMembersHelpers.cs (4)
591case SymbolKind.NamedType: 641case SymbolKind.NamedType: 716bool needToSearchForRelated = representativeMember.Kind != SymbolKind.Field && representativeMember.Kind != SymbolKind.NamedType && 855Debug.Assert(representativeMember.Kind != SymbolKind.NamedType);
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
90if (s.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)s).IsExplicitDefinitionOfNoPiaLocalType)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
164Debug.Assert(symbol.Kind != SymbolKind.NamedType || ((NamedTypeSymbol)symbol).PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive); 322if (type.ContainingSymbol.Kind != SymbolKind.NamedType && 660case SymbolKind.NamedType:
Symbols\Source\LocalFunctionSymbol.cs (1)
498Debug.Assert(tpEnclosing.ContainingSymbol.Kind == SymbolKind.NamedType);
Symbols\Source\SourceAssemblySymbol.cs (2)
2084case SymbolKind.NamedType: 2240if (forwardedType.Kind != SymbolKind.NamedType)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
678case SymbolKind.NamedType: 687Debug.Assert(symbol.Kind == SymbolKind.Field || symbol.Kind == SymbolKind.NamedType);
Symbols\Source\SourceMemberContainerSymbol.cs (3)
491case SymbolKind.NamedType: 2229if (symbol.Kind == SymbolKind.NamedType || 4873case SymbolKind.NamedType:
Symbols\Source\SourceModuleSymbol.cs (2)
180case SymbolKind.NamedType: 655case SymbolKind.NamedType:
Symbols\Source\SourceNamedTypeSymbol.cs (1)
96if (containingSymbol.Kind == SymbolKind.NamedType)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
802else if (imported.Kind == SymbolKind.NamedType)
Symbols\SubstitutedNamedTypeSymbol.cs (2)
254if (t.Kind == SymbolKind.NamedType) 304if (t.Kind == SymbolKind.NamedType)
Symbols\Symbol_Attributes.cs (2)
66case SymbolKind.NamedType: 949case SymbolKind.NamedType:
Symbols\Symbol.cs (3)
658case SymbolKind.NamedType: 912Debug.Assert(this.Kind == SymbolKind.NamedType || this.Kind == SymbolKind.Method); 1671case SymbolKind.NamedType:
Symbols\SymbolDistinguisher.cs (1)
58case SymbolKind.NamedType:
Symbols\SymbolExtensions.cs (6)
138case SymbolKind.NamedType: 184case SymbolKind.NamedType: 204case SymbolKind.NamedType: 261case SymbolKind.NamedType: 304var upperLevelType = symbol.Kind == SymbolKind.NamedType ? (NamedTypeSymbol)symbol : symbol.ContainingType; 337case SymbolKind.NamedType:
Symbols\SymbolKindExtensions.cs (1)
22case SymbolKind.NamedType:
Symbols\Synthesized\SynthesizedContainer.cs (1)
60if (ContainingSymbol.Kind == SymbolKind.NamedType && ContainingSymbol.IsImplicitlyDeclared)
Symbols\Synthesized\SynthesizedTypeParameterSymbol.cs (1)
49if (ContainingSymbol.Kind == SymbolKind.NamedType && !PropagateAttributes)
Symbols\Tuples\TupleTypeSymbol.cs (2)
697case SymbolKind.NamedType: 1071case SymbolKind.NamedType:
Symbols\TypeSymbol.cs (1)
2425if (this.IsAbstract && member.IsAbstract && member.Kind != SymbolKind.NamedType)
Symbols\TypeSymbolExtensions.cs (4)
352return type.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)type).IsInterface; 1831case SymbolKind.NamedType: 2003case SymbolKind.NamedType: 2360if (type.Kind == SymbolKind.NamedType)
Symbols\TypeUnification.cs (2)
159case SymbolKind.NamedType: 292case SymbolKind.NamedType:
Symbols\VarianceSafety.cs (2)
61case SymbolKind.NamedType: 337case SymbolKind.NamedType:
Utilities\TypeSymbolExtensions.cs (2)
46case SymbolKind.NamedType: 129case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
69}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
51}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
67}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
80context.RegisterSymbolStartAction(context => Analyzer.AnalyzeNamedTypeStart(this, context, namedTypeToAnalyzer), SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
69context.RegisterSymbolStartAction(AnalyzeNamedType, SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
80if (type?.Kind != SymbolKind.NamedType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
214if (symbol?.Kind == SymbolKind.NamedType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1021if (conditionOrType.GetBestOrAllSymbols().FirstOrDefault() is { Kind: SymbolKind.NamedType }) 3061case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
707case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (1)
140member.Kind == SymbolKind.NamedType ||
NavigationBar\CSharpNavigationBarItemService.cs (1)
77member.Kind == SymbolKind.NamedType ||
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
69}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
51}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
67}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
80context.RegisterSymbolStartAction(context => Analyzer.AnalyzeNamedTypeStart(this, context, namedTypeToAnalyzer), SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
69context.RegisterSymbolStartAction(AnalyzeNamedType, SymbolKind.NamedType);
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
80if (type?.Kind != SymbolKind.NamedType)
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Recommendations\CSharpRecommendationServiceRunner.cs (2)
833symbol.Kind is SymbolKind.NamedType or SymbolKind.Namespace or SymbolKind.Alias) 855if (symbol.Kind is SymbolKind.NamedType or SymbolKind.Namespace or SymbolKind.TypeParameter)
Simplification\CSharpSimplificationService.Expander.cs (1)
646if (symbol.Kind is SymbolKind.Namespace or SymbolKind.NamedType)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
141symbol is { Kind: not SymbolKind.Namespace and not SymbolKind.NamedType })
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
428if (rightSymbol != null && (rightSymbol.IsStatic || rightSymbol.Kind == SymbolKind.NamedType))
Simplification\Simplifiers\NameSimplifier.cs (1)
272if (!name.IsVar && symbol.Kind == SymbolKind.NamedType && !name.IsLeftSideOfQualifiedName())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
214if (symbol?.Kind == SymbolKind.NamedType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1021if (conditionOrType.GetBestOrAllSymbols().FirstOrDefault() is { Kind: SymbolKind.NamedType }) 3061case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
707case SymbolKind.NamedType:
Microsoft.CodeAnalysis.Extensions.Package (8)
Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
Microsoft.CodeAnalysis.Features (32)
ChangeSignature\AbstractChangeSignatureService.cs (1)
276if (symbol.Definition.Kind == SymbolKind.NamedType)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
365case SymbolKind.NamedType:
CodeLens\CodeLensFindReferenceProgress.cs (1)
121var isConstructorInvocation = _queriedSymbol.Kind == SymbolKind.NamedType &&
Completion\CommonCompletionUtilities.cs (1)
106case SymbolKind.NamedType:
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
292case SymbolKind.NamedType:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
319SymbolKind.NamedType => GetDisplayName((INamedTypeSymbol)symbol), 2660case SymbolKind.NamedType when oldMember is INamedTypeSymbol { DelegateInvokeMethod: { } oldInvokeMethod }:
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
199=> symbol.Kind == SymbolKind.NamedType;
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (2)
37SymbolKind.NamedType or 50SymbolKind.NamedType => new WrappedNamedTypeSymbol((INamedTypeSymbol)m, canImplementImplicitly, docCommentFormattingService),
MetadataAsSource\MetadataAsSourceFileService.cs (1)
302case SymbolKind.NamedType:
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
58topLevelNamedType.Kind != SymbolKind.NamedType)
QuickInfo\CommonSemanticQuickInfoProvider.cs (2)
165s1.Kind == SymbolKind.NamedType ? -1 : 166s2.Kind == SymbolKind.NamedType ? 1 : 0)];
Rename\SymbolicRenameInfo.cs (1)
171if (symbol.Kind == SymbolKind.NamedType &&
Shared\Extensions\ISymbolExtensions_2.cs (1)
56case SymbolKind.NamedType:
Shared\Extensions\ISymbolExtensions_Sorting.cs (3)
163if (s1.Kind == SymbolKind.NamedType || s2.Kind == SymbolKind.NamedType) 167: s1.Kind == SymbolKind.NamedType ? -1 : 1;
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
71}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
81}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
34private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
781case SymbolKind.NamedType:
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
285}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
218}, SymbolKind.NamedType);
src\roslyn\src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
113case SymbolKind.NamedType:
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (6)
119candidateMembers.Where(s => s.Kind == SymbolKind.NamedType).ToImmutableArray() : 120candidateMembers.Where(s => s.Kind != SymbolKind.NamedType).ToImmutableArray(); 171if (containingSymbol.Kind == SymbolKind.NamedType) 223not SymbolKind.NamedType); 824s.Kind == SymbolKind.NamedType && 833SymbolKind.NamedType);
Microsoft.CodeAnalysis.NetAnalyzers (88)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AbstractTypesShouldNotHaveConstructors.cs (1)
40context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidEmptyInterfaces.cs (1)
40context.RegisterSymbolAction(AnalyzeInterface, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidExcessiveParametersOnGenericTypes.cs (1)
56}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CollectionsShouldImplementGenericInterface.cs (1)
98context.RegisterSymbolAction(c => AnalyzeSymbol(c, interfaceToGenericInterfaceMapBuilder.ToImmutable()), SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DeclareTypesInNamespaces.cs (1)
39context.RegisterSymbolAction(AnalyzeNamedType, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (1)
82SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotPrefixEnumValuesWithTypeName.cs (1)
44context.RegisterSymbolAction(AnalyzeNamedType, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumShouldNotHaveDuplicatedValues.cs (1)
54context.RegisterSymbolStartAction(visitEnumSymbol, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumsShouldHaveZeroValue.cs (1)
98compilationContext.RegisterSymbolAction(symbolContext => AnalyzeSymbol(symbolContext, flagsAttribute), SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumStorageShouldBeInt32.cs (1)
50compilationContext.RegisterSymbolAction(symbolContext => AnalyzeSymbol(symbolContext, flagsAttribute), SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumWithFlagsAttribute.cs (1)
78}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.cs (1)
60context.RegisterSymbolAction(c => AnalyzeSymbol(c, equatableType), SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ExceptionsShouldBePublic.cs (1)
85SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldDifferByMoreThanCase.cs (1)
48context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldHaveCorrectPrefix.cs (2)
75case SymbolKind.NamedType: 93SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldHaveCorrectSuffix.cs (1)
180, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainTypeNames.cs (1)
92SymbolKind.NamedType,
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainUnderscores.cs (3)
150case SymbolKind.NamedType: 225SymbolKind.NamedType, //Type 280if (containingSymbol.Kind == SymbolKind.NamedType)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotHaveIncorrectSuffix.cs (1)
222}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotMatchKeywords.cs (3)
79SymbolKind.NamedType, 98SymbolKind.NamedType); 100compilationStartAnalysisContext.RegisterSymbolAction(AnalyzeTypeRule, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementIDisposableCorrectly.cs (1)
179context.RegisterSymbolAction(AnalyzeNamedTypeSymbol, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.cs (1)
125}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAttributesWithAttributeUsage.cs (1)
58SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MovePInvokesToNativeMethodsClass.cs (1)
51}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\NestedTypesShouldNotBeVisible.cs (1)
134SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.cs (1)
92}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorsShouldHaveSymmetricalOverloads.cs (1)
54}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverloadOperatorEqualsOnOverridingValueTypeEquals.cs (1)
51SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsAndOperatorEqualsOnValueTypes.cs (1)
99}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.cs (1)
83SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ProvideObsoleteAttributeMessage.cs (1)
49SymbolKind.NamedType,
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\StaticHolderTypes.cs (1)
62context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypeNamesShouldNotMatchNamespaces.cs (1)
83}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposable.cs (1)
53compilationContext.RegisterSymbolStartAction(ctx => AnalyzeSymbolStart(ctx, disposeAnalysisHelper), SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseGenericEventHandlerInstances.cs (1)
98}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUninstantiatedInternalClasses.cs (1)
130}, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUnusedPrivateFields.cs (1)
140SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\Maintainability\CodeMetricsAnalyzer.cs (6)
156if (symbol.Kind == SymbolKind.NamedType && codeAnalysisMetricData.DepthOfInheritance.HasValue) 243CA1501RuleId => symbolKind == SymbolKind.NamedType, 247SymbolKind.NamedType or SymbolKind.Method or SymbolKind.Field or SymbolKind.Property or SymbolKind.Event => true, 252SymbolKind.NamedType or SymbolKind.Method or SymbolKind.Field or SymbolKind.Property or SymbolKind.Event => true, 275CA1506RuleId => symbolKind == SymbolKind.NamedType ? 95 : (uint)40, 393symbolKind = SymbolKind.NamedType;
Microsoft.CodeQuality.Analyzers\Maintainability\MakeTypesInternal.cs (1)
45context.RegisterSymbolAction(AnalyzeType, SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.cs (1)
55SymbolKind.NamedType);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfaces.cs (1)
40context.RegisterSymbolAction(CheckTypes, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.DisabledRuntimeMarshallingAssemblyAnalyzer.cs (1)
55context.RegisterSymbolAction(AnalyzeType, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.cs (2)
76context.RegisterSymbolAction(context => AnalyzeType(context, dynamicInterfaceCastableImplementationAttribute), SymbolKind.NamedType); 109&& member.Kind != SymbolKind.NamedType
Microsoft.NetCore.Analyzers\InteropServices\ProvidePublicParameterlessSafeHandleConstructor.cs (1)
43context.RegisterSymbolAction(context => AnalyzeSymbol(context, safeHandleType), SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\InteropServices\UseValidPlatformString.cs (1)
26private static readonly ImmutableArray<SymbolKind> s_symbols = ImmutableArray.Create(SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field, SymbolKind.Event);
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.cs (1)
161}, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Runtime\AttributeStringLiteralsShouldParseCorrectly.cs (2)
91case SymbolKind.NamedType: 125SymbolKind.NamedType,
Microsoft.NetCore.Analyzers\Runtime\AvoidUnsealedAttributes.cs (1)
54SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (1)
31private static readonly ImmutableArray<SymbolKind> s_symbols = ImmutableArray.Create(SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field, SymbolKind.Event);
Microsoft.NetCore.Analyzers\Runtime\DisposableFieldsShouldBeDisposed.cs (1)
47context.RegisterSymbolStartAction(OnSymbolStart, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Runtime\DoNotDefineFinalizersForTypesDerivedFromMemoryManager.cs (1)
55, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Runtime\PreferReadOnlySpanPropertiesOverReadOnlyArrayFieldsAnalyzer.cs (1)
62context.RegisterSymbolStartAction(OnSymbolStart, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Runtime\ProvideStreamMemoryBasedAsyncOverrides.cs (1)
55context.RegisterSymbolAction(AnalyzeNamedType, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Runtime\SealInternalTypes.cs (1)
69}, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Runtime\SerializationRulesDiagnosticAnalyzer.cs (1)
79context.RegisterSymbolAction(symbolAnalyzer.AnalyzeSymbol, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableTypeAnalyzer.cs (1)
197SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInWebSerializableObjectGraphAnalyzer.cs (1)
129SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Security\DoNotSerializeTypeWithPointerFields.cs (1)
63}, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Security\PotentialReferenceCycleInDeserializedObjectGraph.cs (1)
76}, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Security\SetViewStateUserKey.cs (1)
80}, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (1)
326}, SymbolKind.NamedType);
Microsoft.NetCore.Analyzers\Usage\ImplementGenericMathInterfacesCorrectly.cs (1)
57}, SymbolKind.NamedType);
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingInApiDesign.cs (3)
63context.RegisterSymbolAction(analyzer.AnalyzeSymbol, SymbolKind.NamedType); 398if (symbol.Kind != SymbolKind.NamedType) 438if (symbol.Kind != SymbolKind.NamedType)
Microsoft.NetFramework.Analyzers\TypesShouldNotExtendCertainBaseTypes.cs (1)
82, SymbolKind.NamedType);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
61Debug.Assert(child.Children.All(grandChild => grandChild.Symbol.Kind == SymbolKind.NamedType));
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (5)
37SymbolKind.NamedType or 42Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 137case SymbolKind.NamedType: 270SymbolKind.NamedType => await NamedTypeMetricData.ComputeAsync((INamedTypeSymbol)symbol, context).ConfigureAwait(false), 308SymbolKind.NamedType => NamedTypeMetricData.ComputeSynchronously((INamedTypeSymbol)symbol, context),
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (1)
51var members = namedType.GetMembers().Where(m => m.Kind != SymbolKind.NamedType);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
153'T' => SymbolKind.NamedType, 261case SymbolKind.NamedType:
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2613if (capturedVariable.Kind == SymbolKind.NamedType)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\TagHelperDiscoverer.cs (1)
136case SymbolKind.NamedType:
Microsoft.CodeAnalysis.ResxSourceGenerator (18)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
62Debug.Assert(child.Children.All(grandChild => grandChild.Symbol.Kind == SymbolKind.NamedType));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (5)
38SymbolKind.NamedType or 43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 138case SymbolKind.NamedType: 271SymbolKind.NamedType => await NamedTypeMetricData.ComputeAsync((INamedTypeSymbol)symbol, context).ConfigureAwait(false), 309SymbolKind.NamedType => NamedTypeMetricData.ComputeSynchronously((INamedTypeSymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (1)
52var members = namedType.GetMembers().Where(m => m.Kind != SymbolKind.NamedType);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
166'T' => SymbolKind.NamedType, 274case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
164case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\BasicOverrideEqualsOnOverloadingOperatorEquals.vb (1)
60SymbolKind.NamedType)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\BasicOverrideGetHashCodeOnOverridingEquals.vb (1)
53SymbolKind.NamedType)
Microsoft.CodeAnalysis.Workspaces (22)
Editing\SyntaxGenerator.cs (2)
764case SymbolKind.NamedType: 893case SymbolKind.NamedType:
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
35SymbolKind.NamedType => true,
Recommendations\AbstractRecommendationService.cs (1)
74case SymbolKind.NamedType:
Rename\ConflictEngine\ConflictResolver.cs (1)
233if (renamedSymbol.ContainingSymbol.IsKind(SymbolKind.NamedType))
Rename\RenameUtilities.cs (1)
235if (containingType.Kind == SymbolKind.NamedType)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
107referencedSymbol.ContainingSymbol.Kind == SymbolKind.NamedType && 199if (referencedSymbol.Kind == SymbolKind.NamedType && referencedSymbol.Locations.All(l => l.IsInSource))
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
187if (namespaceOrType.Kind == SymbolKind.NamedType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
164case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
42public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
65public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
37s is { Kind: SymbolKind.NamedType, IsStatic: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
30case SymbolKind.NamedType:
Microsoft.DotNet.ApiSymbolExtensions (1)
Filtering\ImplicitSymbolFilter.cs (1)
25method.Kind == SymbolKind.NamedType ||
Microsoft.Gen.Logging (2)
Parsing\Parser.LogProperties.cs (1)
336symType.Kind == SymbolKind.NamedType &&
Parsing\Parser.Records.cs (1)
145extractedType.Kind == SymbolKind.NamedType &&
Microsoft.Gen.Logging.Unit.Tests (1)
LogParserUtilitiesTests.cs (1)
154paramTypeMock.SetupGet(x => x.Kind).Returns(SymbolKind.NamedType);
Microsoft.Interop.ComInterfaceGenerator (5)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
61}, SymbolKind.NamedType);
Analyzers\ComClassGeneratorDiagnosticsAnalyzer.cs (1)
41context.RegisterSymbolAction(context => AnalyzeNamedType(context, unsafeCodeIsEnabled, generatedComClassAttributeType, generatedComInterfaceAttributeType), SymbolKind.NamedType);
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
108}, SymbolKind.NamedType);
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
146}, SymbolKind.NamedType);
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
46}, SymbolKind.NamedType);
Microsoft.ML.InternalCodeAnalyzer (2)
BaseTestClassAnalyzer.cs (1)
46context.RegisterSymbolAction(analyzerImpl.AnalyzeNamedType, SymbolKind.NamedType);
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
53context.RegisterSymbolAction(c => AnalyzeCore(c, attribute), SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Field, SymbolKind.Property);
Roslyn.Diagnostics.Analyzers (33)
AbstractDoNotCopyValue.cs (2)
159SymbolKind.NamedType, 1511case SymbolKind.NamedType:
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (1)
52context.RegisterSymbolAction(context => AnalyzeNamedType(context, nonDefaultableAttribute, knownNonDefaultableTypes), SymbolKind.NamedType);
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
57compilationContext.RegisterSymbolAction(c => AnalyzeSymbol(c, exportAttributes, attributeUsageAttribute), SymbolKind.NamedType);
ExportedPartsShouldHaveImportingConstructor.cs (1)
78}, SymbolKind.NamedType);
ImportingConstructorShouldBeObsolete.cs (1)
71}, SymbolKind.NamedType);
IRemoteJsonServiceParameterAnalyzer.cs (1)
53context.RegisterSymbolAction(context => AnalyzeSymbol(context, remoteJsonService, razorSolutionWrapper, documentId), SymbolKind.NamedType);
PartsExportedWithMEFv2MustBeMarkedAsShared.cs (1)
75}, SymbolKind.NamedType);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
62Debug.Assert(child.Children.All(grandChild => grandChild.Symbol.Kind == SymbolKind.NamedType));
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (5)
38SymbolKind.NamedType or 43Debug.Assert(depthOfInheritance.HasValue == (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace || symbol.Kind == SymbolKind.NamedType)); 138case SymbolKind.NamedType: 271SymbolKind.NamedType => await NamedTypeMetricData.ComputeAsync((INamedTypeSymbol)symbol, context).ConfigureAwait(false), 309SymbolKind.NamedType => NamedTypeMetricData.ComputeSynchronously((INamedTypeSymbol)symbol, context),
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (1)
52var members = namedType.GetMembers().Where(m => m.Kind != SymbolKind.NamedType);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
166'T' => SymbolKind.NamedType, 274case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
164case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
214m.Kind != SymbolKind.NamedType && 315return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
123case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
354SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
605case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
198=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
126SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
70SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
42public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
65public override SymbolKind Kind => SymbolKind.NamedType;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
37s is { Kind: SymbolKind.NamedType, IsStatic: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
30case SymbolKind.NamedType:
SymbolDeclaredEventMustBeGeneratedForSourceSymbols.cs (2)
61compilationContext.RegisterSymbolAction(compilationAnalyzer.AnalyzeNamedType, SymbolKind.NamedType); 138type.Kind == SymbolKind.NamedType &&
TestExportsShouldNotBeDiscoverable.cs (1)
68}, SymbolKind.NamedType);
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
214if (symbol?.Kind == SymbolKind.NamedType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1021if (conditionOrType.GetBestOrAllSymbols().FirstOrDefault() is { Kind: SymbolKind.NamedType }) 3061case SymbolKind.NamedType:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
707case SymbolKind.NamedType: