108 references to Module
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
184if (namedType.TypeKind is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
228=> symbol is ITypeSymbol { TypeKind: TypeKind.Module }; 282=> symbol is { ContainingType.TypeKind: TypeKind.Module };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
82=> symbol?.TypeKind == TypeKind.Module;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
395case TypeKind.Module:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
72new SymbolKindOrTypeKind(TypeKind.Module),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
245TypeKind.Module => TypeKind.Class,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
27TypeKind.Module,
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
603case TypeKind.Module: 719case TypeKind.Module:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (1)
1936typeKind: TypeKind.Module,
Microsoft.CodeAnalysis.Features (5)
GenerateType\AbstractGenerateTypeService.State.cs (1)
289not TypeKind.Module)
PullMemberUp\MembersPuller.cs (1)
67TypeKind.Class or TypeKind.Module => PullMembersIntoClassAsync(document, pullMembersUpOptions, cancellationToken),
Shared\Extensions\ISymbolExtensions_2.cs (1)
76case TypeKind.Module:
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
184if (namedType.TypeKind is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
27TypeKind.Module,
Microsoft.CodeAnalysis.VisualBasic (53)
Binding\Binder_Expressions.vb (1)
2821If leftTypeKind = TYPEKIND.Class OrElse leftTypeKind = TYPEKIND.Structure OrElse leftTypeKind = TYPEKIND.Module Then
Binding\Binder_Lookup.vb (4)
580Case TypeKind.Class, TypeKind.Module, TypeKind.Structure, TypeKind.Delegate, TypeKind.Array, TypeKind.Enum 609Case TypeKind.Module 931Case TypeKind.Class, TypeKind.Module, TypeKind.Structure 1092Case TypeKind.Class, TypeKind.Module, TypeKind.Structure
Binding\Binder_ObjectInitializer.vb (2)
242TypeKind.Module, 328Case TypeKind.Module
Binding\Binder_Utils.vb (2)
1161Case TypeKind.Module 1241Case TypeKind.Module
Compilation\ClsComplianceChecker.vb (2)
595Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module 621Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
745Case TypeKind.Module
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
132Me.TypeParamSupported = namedType.TypeKind <> TYPEKIND.Enum AndAlso namedType.TypeKind <> TYPEKIND.Module 133Me.TypeParamRefSupported = namedType.TypeKind <> TYPEKIND.Module
Compilation\DocumentationComments\DocumentationCommentCompiler.NamedType.vb (1)
132ElseIf namedType.TypeKind = TypeKind.Enum OrElse namedType.TypeKind = TypeKind.Module Then
Compilation\VisualBasicCompilation.vb (1)
1543If mainType Is Nothing OrElse (mainType.TypeKind <> TYPEKIND.Class AndAlso mainType.TypeKind <> TYPEKIND.Structure AndAlso mainType.TypeKind <> TYPEKIND.Module) Then
Emit\NamedTypeSymbolAdapter.vb (1)
966Case TypeKind.Module, TypeKind.Enum, TypeKind.Structure
Emit\NoPia\EmbeddedTypesManager.vb (1)
257Debug.Assert(type.TypeKind = TypeKind.Class OrElse type.TypeKind = TypeKind.Module)
Semantics\Conversions.vb (1)
2866TypeKind.Module
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
620(containingType Is Nothing OrElse containingType.TypeKind <> TypeKind.Module) AndAlso
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
263Case TypeKind.Module 459Case TypeKind.Module
Symbols\ConstraintsHelper.vb (1)
218Case TypeKind.Module
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (1)
333Debug.Assert(type.TypeKind = TypeKind.Module OrElse type.TypeKind = TypeKind.Class AndAlso type.IsNotInheritable)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
416Me.TypeKind <> TypeKind.Module Then 438If Me.TypeKind = TypeKind.Module Then 1027result = TypeKind.Module 1315If (typeKind = TypeKind.Class OrElse typeKind = TypeKind.Module) AndAlso
Symbols\Metadata\PE\PENamespaceSymbol.vb (2)
64Dim modules = GetTypeMembers().WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module) 73Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module)
Symbols\NamedTypeSymbolExtensions.vb (1)
110Return container.TypeKind = TypeKind.Module OrElse container.IsScriptClass
Symbols\NamespaceSymbol.vb (1)
53Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TypeKind.Module)
Symbols\Source\SourceDeclareMethodSymbol.vb (1)
44If ContainingType.TypeKind <> TypeKind.Module Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (7)
40[Module] = CUShort(TypeKind.Module) << TypeKindShift 243If type.TypeKind = TypeKind.Module Then 346Case TypeKind.Module, TypeKind.Submission 2740(TypeKind = TypeKind.Module AndAlso isShared) Then 2806ElseIf TypeKind = TypeKind.Class OrElse TypeKind = TypeKind.Module Then 3502If myTypeKind = TypeKind.Class OrElse myTypeKind = TypeKind.Interface OrElse myTypeKind = TypeKind.Structure OrElse myTypeKind = TypeKind.Module Then 3506Dim canDeclareOperators As Boolean = (myTypeKind <> TypeKind.Module AndAlso myTypeKind <> TypeKind.Interface)
Symbols\Source\SourceMemberMethodSymbol.vb (1)
760Case TypeKind.Class, TypeKind.Module
Symbols\Source\SourceMethodSymbol.vb (1)
230If container.TypeKind = TYPEKIND.Module Then
Symbols\Source\SourceNamedTypeSymbol.vb (5)
1114Case TypeKind.Interface, TypeKind.Enum, TypeKind.Delegate, TypeKind.Structure, TypeKind.Module, TypeKind.Array ' array can't really occur 1396Case TypeKind.Module 2235Case TypeKind.Module 2401If Me.TypeKind = TypeKind.Module Then 2494If Me.TypeKind = TypeKind.Module Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
96Case TypeKind.Module
Symbols\Symbol_Attributes.vb (1)
98TypeKind.Module
Symbols\SymbolExtensions.vb (1)
43Case TypeKind.Module
Symbols\TypeSymbolExtensions.vb (3)
152Return type.TypeKind = TypeKind.Module 410Case TypeKind.Array, TypeKind.Delegate, TypeKind.Enum, TypeKind.Structure, TypeKind.Module 859TypeKind.Module
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
102Dim isModule = namedType.TypeKind = TypeKind.Module
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Editing\VisualBasicImportAdder.vb (1)
113If type?.TypeKind = TypeKind.Module Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\CompilationEmitTests.vb (1)
2040Assert.Equal(m.Single().TypeKind, TypeKind.Module)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\EENamedTypeSymbol.vb (1)
253Return TypeKind.Module
Microsoft.CodeAnalysis.VisualBasic.Features (3)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
1432Case TypeKind.Module 2012If type.TypeKind = TypeKind.Module Then
InitializeParameter\VisualBasicInitializeMemberFromParameterCodeRefactoringProvider.vb (1)
38Return If(containingType.TypeKind = TypeKind.Class Or containingType.TypeKind = TypeKind.Module, Accessibility.Private, Accessibility.Public)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Semantics\GetExtendedSemanticInfoTests.vb (3)
8622Assert.Equal(TypeKind.Module, semanticSummary.Type.TypeKind) 8624Assert.Equal(TypeKind.Module, semanticSummary.ConvertedType.TypeKind) 8849Assert.Equal(TypeKind.Module, semanticSummary.Type.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (1)
1062Assert.Equal(TypeKind.Module, module2.TypeKind)
SymbolsTests\Metadata\MetadataTypeTests.vb (2)
78Assert.Equal(TypeKind.Module, a.TypeKind) 83Assert.Equal(TypeKind.Module, a.TypeKind)
SymbolsTests\Source\TypeTests.vb (1)
179Assert.Equal(TypeKind.Module, moduleM.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockSymbols.vb (2)
47Return GetTypeMembers().WhereAsArray(Function(t) t.TypeKind = TypeKind.Module) 51Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TypeKind.Module)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
502type.TypeKind = TypeKind.Module OrElse
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
102Dim isModule = namedType.TypeKind = TypeKind.Module
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Editing\VisualBasicImportAdder.vb (1)
113If type?.TypeKind = TypeKind.Module Then
Microsoft.CodeAnalysis.Workspaces (7)
Classification\ClassificationExtensions.cs (1)
13TypeKind.Module => ClassificationTypeNames.ModuleName,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
228=> symbol is ITypeSymbol { TypeKind: TypeKind.Module }; 282=> symbol is { ContainingType.TypeKind: TypeKind.Module };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
82=> symbol?.TypeKind == TypeKind.Module;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
395case TypeKind.Module:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
72new SymbolKindOrTypeKind(TypeKind.Module),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
245TypeKind.Module => TypeKind.Class,
Microsoft.VisualStudio.LanguageServices (6)
GenerateType\GenerateTypeDialogViewModel.cs (1)
235PopulateTypeKind(TypeKind.Module, "Module");
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
275else if (typeSymbol.TypeKind != TypeKind.Module &&
Library\ObjectBrowser\ObjectList.cs (2)
218case TypeKind.Module: 440if (typeSymbol.TypeKind == TypeKind.Module)
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
187if (destinationType.TypeKind is not (TypeKind.Class or TypeKind.Interface or TypeKind.Module or TypeKind.Struct))
Progression\GraphBuilder.cs (1)
592case TypeKind.Module:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
127typeKind: TypeKind.Module);
Microsoft.VisualStudio.LanguageServices.VisualBasic (6)
CodeModel\Extenders\GenericExtender.vb (2)
37TypeKind.Module, 65TypeKind.Module,
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
372symbolOpt?.ContainingType?.TypeKind = TypeKind.Module Then
CodeModel\VisualBasicCodeModelService.vb (1)
2907(symbol.Kind = SymbolKind.NamedType AndAlso DirectCast(symbol, INamedTypeSymbol).TypeKind = TypeKind.Module) OrElse
ObjectBrowser\DescriptionBuilder.vb (2)
78Case TypeKind.Module 344typeSymbol.TypeKind <> TypeKind.Module AndAlso