1047 references to NamedType
ILLink.RoslynAnalyzer (6)
DynamicallyAccessedMembersAnalyzer.cs (2)
132 }, SymbolKind.NamedType); 140 }, SymbolKind.NamedType);
ISymbolExtensions.cs (1)
158 if (methodSymbol.ContainingSymbol?.Kind == SymbolKind.NamedType) {
RequiresAnalyzerBase.cs (1)
62 }, SymbolKind.NamedType);
RequiresUnreferencedCodeAnalyzer.cs (1)
95 ImmutableArray.Create<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)> ((typeDerivesFromRucBase, new SymbolKind[] { SymbolKind.NamedType }));
TrimAnalysis\SingleValueExtensions.cs (1)
31 SymbolKind.NamedType => new SystemTypeValue (new TypeProxy (type)),
Microsoft.Analyzers.Extra (1)
MakeExeTypesInternalAnalyzer.cs (1)
137}, SymbolKind.NamedType);
Microsoft.Analyzers.Local (2)
ApiLifecycle\ApiLifecycleAnalyzer.cs (2)
53.Where(symbol => symbol.IsExternallyVisible() && symbol.Kind == SymbolKind.NamedType) 147.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 (2)
ComponentParameterAnalyzer.cs (1)
136}, SymbolKind.NamedType);
InternalUsageAnalyzer.cs (1)
52SymbolKind.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.CodeAnalysis (16)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1132case SymbolKind.NamedType:
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
187case 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)
756kind = SymbolKind.NamedType; 841case SymbolKind.NamedType: 1169if (symbol.Kind == SymbolKind.NamedType) 1194if (symbol.Kind == SymbolKind.Namespace || (symbol.Kind == SymbolKind.NamedType && ((INamedTypeSymbol)symbol).Arity == 0))
Emit\EditAndContinue\SymbolChanges.cs (2)
170if (synthesizedSymbol.Kind == SymbolKind.NamedType) 193if (synthesizedSymbol.Kind == SymbolKind.NamedType)
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (1)
70case SymbolKind.NamedType:
Symbols\SymbolKindExtensions.cs (1)
23case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CodeStyle (22)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
85}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
767case SymbolKind.NamedType:
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
225}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
71}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
225}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
114case SymbolKind.NamedType:
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
199m.Kind != SymbolKind.NamedType && IsImplementable(m) && 299return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
340SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity, 521=> symbol != null && symbol.Kind == SymbolKind.NamedType && symbol.IsStatic;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
121case SymbolKind.NamedType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
603case SymbolKind.NamedType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
196=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
125SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
67SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
135symbolInfo.CandidateSymbols.All(symbol => symbol.IsKind(SymbolKind.NamedType) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
47public override SymbolKind Kind => SymbolKind.NamedType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
70public override SymbolKind Kind => SymbolKind.NamedType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
37s is { Kind: SymbolKind.NamedType, IsStatic: true };
Microsoft.CodeAnalysis.CSharp (171)
Binder\Binder.cs (3)
451case SymbolKind.NamedType: 606case SymbolKind.NamedType: 643RoslynDebug.Assert(symbol.Kind == SymbolKind.NamedType ||
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
291treatAsInstanceMemberAccess = !(symbol.IsStatic || symbol.Kind == SymbolKind.NamedType);
Binder\Binder_AnonymousTypes.cs (1)
199case SymbolKind.NamedType:
Binder\Binder_Constraints.cs (1)
34Debug.Assert((containingSymbol.Kind == SymbolKind.NamedType) || (containingSymbol.Kind == SymbolKind.Method));
Binder\Binder_Crefs.cs (1)
819case SymbolKind.NamedType:
Binder\Binder_Expressions.cs (11)
1628bool isNamedType = (symbol.Kind == SymbolKind.NamedType) || (symbol.Kind == SymbolKind.ErrorType); 1732this.ContainingMember() is { Kind: not SymbolKind.NamedType, IsStatic: false } && // We are in an instance member 2158case SymbolKind.NamedType: 2224this.ContainingMember() is not { Kind: not SymbolKind.NamedType, IsStatic: false } containingMember || // We are not in an instance member 2283(containingMember.Kind != SymbolKind.NamedType || currentType.IsScriptClass); 2353if (containingMember.Kind == SymbolKind.NamedType) 3171if ((InConstructorInitializer || InFieldInitializer) && ContainingMemberOrLambda.ContainingSymbol.Kind == SymbolKind.NamedType) 7787Debug.Assert(sym.Kind == SymbolKind.NamedType); 7803Debug.Assert(symbols[0].Kind == SymbolKind.NamedType); 8272left = ReplaceTypeOrValueReceiver(left, symbol.IsStatic || symbol.Kind == SymbolKind.NamedType, diagnostics); 8283case SymbolKind.NamedType:
Binder\Binder_Invocation.cs (1)
2038if (parameterType?.Kind == SymbolKind.NamedType &&
Binder\Binder_Lookup.cs (6)
303if (existingDefinition.Kind != SymbolKind.NamedType || arity == 0) 698if (symbol.Kind == SymbolKind.NamedType) 1299else if (nsOrType.Kind == SymbolKind.NamedType && originalBinder.IsEarlyAttributeBinder) 1323else if (nsOrType.Kind == SymbolKind.NamedType && originalBinder.IsEarlyAttributeBinder) 1714case SymbolKind.NamedType: 1769case SymbolKind.NamedType:
Binder\Binder_NameConflicts.cs (2)
139case SymbolKind.NamedType: 143return containingMemberOrLambda.ContainingSymbol?.Kind == SymbolKind.NamedType &&
Binder\Binder_Operators.cs (1)
1086if (type.Kind != SymbolKind.NamedType)
Binder\Binder_Patterns.cs (1)
887if ((InConstructorInitializer || InFieldInitializer) && ContainingMemberOrLambda.ContainingSymbol.Kind == SymbolKind.NamedType)
Binder\Binder_Symbols.cs (16)
582if (left.Kind == SymbolKind.NamedType) 961if (((AliasSymbol)s).Target.Kind == SymbolKind.NamedType) return true; 963case SymbolKind.NamedType: 1611bool isLeftUnboundGenericType = left.Kind == SymbolKind.NamedType && 1915if (symbol.Kind == SymbolKind.NamedType) 1988if (srcSymbol.Kind == SymbolKind.Namespace && mdSymbol.Kind == SymbolKind.NamedType) 1999else if (srcSymbol.Kind == SymbolKind.NamedType && mdSymbol.Kind == SymbolKind.Namespace) 2010else if (srcSymbol.Kind == SymbolKind.NamedType && mdSymbol.Kind == SymbolKind.NamedType) 2059if (first.Kind == SymbolKind.NamedType && second.Kind == SymbolKind.NamedType) 2101else if (first.Kind == SymbolKind.Namespace && second.Kind == SymbolKind.NamedType) 2114else if (first.Kind == SymbolKind.NamedType && second.Kind == SymbolKind.Namespace) 2199first.Kind == SymbolKind.NamedType && 2200second.Kind == SymbolKind.NamedType && 2260if (singleResult.Kind == SymbolKind.NamedType &&
Binder\InContainerBinder.cs (1)
54get { return (_container.Kind == SymbolKind.NamedType) && ((NamedTypeSymbol)_container).IsScriptClass; }
Binder\InMethodBinder.cs (2)
148if (refKind == RefKind.None && returnType.Kind == SymbolKind.NamedType) 179if (refKind == RefKind.None && returnType.Kind == SymbolKind.NamedType)
Binder\Semantics\AccessCheck.cs (2)
73case SymbolKind.NamedType: 157case SymbolKind.NamedType:
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1281if (destination.Kind == SymbolKind.NamedType) 1333if (destination.Kind == SymbolKind.NamedType)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
699if (target.Type.Kind != SymbolKind.NamedType) 895if (formalType.Type.Kind != SymbolKind.NamedType)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3344if (targetType.Kind != SymbolKind.NamedType)
Binder\WithUsingNamespacesAndTypesBinder.cs (2)
107case SymbolKind.NamedType: 180case SymbolKind.NamedType:
BoundTree\BoundExpressionExtensions.cs (1)
265return receiverType is NamedTypeSymbol { Kind: SymbolKind.NamedType, IsComImport: true };
Compilation\CSharpSemanticModel.cs (3)
1595if ((object)containingType != null && containingType.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)containingType).IsScriptClass) 1748if (lookupResult.Symbols.Any(t => t.Kind == SymbolKind.NamedType || t.Kind == SymbolKind.Namespace || t.Kind == SymbolKind.ErrorType)) 3985if (unwrappedSymbols.Count == 1 && unwrappedSymbols[0].Kind == SymbolKind.NamedType)
Compilation\SyntaxTreeSemanticModel.cs (4)
2422case SymbolKind.NamedType: 2458case SymbolKind.NamedType: 2486case SymbolKind.NamedType: 2543case 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)
145symbol.Kind == SymbolKind.NamedType || 619case SymbolKind.NamedType: 643case SymbolKind.NamedType:
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
568case SymbolKind.NamedType: 590case SymbolKind.NamedType: // Includes delegates.
Compiler\MethodCompiler.cs (1)
506case SymbolKind.NamedType:
Compiler\SynthesizedMetadataCompiler.cs (1)
96case SymbolKind.NamedType:
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
359case SymbolKind.NamedType: 443SymbolKind.NamedType or SymbolKind.ErrorType => ((NamedTypeSymbol)otherContainer).TypeParameters, 765case SymbolKind.NamedType: 781if (symbol.Kind == SymbolKind.NamedType)
Emitter\Model\PEModuleBuilder.cs (7)
242case SymbolKind.NamedType: 251case SymbolKind.NamedType: 362case SymbolKind.NamedType: 373case SymbolKind.NamedType: 384case SymbolKind.NamedType: 584if (symbol.Kind == SymbolKind.NamedType) 1151case SymbolKind.NamedType:
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
100if (AdaptedTypeParameterSymbol.ContainingSymbol.Kind == SymbolKind.NamedType) 115if (AdaptedTypeParameterSymbol.ContainingSymbol.Kind == SymbolKind.NamedType)
Emitter\NoPia\EmbeddedTypesManager.cs (1)
272if (member.Kind != SymbolKind.NamedType)
FlowAnalysis\NullableWalker.cs (1)
2108if (container.Kind == SymbolKind.NamedType)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
108text = EscapeIdentifier(text, symbol?.Kind is SymbolKind.NamedType or SymbolKind.Alias);
Symbols\AbstractTypeMap.cs (1)
101case SymbolKind.NamedType:
Symbols\Attributes\AttributeData.cs (4)
342Debug.Assert(targetSymbol.Kind == SymbolKind.Assembly || targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method); 385Debug.Assert(targetSymbol.Kind == SymbolKind.Assembly || targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method); 439if (targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method) 746case SymbolKind.NamedType:
Symbols\Attributes\SourceAttributeData.cs (1)
290if (parameterType.Kind != SymbolKind.NamedType && parameterType.Kind != SymbolKind.ErrorType)
Symbols\Compilation_WellKnownMembers.cs (4)
221if (type.Kind != SymbolKind.NamedType || type.TypeKind != TypeKind.Class) 1097if (type.Kind != SymbolKind.NamedType) 1115if (type.Kind != SymbolKind.NamedType) 1206if (typeParam.ContainingSymbol.Kind != SymbolKind.NamedType)
Symbols\ConstraintsHelper.cs (1)
587if (type.Kind == SymbolKind.NamedType)
Symbols\ExtendedErrorTypeSymbol.cs (2)
37(containingSymbol.Kind == SymbolKind.NamedType) || 316case SymbolKind.NamedType:
Symbols\MemberSymbolExtensions.cs (5)
224case SymbolKind.NamedType: 275case SymbolKind.NamedType: 296case SymbolKind.NamedType: 328case SymbolKind.NamedType: 346case 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)
1282Debug.Assert(SymbolKind.Event.ToSortOrder() < SymbolKind.NamedType.ToSortOrder()); 1450if (member.Kind == SymbolKind.NamedType)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
173case SymbolKind.NamedType:
Symbols\MethodSymbolExtensions.cs (1)
108case SymbolKind.NamedType:
Symbols\NamedTypeSymbol.cs (1)
764return 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)
85if (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)
447Debug.Assert(tpEnclosing.ContainingSymbol.Kind == SymbolKind.NamedType);
Symbols\Source\SourceAssemblySymbol.cs (2)
2081case SymbolKind.NamedType: 2237if (forwardedType.Kind != SymbolKind.NamedType)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
458case SymbolKind.NamedType: 1995if (symbol.Kind == SymbolKind.NamedType ||
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
662case SymbolKind.NamedType: 671Debug.Assert(symbol.Kind == SymbolKind.Field || symbol.Kind == SymbolKind.NamedType);
Symbols\Source\SourceModuleSymbol.cs (2)
179case SymbolKind.NamedType: 616case SymbolKind.NamedType:
Symbols\Source\SourceNamedTypeSymbol.cs (1)
91if (containingSymbol.Kind == SymbolKind.NamedType)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
789else if (imported.Kind == SymbolKind.NamedType)
Symbols\SubstitutedNamedTypeSymbol.cs (2)
245if (t.Kind == SymbolKind.NamedType) 295if (t.Kind == SymbolKind.NamedType)
Symbols\Symbol.cs (3)
650case SymbolKind.NamedType: 902Debug.Assert(this.Kind == SymbolKind.NamedType || this.Kind == SymbolKind.Method); 1630case SymbolKind.NamedType:
Symbols\Symbol_Attributes.cs (2)
66case SymbolKind.NamedType: 931case SymbolKind.NamedType:
Symbols\SymbolDistinguisher.cs (1)
60case SymbolKind.NamedType:
Symbols\SymbolExtensions.cs (6)
137case SymbolKind.NamedType: 183case SymbolKind.NamedType: 203case SymbolKind.NamedType: 273case SymbolKind.NamedType: 316var upperLevelType = symbol.Kind == SymbolKind.NamedType ? (NamedTypeSymbol)symbol : symbol.ContainingType; 349case SymbolKind.NamedType:
Symbols\SymbolKindExtensions.cs (1)
22case SymbolKind.NamedType:
Symbols\Synthesized\SynthesizedContainer.cs (1)
62if (ContainingSymbol.Kind == SymbolKind.NamedType && ContainingSymbol.IsImplicitlyDeclared)
Symbols\Tuples\TupleTypeSymbol.cs (2)
691case SymbolKind.NamedType: 1065case SymbolKind.NamedType:
Symbols\TypeSymbol.cs (1)
2392if (this.IsAbstract && member.IsAbstract && member.Kind != SymbolKind.NamedType)
Symbols\TypeSymbolExtensions.cs (4)
329return type.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)type).IsInterface; 1747case SymbolKind.NamedType: 1919case SymbolKind.NamedType: 2265if (type.Kind == SymbolKind.NamedType)
Symbols\TypeUnification.cs (2)
140case SymbolKind.NamedType: 273case SymbolKind.NamedType:
Symbols\VarianceSafety.cs (2)
61case SymbolKind.NamedType: 334case SymbolKind.NamedType:
Utilities\TypeSymbolExtensions.cs (2)
46case SymbolKind.NamedType: 129case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
70}, SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
53}, SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
68}, SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
80context.RegisterSymbolStartAction(context => Analyzer.AnalyzeNamedTypeStart(this, context, namedTypeToAnalyzer), SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
71context.RegisterSymbolStartAction(AnalyzeNamedType, SymbolKind.NamedType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
101if (conflict?.IsKind(SymbolKind.NamedType) == true)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
90if (type?.Kind != SymbolKind.NamedType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
216if (symbol?.Kind == SymbolKind.NamedType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1013if (conditionOrType.GetBestOrAllSymbols().FirstOrDefault() is { Kind: SymbolKind.NamedType }) 3045case SymbolKind.NamedType:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
687case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
15845SymbolKind.NamedType); 15862SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (4)
42SymbolKind.NamedType 98Assert.True(ideEngineAnalyzer.CallLog.Any(e => e.CallerName == method && e.SymbolKind == SymbolKind.NamedType)); 111Assert.True(compilerEngineAnalyzer.CallLog.Any(e => e.CallerName == method && e.SymbolKind == SymbolKind.NamedType)); 872=> context.RegisterSymbolAction(OnSymbol, SymbolKind.NamedType);
SymbolKey\SymbolKeyTestBase.cs (2)
162kinds.Add(SymbolKind.NamedType); 226case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (39)
CodeGen\CodeGenClosureLambdaTests.cs (2)
3979}, c.GetMembers().Where(member => member.Kind == SymbolKind.NamedType).Select(member => member.ToString())); 4048}, c.GetMembers().Where(member => member.Kind == SymbolKind.NamedType).Select(member => member.ToString()));
CodeGen\CodeGenDeconstructTests.cs (19)
3700Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 3705Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind); 3753Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 3802Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 3805Assert.Equal(SymbolKind.NamedType, x1Alias.Target.Kind); 3810Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind); 3942Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 3947Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind); 3988Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 3993Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind); 5035Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(xType).Symbol.Kind); 5041Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(yType).Symbol.Kind); 5187Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 5818Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 5821Assert.Equal(SymbolKind.NamedType, x1Alias.Target.Kind); 5826Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x3Type).Symbol.Kind); 5829Assert.Equal(SymbolKind.NamedType, x3Alias.Target.Kind); 5870Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind); 5876Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x3Type).Symbol.Kind);
CodeGen\CodeGenRefLocalTests.cs (1)
4078Assert.Equal(SymbolKind.NamedType, alias.Target.Kind);
CodeGen\CodeGenTupleTest.cs (17)
4502Assert.Equal(SymbolKind.NamedType, unnamedTuple.Kind); 4513Assert.Equal(SymbolKind.NamedType, namedTuple.Kind); 5819Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind); 5824Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind); 5877Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind); 5882Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind); 5916Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind); 5919Assert.Equal(SymbolKind.NamedType, tuple.Kind); 6194Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind); 6198Assert.Equal(SymbolKind.NamedType, types[0].Kind); 6373Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind); 6398Assert.Equal(SymbolKind.NamedType, tuple.Kind); 6547Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind); 6551Assert.Equal(SymbolKind.NamedType, types[0].Kind); 11153Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind); 11417Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind); 12735Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
Attributes\AttributeTests_MarshalAs.cs (2)
34foreach (NamedTypeSymbol type in compilation.GlobalNamespace.GetMembers().Where(s => s.Kind == SymbolKind.NamedType)) 68foreach (NamedTypeSymbol type in compilation.GlobalNamespace.GetMembers().Where(s => s.Kind == SymbolKind.NamedType))
Attributes\AttributeTests_Security.cs (12)
676ParentKind = SymbolKind.NamedType, 695ParentKind = SymbolKind.NamedType, 850ParentKind = SymbolKind.NamedType, 955ParentKind = SymbolKind.NamedType, 974ParentKind = SymbolKind.NamedType, 1081ParentKind = SymbolKind.NamedType, 1100ParentKind = SymbolKind.NamedType, 1249ParentKind = SymbolKind.NamedType, 1326ParentKind = SymbolKind.NamedType, 1406ParentKind = SymbolKind.NamedType, 1425ParentKind = SymbolKind.NamedType, 1519ParentKind = SymbolKind.NamedType,
Attributes\AttributeTests_Tuples.cs (1)
285case SymbolKind.NamedType:
Diagnostics\DiagnosticAnalyzerTests.cs (12)
246context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.NamedType); 516SymbolKind.Namespace, SymbolKind.NamedType, SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.Property); 2859TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType), 2955var analyzer1 = new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, analyzerId: 1); 2989var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method, 3045TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.VariableDeclarationGroup), 3083var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method, 3143var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method, 3191var analyzers = new DiagnosticAnalyzer[] { new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.Invocation) }; 3223var analyzers = new DiagnosticAnalyzer[] { new SymbolStartAnalyzer(topLevelAction: true, SymbolKind.NamedType, OperationKind.FieldReference) }; 3265var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType)); 3311var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType));
Diagnostics\GetDiagnosticsTests.cs (2)
715var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.VariableDeclaration)); 1729}, SymbolKind.NamedType);
FlowAnalysis\FlowTestBase.cs (1)
55case SymbolKind.NamedType:
Semantics\PatternMatchingTests.cs (3)
3449Assert.Equal(SymbolKind.NamedType, typeInfo1.Type.Kind); 3453Assert.Equal(SymbolKind.NamedType, typeInfo1.Type.Kind); 3459Assert.Equal(SymbolKind.NamedType, typeInfo2.Type.Kind);
Semantics\PrimaryConstructorTests.cs (4)
4082context.RegisterSymbolAction(Handle, SymbolKind.NamedType); 4168context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType); 5485context.RegisterSymbolAction(Handle, SymbolKind.NamedType); 5572context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType);
Semantics\RecordTests.cs (2)
26520context.RegisterSymbolAction(Handle, SymbolKind.NamedType); 26615context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.Features (11)
ChangeSignature\CSharpChangeSignatureService.cs (1)
166if (typeSymbol != null && typeSymbol.IsKind(SymbolKind.NamedType) && ((ITypeSymbol)typeSymbol).TypeKind == TypeKind.Delegate)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
287containingSymbol.Kind != SymbolKind.NamedType)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
84member.Kind == SymbolKind.NamedType ||
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
261else if (symbol.IsKind(SymbolKind.NamedType) || symbol is IAliasSymbol aliasSymbol && aliasSymbol.Target.IsType)
NavigationBar\CSharpNavigationBarItemService.cs (1)
70member.Kind == SymbolKind.NamedType ||
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
70}, SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
53}, SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
68}, SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
80context.RegisterSymbolStartAction(context => Analyzer.AnalyzeNamedTypeStart(this, context, namedTypeToAnalyzer), SymbolKind.NamedType);
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
71context.RegisterSymbolStartAction(AnalyzeNamedType, SymbolKind.NamedType);
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
90if (type?.Kind != SymbolKind.NamedType)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1311}, SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (39)
Semantics\ColorColorTests.cs (19)
286SymbolKind.NamedType, "E", 318SymbolKind.NamedType, "C", 319SymbolKind.NamedType, "C.Inner", 533SymbolKind.NamedType, "E", 709SymbolKind.NamedType, "E", 799SymbolKind.NamedType, "E", 877SymbolKind.NamedType, "E", 907SymbolKind.NamedType, "C", 931SymbolKind.NamedType, "C", 955SymbolKind.NamedType, "Color", 1323SymbolKind.NamedType, "E", 1353SymbolKind.NamedType, "E", 1411SymbolKind.NamedType, "E", 1790Assert.Equal(SymbolKind.NamedType, actualSymbol.Symbol.Kind); 1824Assert.Equal(SymbolKind.NamedType, actualSymbol.Symbol.Kind); 1889Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind); 1903Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind); 2003Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind); 2017Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind);
Semantics\InteractiveSemanticModelTests.cs (4)
164Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 215Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 247Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 249Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
Semantics\LocalFunctionTests.cs (3)
7891VerifyTParameter(comp, 1, "C", symbolKind: SymbolKind.NamedType, lookupFinds: "System.String C.TParameter"); 8365VerifyTParameter(comp, 1, "C", symbolKind: SymbolKind.NamedType, lookupFinds: "System.String C.TParameter"); 8427VerifyTParameter(comp, 1, "C", lookupFinds: "System.String C.TParameter", symbolKind: SymbolKind.NamedType);
Semantics\LookupTests.cs (1)
1533var typeA = (INamedTypeSymbol)actual_lookupSymbols.Where((sym) => sym.Name.Equals("A") && sym.Kind == SymbolKind.NamedType).Single();
Semantics\NativeIntegerTests.cs (2)
223Assert.Equal(SymbolKind.NamedType, type.Kind); 238Assert.Equal(SymbolKind.NamedType, type.Kind);
Semantics\RecordStructTests.cs (2)
6186context.RegisterSymbolAction(Handle, SymbolKind.NamedType); 6282context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType);
Semantics\ScriptSemanticsTests.cs (1)
597if (symbol.Kind == SymbolKind.NamedType)
Semantics\TopLevelStatementsTests.cs (6)
708Assert.Equal(SymbolKind.NamedType, local.ContainingSymbol.ContainingSymbol.Kind); 4225Assert.Equal(SymbolKind.NamedType, local.ContainingSymbol.ContainingSymbol.Kind); 4903Assert.Equal(SymbolKind.NamedType, label.ContainingSymbol.ContainingSymbol.Kind); 4988Assert.Equal(SymbolKind.NamedType, label.ContainingSymbol.ContainingSymbol.Kind); 6606context.RegisterSymbolStartAction(Handle2, SymbolKind.NamedType); 7271context.RegisterSymbolAction(Handle3, SymbolKind.NamedType);
SourceGeneration\GeneratorDriverTests.cs (1)
185context.RegisterSymbolAction(Handle, SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (146)
Compilation\GetSemanticInfoTests.cs (1)
1562Assert.Equal(SymbolKind.NamedType, symbol.Kind);
Compilation\GetUnusedImportDirectivesTests.cs (1)
197Assert.Equal(SymbolKind.NamedType, info.Symbol.Kind);
Compilation\SemanticModelAPITests.cs (16)
2817speculatedUsingExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException"); 2837speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException"); 2868speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException"); 2871speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException"); 2874speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException"); 2938Assert.Equal(SymbolKind.NamedType, symbol.Kind); 2944Assert.Equal(SymbolKind.NamedType, symbol.Kind); 2978Assert.Equal(SymbolKind.NamedType, symbol.Kind); 2984Assert.Equal(SymbolKind.NamedType, symbol.Kind); 3023Assert.Equal(SymbolKind.NamedType, symbol.Kind); 3028Assert.Equal(SymbolKind.NamedType, symbol.Kind); 3033Assert.Equal(SymbolKind.NamedType, symbol.Kind); 3039Assert.Equal(SymbolKind.NamedType, symbol.Kind); 3061Assert.Equal(SymbolKind.NamedType, symbol.Kind); 3617Assert.Equal(SymbolKind.NamedType, oldSymbol.Kind); 3624Assert.Equal(SymbolKind.NamedType, newSymbol.Kind);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (8)
1090Assert.Equal(SymbolKind.NamedType, symbols[0].Kind); 1131Assert.Equal(SymbolKind.NamedType, symbols[0].Kind); 1180Assert.Equal(SymbolKind.NamedType, symbols[0].Kind); 1388Assert.True(symbolsInC.Any(s => s.Name == "A" && s.Kind == SymbolKind.NamedType)); 1389Assert.True(symbolsInC.Any(s => s.Name == "B" && s.Kind == SymbolKind.NamedType)); 1390Assert.True(symbolsInC.Any(s => s.Name == "C" && s.Kind == SymbolKind.NamedType)); 3639Assert.Equal(SymbolKind.NamedType, enumTypeSymbol.Kind); 4747Assert.Equal(SymbolKind.NamedType, enumSymbol.Kind);
Compilation\SemanticModelGetSemanticInfoTests.cs (77)
91Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 126Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 160Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 201Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 242Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 472Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 512Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 555Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 557Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 603Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 605Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 651Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 653Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 2197Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2269Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2618Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3498Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3595Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3633Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3677Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3711Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3745Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3779Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3905Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 4013Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 4223Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 5245Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 5454Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 5456Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 5458Assert.Equal(SymbolKind.NamedType, sortedCandidates[2].Kind); 6254Assert.Equal(SymbolKind.NamedType, symbol.Kind); 6525Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6560Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6597Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7053Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7525Assert.Equal(SymbolKind.NamedType, semanticInfo.Type.Kind); 7824Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7889Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 9133Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9311Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 9368Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9370Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 9427Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9429Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 9538Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9540Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 9575Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9577Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 9624Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9626Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 9790Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9792Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 9896Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 9898Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 10109Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 10146Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 10327Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 10329Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 10361Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 10363Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 10395Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 10397Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 10438Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 10440Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind); 11433Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 12161Assert.Equal(SymbolKind.NamedType, semanticInfo.CandidateSymbols[0].Kind); 12229Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 12365Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 12401Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 13957Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14048Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14087Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14207Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14428Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 14517Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind); 15309Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 15411Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
DeclarationTests.cs (1)
265Assert.Equal(SymbolKind.NamedType, comp.GlobalNamespace.GetMembers()[0].Kind);
DocumentationComments\CrefTests.cs (2)
742Assert.Equal(SymbolKind.NamedType, GetReferencedSymbol(crefSyntax, compilation).Kind); 787Assert.Equal(SymbolKind.NamedType, GetReferencedSymbol(crefSyntax, compilation).Kind);
DocumentationComments\DocumentationCommentIDTests.cs (1)
212Assert.Equal(SymbolKind.NamedType, symbol.Kind);
Symbols\Metadata\MetadataTypeTests.cs (4)
88Assert.Equal(SymbolKind.NamedType, class1.Kind); 138Assert.Equal(SymbolKind.NamedType, type1.Kind); 186Assert.Equal(SymbolKind.NamedType, type1.Kind); 236Assert.Equal(SymbolKind.NamedType, type1.Kind);
Symbols\Metadata\PE\LoadingFields.cs (1)
109Assert.Equal(SymbolKind.NamedType, csFields.GetMembers("FFF").Single().Kind);
Symbols\Metadata\PE\LoadingMethods.cs (2)
95Assert.Equal(SymbolKind.NamedType, varC108.Kind); 100Assert.Equal(SymbolKind.NamedType, sameName1.Kind);
Symbols\Metadata\PE\MissingTypeReferences.cs (1)
210Assert.Equal(SymbolKind.NamedType, genericBase.ContainingSymbol.Kind);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (9)
95Assert.Equal(SymbolKind.NamedType, importedField.Type.Kind); 98Assert.Equal(SymbolKind.NamedType, outer.Kind); 118Assert.Equal(SymbolKind.NamedType, var1.Type.Kind); 165Assert.Equal(SymbolKind.NamedType, var1.Type.Kind); 354Assert.Equal(SymbolKind.NamedType, var1.Type.Kind); 371Assert.Equal(SymbolKind.NamedType, var1.Type.Kind); 412Assert.Equal(SymbolKind.NamedType, localField.Type.Kind); 450Assert.Equal(SymbolKind.NamedType, m.ReturnType.Kind); 468Assert.Equal(SymbolKind.NamedType, classLocalType.Kind);
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (3)
102Assert.Equal(SymbolKind.NamedType, methodSymbol.Parameters.Single(arg => arg.Name == "arg").Type.Kind); 441Assert.Equal(SymbolKind.NamedType, methodSymbol.ReturnType.Kind); 482Assert.Equal(SymbolKind.NamedType, embeddedType.ReturnType.Kind);
Symbols\Retargeting\RetargetingTests.cs (2)
1176case SymbolKind.NamedType: 1300case SymbolKind.NamedType:
Symbols\Source\DelegateTests.cs (2)
129Assert.Equal(SymbolKind.NamedType, v.Kind); 207Assert.Equal(SymbolKind.NamedType, d.Kind);
Symbols\Source\MethodTests.cs (3)
41Assert.Equal(SymbolKind.NamedType, x.Type.Kind); 123Assert.Equal(SymbolKind.NamedType, x.Type.Kind); 147Assert.Equal(SymbolKind.NamedType, x.Type.Kind);
Symbols\Source\SourcePlusMetadataTests.cs (8)
29Assert.Equal(SymbolKind.NamedType, x.BaseType().Kind); 31Assert.Equal(SymbolKind.NamedType, y.BaseType().Kind); 46Assert.Equal(SymbolKind.NamedType, x.BaseType().Kind); 64Assert.Equal(SymbolKind.NamedType, y.BaseType().Kind); 66Assert.Equal(SymbolKind.NamedType, z.BaseType().Kind); 84Assert.Equal(SymbolKind.NamedType, a.BaseType().Kind); 255Assert.Equal(SymbolKind.NamedType, key.Kind); 256Assert.Equal(SymbolKind.NamedType, nam.Kind);
Symbols\TypeTests.cs (4)
855Assert.Equal(SymbolKind.NamedType, igoo.Kind); 868Assert.Equal(SymbolKind.NamedType, classA.Kind); 880Assert.Equal(SymbolKind.NamedType, structS.Kind); 909Assert.Equal(SymbolKind.NamedType, varA.Type.Kind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
EmitMetadataTestBase.cs (1)
146kind = SymbolKind.NamedType;
Extensions.cs (2)
444if (typeSym.Kind == SymbolKind.NamedType && 848case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
58case SymbolKind.NamedType:
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
Recommendations\CSharpRecommendationServiceRunner.cs (3)
622if (leftHandBinding.GetBestOrAllSymbols().FirstOrDefault().MatchesKind(SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Alias)) 719symbol.Kind is SymbolKind.NamedType or SymbolKind.Namespace or SymbolKind.Alias) 741if (symbol.Kind is SymbolKind.NamedType or SymbolKind.Namespace or SymbolKind.TypeParameter)
Simplification\CSharpSimplificationService.Expander.cs (1)
649if (symbol.Kind is SymbolKind.NamedType or
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
145(symbol.Kind != SymbolKind.Namespace && symbol.Kind != SymbolKind.NamedType))
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
420if (rightSymbol != null && (rightSymbol.IsStatic || rightSymbol.Kind == SymbolKind.NamedType))
Simplification\Simplifiers\NameSimplifier.cs (1)
272if (!name.IsVar && symbol.Kind == SymbolKind.NamedType && !name.IsLeftSideOfQualifiedName())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
101if (conflict?.IsKind(SymbolKind.NamedType) == true)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
216if (symbol?.Kind == SymbolKind.NamedType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1013if (conditionOrType.GetBestOrAllSymbols().FirstOrDefault() is { Kind: SymbolKind.NamedType }) 3045case SymbolKind.NamedType:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
687case SymbolKind.NamedType:
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\AbstractEditorInlineRenameService.SymbolRenameInfo.cs (1)
156if (RenameSymbol.Kind == SymbolKind.NamedType &&
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (1)
1196}, SymbolKind.NamedType);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
1048}, SymbolKind.NamedType);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\PeekHelpers.cs (1)
64case SymbolKind.NamedType:
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (12)
CodeFixes\CodeFixServiceTests.vb (1)
201context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType)
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
77context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType)
Diagnostics\DiagnosticServiceTests.vb (7)
1463End Sub, SymbolKind.NamedType) 1544context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType) 1569context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType) 1604End Sub, SymbolKind.NamedType) 1621context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType) 1745context.RegisterSymbolAction(Sub(s) Return, SymbolKind.NamedType) 1777context.RegisterSymbolAction(AddressOf compilationAnalyzer.AnalyzeSymbol, SymbolKind.NamedType)
FindReferences\FindReferencesTests.LinkedFiles.vb (3)
73references = references.Where(Function(r) r.Definition.IsKind(SymbolKind.NamedType)) 115references = references.Where(Function(r) r.Definition.IsKind(SymbolKind.NamedType)) 129references = references.Where(Function(r) r.Definition.IsKind(SymbolKind.NamedType))
Microsoft.CodeAnalysis.Features (36)
ChangeSignature\AbstractChangeSignatureService.cs (1)
277if (symbol.Definition.Kind == SymbolKind.NamedType)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
366case SymbolKind.NamedType:
CodeLens\CodeLensFindReferenceProgress.cs (1)
123var isConstructorInvocation = _queriedSymbol.Kind == SymbolKind.NamedType &&
Completion\CommonCompletionUtilities.cs (1)
128case SymbolKind.NamedType:
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
60if (symbol.Kind == SymbolKind.NamedType)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
282case SymbolKind.NamedType:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
325SymbolKind.NamedType => GetDisplayName((INamedTypeSymbol)symbol), 2458case SymbolKind.NamedType when oldMember is INamedTypeSymbol { DelegateInvokeMethod: { } oldInvokeMethod }:
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
199=> symbol.Kind == SymbolKind.NamedType;
ExtractInterface\AbstractExtractInterfaceService.cs (1)
96if (type == null || type.Kind != SymbolKind.NamedType)
GenerateType\AbstractGenerateTypeService.State.cs (1)
302!symbol.IsKind(SymbolKind.NamedType) ||
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (2)
37SymbolKind.NamedType or 50SymbolKind.NamedType => new WrappedNamedTypeSymbol((INamedTypeSymbol)m, canImplementImplicitly, docCommentFormattingService),
MetadataAsSource\MetadataAsSourceFileService.cs (1)
291case SymbolKind.NamedType:
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
59topLevelNamedType.Kind != SymbolKind.NamedType)
QuickInfo\CommonSemanticQuickInfoProvider.cs (2)
172s1.Kind == SymbolKind.NamedType ? -1 : 173s2.Kind == SymbolKind.NamedType ? 1 : 0)];
Rename\SymbolicRenameInfo.cs (1)
170if (symbol.Kind == SymbolKind.NamedType &&
Shared\Extensions\ISymbolExtensions_2.cs (1)
55case SymbolKind.NamedType:
Shared\Extensions\ISymbolExtensions_Sorting.cs (3)
165if (s1.Kind == SymbolKind.NamedType || s2.Kind == SymbolKind.NamedType) 169: s1.Kind == SymbolKind.NamedType ? -1 : 1;
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
85}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
767case SymbolKind.NamedType:
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
225}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
71}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
225}, SymbolKind.NamedType);
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (1)
114case SymbolKind.NamedType:
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
135symbolInfo.CandidateSymbols.All(symbol => symbol.IsKind(SymbolKind.NamedType) &&
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.Test.Utilities (27)
Compilation\CompilationExtensions.cs (1)
260case SymbolKind.NamedType:
Diagnostics\CommonDiagnosticAnalyzers.cs (21)
767}, SymbolKind.NamedType); 964cc.RegisterSymbolAction(c => ReportDiagnostic(c.ReportDiagnostic, ActionKind.Symbol), SymbolKind.NamedType); 1004}, SymbolKind.NamedType); 1044}, SymbolKind.NamedType); 1179}, SymbolKind.NamedType); 1211}, SymbolKind.NamedType); 1538}, SymbolKind.NamedType); 1602}, SymbolKind.NamedType); 1700compilationStartContext.RegisterSymbolAction(symbolContext => namedTypes.Add(symbolContext.Symbol), SymbolKind.NamedType); 1816}, SymbolKind.NamedType); 2430}, SymbolKind.NamedType); 2441}, SymbolKind.NamedType); 2451}, SymbolKind.NamedType); 2545SymbolKind.NamedType); 2751SymbolKind.NamedType, SymbolKind.Method); 2767}, SymbolKind.NamedType); 2940context.RegisterSymbolAction(context => HandleCallback(context.Symbol.Locations[0], context.Compilation, context.ReportDiagnostic, context.CancellationToken), SymbolKind.NamedType); 3016context.RegisterSymbolAction(symbolContext => AnalyzedSymbols.Add(symbolContext.Symbol), SymbolKind.NamedType, SymbolKind.Method); 3036}, SymbolKind.NamedType); 3131}, SymbolKind.NamedType); 3148}, SymbolKind.NamedType);
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (3)
75SymbolKind.NamedType, 102SymbolKind.NamedType); 286SymbolKind.NamedType);
Diagnostics\TrackingDiagnosticAnalyzer.cs (2)
84SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Parameter, SymbolKind.Property 133new { SymbolKind = SymbolKind.NamedType, MethodKind = InvalidMethodKind, ReturnsVoid = false },
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
79c.RegisterSymbolAction(b => ThrowIfMatch(nameof(c.RegisterSymbolAction), new AnalysisContextInfo(b.Compilation, b.Symbol)), SymbolKind.NamedType);
Microsoft.CodeAnalysis.VisualBasic (150)
Binding\Binder.vb (1)
403Case SymbolKind.NamedType
Binding\Binder_Attributes.vb (2)
184ElseIf symbol.Kind <> SymbolKind.NamedType Then 246If errorType.CandidateSymbols.Length = 1 AndAlso errorType.CandidateSymbols(0).Kind = SymbolKind.NamedType Then
Binding\Binder_Constraints.vb (2)
18Debug.Assert((containingSymbol.Kind = SymbolKind.NamedType) OrElse (containingSymbol.Kind = SymbolKind.Method)) 48Debug.Assert((containingSymbol.Kind = SymbolKind.NamedType) OrElse (containingSymbol.Kind = SymbolKind.Method))
Binding\Binder_Conversions.vb (1)
699If targetType.Kind <> SymbolKind.NamedType Then
Binding\Binder_Expressions.vb (3)
1919Case SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Parameter 3298Case SymbolKind.NamedType, SymbolKind.ErrorType 3358Case SymbolKind.NamedType, SymbolKind.ErrorType
Binding\Binder_Imports.vb (1)
191If importedSymbol.Kind = SymbolKind.NamedType Then
Binding\Binder_Invocation.vb (1)
288ElseIf targetType.Kind = SymbolKind.NamedType AndAlso targetType.TypeKind = TypeKind.Delegate Then
Binding\Binder_Lookup.vb (2)
167If unwrappedSym.Kind = SymbolKind.NamedType AndAlso unwrappedSym.EmbeddedSymbolKind = EmbeddedSymbolKind.EmbeddedAttribute AndAlso 181Case SymbolKind.NamedType, SymbolKind.ErrorType
Binding\Binder_ObjectInitializer.vb (1)
28extendedErrorType.CandidateSymbols(0).Kind = SymbolKind.NamedType Then
Binding\Binder_Statements.vb (2)
4091collectionType.Kind <> SymbolKind.NamedType AndAlso 4696If structureType.Kind = SymbolKind.NamedType Then
Binding\Binder_Symbols.vb (5)
304If diagBag.AccumulatesDiagnostics AndAlso typeSymbol.Kind = SymbolKind.NamedType AndAlso binder.SourceModule.AnyReferencedAssembliesAreLinked Then 717While currentSymbol IsNot Nothing AndAlso currentSymbol.Kind = SymbolKind.NamedType 976Dim isLeftUnboundGenericType As Boolean = leftSymbol.Kind = SymbolKind.NamedType AndAlso DirectCast(leftSymbol, NamedTypeSymbol).IsUnboundGenericType 992If lookupResult.HasSingleSymbol AndAlso lookupResult.SingleSymbol.Kind = SymbolKind.NamedType Then 1053Dim isLeftUnboundGenericType As Boolean = leftSymbol.Kind = SymbolKind.NamedType AndAlso DirectCast(leftSymbol, NamedTypeSymbol).IsUnboundGenericType
Binding\DocumentationCommentCrefBinder.vb (4)
693If containingSymbol.Kind <> SymbolKind.NamedType Then 706If containingSymbol.Kind = SymbolKind.NamedType Then 768Case SymbolKind.NamedType, SymbolKind.ArrayType 855Case SymbolKind.NamedType, SymbolKind.ErrorType
Binding\DocumentationCommentCrefBinder_Compat.vb (2)
185Case SymbolKind.NamedType, SymbolKind.ArrayType 400Case SymbolKind.NamedType, SymbolKind.ErrorType
Binding\DocumentationCommentParamBinder.vb (1)
28Case SymbolKind.NamedType
Binding\DocumentationCommentTypeParamBinder.vb (1)
41Case SymbolKind.NamedType
Binding\ForOrForEachBlockBinder.vb (1)
88result.Symbols(0).Kind <> SymbolKind.NamedType AndAlso
Binding\ImportedTypesAndNamespacesMembersBinder.vb (2)
136If importedSym.NamespaceOrType.Kind = SymbolKind.NamedType Then 150If importedSym.NamespaceOrType.Kind = SymbolKind.NamedType Then
Binding\LookupResult.vb (1)
993Debug.Assert(type.Kind = SymbolKind.NamedType)
Compilation\ClsComplianceChecker.vb (7)
290Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse symbol.Kind = SymbolKind.Field OrElse symbol.Kind = SymbolKind.Property OrElse symbol.Kind = SymbolKind.Event OrElse symbol.Kind = SymbolKind.Method) 305If symbol.Kind = SymbolKind.NamedType Then 327ElseIf symbol.IsMustOverride AndAlso symbol.Kind <> SymbolKind.NamedType Then 657Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse Not (TypeOf symbol Is TypeSymbol), "Type kinds without declarations are handled elsewhere.") 696Case SymbolKind.Assembly, SymbolKind.NetModule, SymbolKind.NamedType 731If symbol.IsFromCompilation(Me._compilation) OrElse symbol.Kind <> SymbolKind.NamedType Then 845Return symbol.Kind = SymbolKind.NamedType AndAlso (DirectCast(symbol, NamedTypeSymbol)).IsImplicitClass
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (2)
735Case SymbolKind.NamedType 766Case SymbolKind.NamedType
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
119Case SymbolKind.NamedType
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
120symbol.Kind = SymbolKind.NamedType OrElse
Compilation\MethodCompiler.vb (2)
390If symbol.Kind = SymbolKind.NamedType Then 656Case SymbolKind.NamedType
Compilation\SemanticModel.vb (2)
1080If candidateSymbols.Length = 1 AndAlso candidateSymbols(0).Kind = SymbolKind.NamedType Then 3535Case SymbolKind.NamedType
Compilation\SyntaxTreeSemanticModel.vb (2)
528SymbolKind.NamedType 1077Case SymbolKind.NamedType
Compilation\SynthesizedMetadataCompiler.vb (1)
52Case SymbolKind.NamedType
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
110If containingSymbol.Kind = SymbolKind.NamedType Then
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (4)
302Case SymbolKind.NamedType 330Case SymbolKind.NamedType, 493Case SymbolKind.NamedType, 508If symbol.Kind = SymbolKind.NamedType Then
Emit\NoPia\EmbeddedTypesManager.vb (1)
224If member.Kind <> SymbolKind.NamedType Then
Emit\PEModuleBuilder.vb (7)
217Case SymbolKind.Namespace, SymbolKind.NamedType 225Case SymbolKind.NamedType 233Case SymbolKind.NamedType 364If sym.Kind = SymbolKind.NamedType Then 504If symbol.Kind = SymbolKind.NamedType Then 668Case SymbolKind.Namespace, SymbolKind.NamedType 676Case SymbolKind.NamedType
Emit\SymbolTranslator.vb (1)
256Case SymbolKind.NamedType, SymbolKind.ErrorType
Emit\TypeParameterSymbolAdapter.vb (4)
92If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.NamedType Then 104If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.NamedType Then 147If kind = SymbolKind.NamedType Then 157If kind = SymbolKind.NamedType Then
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
382If returnType.Kind = SymbolKind.NamedType AndAlso
Semantics\AccessCheck.vb (7)
106Case SymbolKind.NamedType 498Case SymbolKind.NamedType, SymbolKind.ErrorType 603Case SymbolKind.NamedType 867If Not (exposingMember.Kind = SymbolKind.NamedType AndAlso IsTypeNestedIn(exposedType, DirectCast(exposingMember, NamedTypeSymbol))) Then 871Debug.Assert(exposingMember.Kind = SymbolKind.NamedType) 998If member.Kind = SymbolKind.NamedType Then 1171If member.Kind = SymbolKind.NamedType Then
Semantics\Operators.vb (4)
438ElseIf (sourceType.Kind = SymbolKind.NamedType OrElse sourceType.Kind = SymbolKind.TypeParameter) AndAlso 439(targetType.Kind = SymbolKind.NamedType OrElse targetType.Kind = SymbolKind.TypeParameter) Then 2866If type1 IsNot Nothing AndAlso type1.Kind = SymbolKind.NamedType AndAlso Not type1.IsInterfaceType() Then 2885If type2 IsNot Nothing AndAlso type2.Kind = SymbolKind.NamedType AndAlso Not type2.IsInterfaceType() Then
Semantics\OverloadResolution.vb (4)
4545If leftType.Kind = SymbolKind.NamedType AndAlso rightType.Kind = SymbolKind.NamedType Then 4681If symbol.ContainingSymbol.Kind = SymbolKind.NamedType Then 4716Case SymbolKind.NamedType, SymbolKind.ErrorType
Semantics\TypeInference\TypeArgumentInference.vb (8)
1093Case SymbolKind.NamedType 1315Case SymbolKind.NamedType 1425ElseIf parameterType.Kind = SymbolKind.NamedType Then 1432Dim argumentTypeAsNamedType = If(argumentType.Kind = SymbolKind.NamedType, DirectCast(argumentType.GetTupleUnderlyingTypeOrSelf(), NamedTypeSymbol), Nothing) 1772Dim fixedTypeAsNamedType = If(fixedType.Kind = SymbolKind.NamedType, DirectCast(fixedType, NamedTypeSymbol), Nothing) 1790If baseSearchTypeKind <> SymbolKind.NamedType AndAlso baseSearchTypeKind <> SymbolKind.TypeParameter AndAlso 2172lambdaReturnType IsNot Nothing AndAlso lambdaReturnType.Kind = SymbolKind.NamedType AndAlso 2173returnType IsNot Nothing AndAlso returnType.Kind = SymbolKind.NamedType Then
Symbols\Attributes\AttributeData.vb (4)
214Debug.Assert(targetSymbol.Kind = SymbolKind.Assembly OrElse targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method) 284Debug.Assert(targetSymbol.Kind = SymbolKind.Assembly OrElse targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method) 333If targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method Then 594Case SymbolKind.NamedType
Symbols\Attributes\SourceAttributeData.vb (1)
172If parameterType.Kind <> SymbolKind.NamedType AndAlso parameterType.Kind <> SymbolKind.ErrorType Then
Symbols\BaseTypeAnalysis.vb (1)
55Debug.Assert(current.Head.Kind = SymbolKind.NamedType)
Symbols\ConstraintsHelper.vb (1)
438If type.Kind = SymbolKind.NamedType Then
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (3)
265Case SymbolKind.NamedType 307Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse 345Case SymbolKind.NamedType
Symbols\Metadata\PE\MetadataDecoder.vb (1)
202Case SymbolKind.NamedType, SymbolKind.ErrorType
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
642Case SymbolKind.NamedType
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
137Case SymbolKind.NamedType
Symbols\NamedTypeSymbol.vb (1)
661Return SymbolKind.NamedType
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
75If s.Kind = SymbolKind.NamedType AndAlso DirectCast(s, NamedTypeSymbol).IsExplicitDefinitionOfNoPiaLocalType Then
Symbols\Retargeting\RetargetingSymbolTranslator.vb (3)
129Debug.Assert(symbol.Kind <> SymbolKind.NamedType OrElse DirectCast(symbol, NamedTypeSymbol).PrimitiveTypeCode = PrimitiveTypeCode.NotPrimitive) 248If type.ContainingSymbol.Kind <> SymbolKind.NamedType AndAlso 554Case SymbolKind.ErrorType, SymbolKind.NamedType
Symbols\Source\OverrideHidingHelper.vb (2)
363If member.Kind = SymbolKind.NamedType AndAlso 364hiddenMember.Kind = SymbolKind.NamedType AndAlso
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
298If member.Kind <> SymbolKind.NamedType Then 820Case SymbolKind.NamedType
Symbols\Source\SourceMethodSymbol.vb (1)
1132Return container.FindMember(delegateIdentifier.ValueText, SymbolKind.NamedType, delegateIdentifier.Span, tree)
Symbols\Source\SourceModuleSymbol.vb (2)
316Case SymbolKind.NamedType 1177Case SymbolKind.NamedType
Symbols\Source\SourceNamedTypeSymbol.vb (2)
94If containingSymbol.Kind = SymbolKind.NamedType Then 507Case SymbolKind.NamedType
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
378Case SymbolKind.Field, SymbolKind.NamedType
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (3)
213If current.Kind = SymbolKind.NamedType Then 228Case SymbolKind.Namespace, SymbolKind.NamedType 242Case SymbolKind.NamedType
Symbols\SubstitutedNamedType.vb (2)
362Case SymbolKind.NamedType 445Case SymbolKind.NamedType
Symbols\Symbol.vb (2)
210Case SymbolKind.NamedType 611Case SymbolKind.NamedType
Symbols\Symbol_Attributes.vb (2)
94Case SymbolKind.NamedType 587Case SymbolKind.Assembly, SymbolKind.NamedType, SymbolKind.Method
Symbols\SymbolExtensions.vb (3)
33Case SymbolKind.NamedType 308Case SymbolKind.NamedType, SymbolKind.ErrorType 404Dim upperLevelType = If(symbol.Kind = SymbolKind.NamedType, DirectCast(symbol, NamedTypeSymbol), symbol.ContainingType)
Symbols\Tuples\TupleTypeSymbol.vb (5)
140Return SymbolKind.NamedType 783Case SymbolKind.NamedType 950Debug.Assert(Not GetMembers().Any(Function(m) m.Kind = SymbolKind.NamedType)) 956Debug.Assert(Not GetMembers().Any(Function(m) m.Kind = SymbolKind.NamedType)) 962Debug.Assert(Not GetMembers().Any(Function(m) m.Kind = SymbolKind.NamedType))
Symbols\TypeSubstitution.vb (1)
569((targetGenericDefinition.Kind = SymbolKind.NamedType OrElse targetGenericDefinition.Kind = SymbolKind.ErrorType) AndAlso
Symbols\TypeSymbolExtensions.vb (4)
134Return type.Kind = SymbolKind.NamedType AndAlso DirectCast(type, NamedTypeSymbol).IsInterface 191type.Kind = SymbolKind.NamedType AndAlso 212type.Kind = SymbolKind.NamedType AndAlso 497If this.Kind = SymbolKind.NamedType AndAlso Not DirectCast(this, NamedTypeSymbol).IsInterface Then
Symbols\UnboundGenericType.vb (1)
501If member.Kind = SymbolKind.NamedType Then
Symbols\WellKnownMembers.vb (4)
355If type.Kind <> SymbolKind.NamedType Then 580If type.Kind <> SymbolKind.NamedType Then 599If type.Kind <> SymbolKind.NamedType Then 670If typeParam.ContainingSymbol.Kind <> SymbolKind.NamedType Then
Utilities\TypeUnification.vb (2)
106Case SymbolKind.NamedType, SymbolKind.ErrorType 243Case SymbolKind.NamedType, SymbolKind.ErrorType
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicCommonGenerationServiceMethods.vb (1)
31Return symbol.Kind = SymbolKind.Namespace Or symbol.Kind = SymbolKind.NamedType Or AreSpecialOptionsActive(semanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
799Case SymbolKind.NamedType
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
10982context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType) 11006context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (42)
Attributes\AttributeTests_MarshalAs.vb (2)
27For Each typeSym As NamedTypeSymbol In c.GlobalNamespace.GetMembers().Where(Function(s) s.Kind = SymbolKind.NamedType) 49For Each typeSym As NamedTypeSymbol In c.GlobalNamespace.GetMembers().Where(Function(s) s.Kind = SymbolKind.NamedType)
Attributes\AttributeTests_Tuples.vb (1)
272Case SymbolKind.NamedType
CodeGen\CodeGenClosureLambdaTests.vb (1)
3497}, c.GetMembers().Where(Function(member) member.Kind = SymbolKind.NamedType).Select(Function(member) member.ToString()))
CodeGen\CodeGenScriptTests.vb (1)
245If symbol.Kind = SymbolKind.NamedType Then
CodeGen\CodeGenTuples.vb (21)
6893Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind) 6897Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 6927Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind) 6930Assert.Equal(SymbolKind.NamedType, tuple.Kind) 6950Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 6970Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 6991Assert.Equal(SymbolKind.NamedType, tupleWithSomeNames.Kind) 7009Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 7153Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 7157Assert.Equal(SymbolKind.NamedType, types(0).Kind) 7249Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind) 7253Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 7278Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind) 7281Assert.Equal(SymbolKind.NamedType, tuple.Kind) 7300Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 7318Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 7334Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 7435Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind) 7439Assert.Equal(SymbolKind.NamedType, types(0).Kind) 15033Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind) 16291Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind)
CodeGen\CodeGenVBCore.vb (6)
2861Case SymbolKind.NamedType 3053Case SymbolKind.NamedType 3180Case SymbolKind.NamedType 3183Where x.Kind <> SymbolKind.NamedType 3259Case SymbolKind.NamedType 3267Where x.Kind <> SymbolKind.NamedType
Emit\CompilationEmitTests.vb (10)
2575Case SymbolKind.NamedType 2666.ParentKind = SymbolKind.NamedType, 2684.ParentKind = SymbolKind.NamedType, 2770.ParentKind = SymbolKind.NamedType, 2890.ParentKind = SymbolKind.NamedType, 2908.ParentKind = SymbolKind.NamedType, 3095.ParentKind = SymbolKind.NamedType, 3113.ParentKind = SymbolKind.NamedType, 3197.ParentKind = SymbolKind.NamedType, 3614.ParentKind = SymbolKind.NamedType,
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.vb (1)
24Debug.Assert(container.Kind = SymbolKind.NamedType OrElse container.Kind = SymbolKind.Method)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
132If typeSymbol IsNot Nothing AndAlso typeSymbol.IsKind(SymbolKind.NamedType) AndAlso DirectCast(typeSymbol, ITypeSymbol).TypeKind = TypeKind.Delegate Then
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (1)
292Return symbol.MatchesKind(SymbolKind.NamedType) AndAlso symbol.GetAllTypeArguments().Any()
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
2008Case SymbolKind.NamedType
SignatureHelp\GenericNameSignatureHelpProvider.Method.vb (1)
31If result.Kind <> SymbolKind.NamedType OrElse Not DirectCast(result, INamedTypeSymbol).IsScriptClass Then
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicCommonGenerationServiceMethods.vb (1)
31Return symbol.Kind = SymbolKind.Namespace Or symbol.Kind = SymbolKind.NamedType Or AreSpecialOptionsActive(semanticModel)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (80)
Binding\Binder_Expressions_Tests.vb (10)
2866Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind) 2880Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind) 2912Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind) 2926Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind) 3066Assert.Equal(SymbolKind.NamedType, symbol.Kind) 3112Assert.Equal(SymbolKind.NamedType, symbol.Kind) 3158Assert.Equal(SymbolKind.NamedType, symbol.Kind) 3261Assert.Equal(SymbolKind.NamedType, symbol.Kind) 3353Assert.Equal(SymbolKind.NamedType, symbol.Kind) 3406Assert.Equal(SymbolKind.NamedType, symbol.Kind)
Compilation\CompilationAPITests.vb (2)
1488Assert.Equal(CInt(SymbolKind.NamedType), CInt(tupleWithoutNames.Kind)) 1504Assert.Equal(SymbolKind.NamedType, tupleWithNames.Kind)
Compilation\SemanticModelAPITests.vb (8)
543Assert.Equal(SymbolKind.NamedType, oldSymbol.Kind) 551Assert.Equal(SymbolKind.NamedType, newSymbol.Kind) 1793speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException") 1824speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException") 1829speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "N.I") 1865speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException") 1868speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException") 1871speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException")
Diagnostics\DiagnosticAnalyzerTests.vb (2)
312context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType) 1644Dim analyzers = New DiagnosticAnalyzer() {New SymbolStartAnalyzer(topLevelAction:=False, SymbolKind.NamedType)}
Diagnostics\GetDiagnosticsTests.vb (1)
729SymbolKind.NamedType)
FlowAnalysis\FlowTestBase.vb (1)
46Case SymbolKind.NamedType
Semantics\GetExtendedSemanticInfoTests.vb (46)
121Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 156Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 237Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 280Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 323Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 371Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 373Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind) 420Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 422Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind) 469Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 471Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind) 962Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 1587Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 4874Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 4905Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 4937Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 5102Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 5133Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 5242Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 5244Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind) 6189Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 6779Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 6854Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 6929Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 7004Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 7745Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 7816Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 7821Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind) 7855Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 7860Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind) 7894Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 7899Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind) 7933Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 7938Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind) 7972Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 7977Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind) 8010Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 8015Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind) 8048Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 8053Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind) 8342Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind) 8591Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 9434Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind) 9696Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 9736Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 9932Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
Semantics\GetSemanticInfoTests.vb (3)
1229Assert.Equal(SymbolKind.NamedType, symbol.Kind) 1238Assert.Equal(SymbolKind.NamedType, symbol.Kind) 1249Assert.Equal(SymbolKind.NamedType, symbol.Kind)
Semantics\NativeIntegerTests.vb (1)
52Assert.Equal(SymbolKind.NamedType, type.Kind)
Semantics\NewOnInterfaceTests.vb (5)
1199Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind) 1241Assert.Equal(SymbolKind.NamedType, semanticInfo.Type.Kind) 1245Assert.Equal(SymbolKind.NamedType, semanticInfo.Type.Kind) 1285Assert.Equal(SymbolKind.NamedType, semanticInfo.Type.Kind) 1289Assert.Equal(SymbolKind.NamedType, semanticInfo.Type.Kind)
Semantics\OptionalArgumentTests.vb (1)
1063Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (56)
DocumentationComments\DocCommentTests.vb (8)
6734SymbolKind.NamedType, SymbolKind.TypeParameter), 6741SymbolKind.NamedType, SymbolKind.TypeParameter), 6748SymbolKind.NamedType, SymbolKind.TypeParameter)) 6760SymbolKind.NamedType, SymbolKind.TypeParameter), 6767SymbolKind.NamedType, SymbolKind.TypeParameter), 6774SymbolKind.NamedType, SymbolKind.TypeParameter)) 6875Assert.Equal(SymbolKind.NamedType, type.Kind) 7395name:="Int32"), SymbolKind.NamedType)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
109Assert.Equal(SymbolKind.NamedType, sym1.Kind)
SymbolsTests\Metadata\MetadataTypeTests.vb (4)
120Assert.Equal(SymbolKind.NamedType, class1.Kind) 173Assert.Equal(SymbolKind.NamedType, type1.Kind) 228Assert.Equal(SymbolKind.NamedType, type1.Kind) 281Assert.Equal(SymbolKind.NamedType, type1.Kind)
SymbolsTests\Metadata\PE\LoadingMethods.vb (2)
92Assert.Equal(SymbolKind.NamedType, C108.Kind) 99Assert.Equal(SymbolKind.NamedType, sameName(1).Kind)
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (1)
209Assert.Equal(SymbolKind.NamedType, genericBase.ContainingSymbol.Kind)
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (9)
83Assert.Equal(SymbolKind.NamedType, importedField.Type.Kind) 86Assert.Equal(SymbolKind.NamedType, outer.Kind) 103Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind) 141Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind) 296Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind) 309Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind) 342Assert.Equal(SymbolKind.NamedType, localField.[Type].Kind) 375Assert.Equal(SymbolKind.NamedType, m.ReturnType.Kind) 391Assert.Equal(SymbolKind.NamedType, classLocalType.Kind)
SymbolsTests\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.vb (1)
288Assert.Equal(SymbolKind.NamedType, embeddedType.ReturnType.Kind)
SymbolsTests\Source\BindingsTests.vb (6)
480Assert.Equal(SymbolKind.NamedType, symbol.Kind) 491Assert.Equal(SymbolKind.NamedType, symbol.Kind) 507Assert.Equal(SymbolKind.NamedType, sortedSymbols(0).Kind) 510Assert.Equal(SymbolKind.NamedType, sortedSymbols(1).Kind) 523Assert.Equal(SymbolKind.NamedType, symbols(0).Kind) 680Assert.Equal(SymbolKind.NamedType, info.Type.Kind)
SymbolsTests\Source\ComClassTests.vb (3)
29m.Kind <> SymbolKind.NamedType OrElse 59Case SymbolKind.NamedType 8082Return s.Kind = SymbolKind.NamedType OrElse s.Name = "dfoo"
SymbolsTests\Source\EventTests.vb (1)
1575Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
SymbolsTests\Source\GroupClassTests.vb (2)
3277Assert.Equal(SymbolKind.NamedType, symbolInfo.CandidateSymbols.Single().Kind) 3764Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind)
SymbolsTests\Source\TypeTests.vb (17)
92Assert.Equal(SymbolKind.NamedType, ifaceA.Kind) 110Assert.Equal(SymbolKind.NamedType, classB.Kind) 127Assert.Equal(SymbolKind.NamedType, delegateB.Kind) 148Assert.Equal(SymbolKind.NamedType, enumE.Kind) 163Assert.Equal(SymbolKind.NamedType, structI.Kind) 178Assert.Equal(SymbolKind.NamedType, moduleM.Kind) 240Assert.Equal(SymbolKind.NamedType, outerClass.Kind) 256Assert.Equal(SymbolKind.NamedType, i1Class.Kind) 266Assert.Equal(SymbolKind.NamedType, i3Interface.Kind) 276Assert.Equal(SymbolKind.NamedType, i4Enum.Kind) 290Assert.Equal(SymbolKind.NamedType, i2Arity1.Kind) 304Assert.Equal(SymbolKind.NamedType, i2Arity2.Kind) 553Assert.Equal(SymbolKind.NamedType, enumE.Kind) 606Assert.Equal(SymbolKind.NamedType, classA.Kind) 616Assert.Equal(SymbolKind.NamedType, igoo.Kind) 626Assert.Equal(SymbolKind.NamedType, structS.Kind) 696Assert.Equal(SymbolKind.NamedType, varA.Type.Kind)
UsedAssembliesTests.vb (1)
83Dim hasCoreLibraryRef As Boolean = comp.ObjectType.Kind = SymbolKind.NamedType
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
197If typeSym.Kind = SymbolKind.NamedType AndAlso
Microsoft.CodeAnalysis.VisualBasic.Workspaces (12)
FindSymbols\VisualBasicReferenceFinder.vb (1)
28ElseIf symbol.Kind = SymbolKind.NamedType Then
Recommendations\VisualBasicRecommendationServiceRunner.vb (4)
244Case SymbolKind.NamedType, SymbolKind.Namespace 288If container IsNot Nothing AndAlso container.Kind = SymbolKind.NamedType Then 305(couldBeMergedNamespace OrElse leftHandSymbolInfo.GetBestOrAllSymbols().FirstOrDefault().MatchesKind(SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Alias)) Then 370ElseIf s.Kind = SymbolKind.NamedType AndAlso s.IsImplicitlyDeclared Then
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
101(symbol.Kind <> SymbolKind.Namespace AndAlso symbol.Kind <> SymbolKind.NamedType) Then
Simplification\Simplifiers\ExpressionSimplifier.vb (3)
131If (symbol IsNot Nothing AndAlso symbol.IsKind(SymbolKind.NamedType)) Then 237If leftSymbol IsNot Nothing AndAlso leftSymbol.Kind = SymbolKind.NamedType Then 239If rightSymbol IsNot Nothing AndAlso (rightSymbol.IsStatic OrElse rightSymbol.Kind = SymbolKind.NamedType) Then
Simplification\Simplifiers\NameSimplifier.vb (1)
197If (symbol.Kind = SymbolKind.NamedType) AndAlso (Not name.IsLeftSideOfQualifiedName) Then
Simplification\VisualBasicSimplificationService.Expander.vb (1)
634If symbol.Kind = SymbolKind.NamedType OrElse symbol.Kind = SymbolKind.Namespace Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
799Case SymbolKind.NamedType
Microsoft.CodeAnalysis.Workspaces (26)
Editing\SyntaxGenerator.cs (2)
755case SymbolKind.NamedType: 842case SymbolKind.NamedType:
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
705case SymbolKind.NamedType:
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
35SymbolKind.NamedType => true,
FindSymbols\SymbolFinder.cs (1)
138case SymbolKind.NamedType:
Recommendations\AbstractRecommendationService.cs (1)
77case SymbolKind.NamedType:
Rename\ConflictEngine\ConflictResolver.cs (2)
239if (renamedSymbol.ContainingSymbol.IsKind(SymbolKind.NamedType)) 275if (renamedSymbol.IsKind(SymbolKind.NamedType) && renamedSymbol.ContainingSymbol is INamespaceOrTypeSymbol)
Rename\RenameUtilities.cs (2)
197if (containingType.Kind == SymbolKind.NamedType) 354if (symbol.Kind == SymbolKind.NamedType)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
106referencedSymbol.ContainingSymbol.Kind == SymbolKind.NamedType && 198if (referencedSymbol.Kind == SymbolKind.NamedType && referencedSymbol.Locations.All(l => l.IsInSource))
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
187if (namespaceOrType.Kind == SymbolKind.NamedType)
Shared\Extensions\SemanticModelExtensions.cs (1)
144if (type.Kind == SymbolKind.NamedType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
199m.Kind != SymbolKind.NamedType && IsImplementable(m) && 299return type.GetMembers().WhereAsArray(m => m.Kind != SymbolKind.NamedType &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
340SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity, 521=> symbol != null && symbol.Kind == SymbolKind.NamedType && symbol.IsStatic;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
121case SymbolKind.NamedType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
603case SymbolKind.NamedType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
196=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
125SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
67SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
47public override SymbolKind Kind => SymbolKind.NamedType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
70public override SymbolKind Kind => SymbolKind.NamedType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
37s is { Kind: SymbolKind.NamedType, IsStatic: true };
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
FindReferencesTests.cs (4)
134var typeSymbol = result.Where(@ref => @ref.Definition.Kind == SymbolKind.NamedType).Single(); 547var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 580var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 622var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType);
Microsoft.Gen.Logging (2)
Parsing\Parser.LogProperties.cs (1)
337symType.Kind == SymbolKind.NamedType &&
Parsing\Parser.Records.cs (1)
146extractedType.Kind == SymbolKind.NamedType &&
Microsoft.Gen.Logging.Unit.Tests (1)
LogParserUtilitiesTests.cs (1)
154paramTypeMock.SetupGet(x => x.Kind).Returns(SymbolKind.NamedType);
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
61}, SymbolKind.NamedType);
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
142}, 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);
Microsoft.VisualStudio.LanguageServices (12)
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
112SymbolKind.NamedType or
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
138if (symbol.Kind == SymbolKind.NamedType)
Progression\GraphBuilder.cs (2)
270case SymbolKind.NamedType: 357case SymbolKind.NamedType:
Progression\GraphNodeCreation.cs (1)
41case SymbolKind.NamedType:
Progression\GraphProvider.cs (4)
183nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType))) 199if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType) && 244if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType) && 272if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType) &&
Progression\SymbolContainment.cs (1)
56case SymbolKind.NamedType:
Venus\ContainedLanguageCodeSupport.cs (2)
104if (eventType.Kind != SymbolKind.NamedType) 178if (eventType.Kind != SymbolKind.NamedType || ((INamedTypeSymbol)eventType).DelegateInvokeMethod == null)
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (2)
2995case SymbolKind.NamedType: 3821if (typeSymbol.Kind != SymbolKind.NamedType ||
CodeModel\CSharpCodeModelService_Prototype.cs (2)
38case SymbolKind.NamedType: 585if (current.Kind == SymbolKind.NamedType)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
497if (leftHandSymbol != null && leftHandSymbol.Kind == SymbolKind.NamedType)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (13)
GlyphExtensionsTests.cs (13)
71pointedAtType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 80containingType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Enum)); 100elementType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 105target: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class)); 114SymbolKind.NamedType, 118SymbolKind.NamedType, 122SymbolKind.NamedType, 126SymbolKind.NamedType, 130SymbolKind.NamedType, 134SymbolKind.NamedType, 138SymbolKind.NamedType, 144SymbolKind.NamedType, 231if (kind == SymbolKind.NamedType)
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
380If leftHandSymbol IsNot Nothing AndAlso leftHandSymbol.Kind = SymbolKind.NamedType Then
CodeModel\VisualBasicCodeModelService.vb (2)
2907(symbol.Kind = SymbolKind.NamedType AndAlso DirectCast(symbol, INamedTypeSymbol).TypeKind = TypeKind.Module) OrElse 3619SymbolKind.NamedType
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
43Case SymbolKind.NamedType
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Features\InlineRename\XamlEditorInlineRenameService.cs (1)
128case SymbolKind.NamedType:
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
268SymbolKind.NamedType => SymbolKindFlags.NamedType,