1 instantiation of SingleTypeDeclaration
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\DeclarationTreeBuilder.vb (1)
118Return New SingleTypeDeclaration(
77 references to SingleTypeDeclaration
Microsoft.CodeAnalysis.VisualBasic (77)
Declarations\DeclarationTable.vb (1)
324typePredicate As Func(Of SingleTypeDeclaration, Boolean),
Declarations\DeclarationTreeBuilder.vb (46)
60Dim implicitClassTypeChildren = ArrayBuilder(Of SingleTypeDeclaration).GetInstance() 72implicitClassTypeChildren.Add(DirectCast(namespaceOrType, SingleTypeDeclaration)) 84Dim declFlags As SingleTypeDeclaration.TypeDeclarationFlags = SingleTypeDeclaration.TypeDeclarationFlags.None 115Private Function CreateImplicitClass(parent As VisualBasicSyntaxNode, memberNames As ImmutableHashSet(Of String), children As ImmutableArray(Of SingleTypeDeclaration), declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As SingleNamespaceOrTypeDeclaration 131Private Function CreateScriptClass(parent As VisualBasicSyntaxNode, children As ImmutableArray(Of SingleTypeDeclaration), memberNames As ImmutableHashSet(Of String), declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As SingleNamespaceOrTypeDeclaration 177Dim scriptChildren = ArrayBuilder(Of SingleTypeDeclaration).GetInstance() 187scriptChildren.Add(DirectCast(decl, SingleTypeDeclaration)) 193Dim declFlags As SingleTypeDeclaration.TypeDeclarationFlags = SingleTypeDeclaration.TypeDeclarationFlags.None 383Public ReadOnly TypeDeclaration As SingleTypeDeclaration 390Private Sub New(typeBlockSyntax As TypeBlockSyntax, declaration As SingleTypeDeclaration, nestedTypes As ArrayBuilder(Of Integer)) 403Public Function WithDeclaration(declaration As SingleTypeDeclaration) As TypeBlockInfo 448Dim childrenBuilder = ArrayBuilder(Of SingleTypeDeclaration).GetInstance() 453Dim children = ImmutableArray(Of SingleTypeDeclaration).Empty 467Dim typeDecl = TryCast(Visit(member), SingleTypeDeclaration) 496Dim declFlags As SingleTypeDeclaration.TypeDeclarationFlags = If(declarationSyntax.AttributeLists.Any(), 497SingleTypeDeclaration.TypeDeclarationFlags.HasAnyAttributes, 498SingleTypeDeclaration.TypeDeclarationFlags.None) 501declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.HasBaseDeclarations 547Dim declFlags As SingleTypeDeclaration.TypeDeclarationFlags = If(declarationSyntax.AttributeLists.Any(), 548SingleTypeDeclaration.TypeDeclarationFlags.HasAnyAttributes, 549SingleTypeDeclaration.TypeDeclarationFlags.None) 552declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.HasBaseDeclarations 582Private Function VisitTypeChildren(members As SyntaxList(Of StatementSyntax)) As ImmutableArray(Of SingleTypeDeclaration) 584Return ImmutableArray(Of SingleTypeDeclaration).Empty 587Dim children = ArrayBuilder(Of SingleTypeDeclaration).GetInstance() 589Dim typeDecl = TryCast(Visit(member), SingleTypeDeclaration) 614Private Function GetNonTypeMemberNames(members As SyntaxList(Of StatementSyntax), ByRef declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As ImmutableHashSet(Of String) 697declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.AnyMemberHasAttributes 701declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.HasAnyNontypeMembers 707Private Function GetMemberNames(enumBlockSyntax As EnumBlockSyntax, ByRef declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As ImmutableHashSet(Of String) 711declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.HasAnyNontypeMembers 730declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.AnyMemberHasAttributes 742Dim declFlags As SingleTypeDeclaration.TypeDeclarationFlags = If(node.AttributeLists.Any(), 743SingleTypeDeclaration.TypeDeclarationFlags.HasAnyAttributes, 744SingleTypeDeclaration.TypeDeclarationFlags.None) 746declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.HasAnyNontypeMembers 758children:=ImmutableArray(Of SingleTypeDeclaration).Empty, 768Dim declFlags As SingleTypeDeclaration.TypeDeclarationFlags = If(node.AttributeLists.Any(), 769SingleTypeDeclaration.TypeDeclarationFlags.HasAnyAttributes, 770SingleTypeDeclaration.TypeDeclarationFlags.None) 772declFlags = declFlags Or SingleTypeDeclaration.TypeDeclarationFlags.HasAnyNontypeMembers 784children:=ImmutableArray(Of SingleTypeDeclaration).Empty,
Declarations\MergedNamespaceDeclaration.vb (2)
100Dim singleTypeDeclarations = ArrayBuilder(Of SingleTypeDeclaration).GetInstance() 109singleTypeDeclarations.Add(DirectCast(child, SingleTypeDeclaration))
Declarations\MergedTypeDeclaration.vb (14)
23Private _declarations As ImmutableArray(Of SingleTypeDeclaration) 27Public Property Declarations As ImmutableArray(Of SingleTypeDeclaration) 31Private Set(value As ImmutableArray(Of SingleTypeDeclaration)) 36Friend Sub New(declarations As ImmutableArray(Of SingleTypeDeclaration)) 37MyBase.New(SingleNamespaceOrTypeDeclaration.BestName(Of SingleTypeDeclaration)(declarations)) 138Private Shared ReadOnly s_identityFunc As Func(Of SingleTypeDeclaration, SingleTypeDeclaration) = 141Private Shared ReadOnly s_mergeFunc As Func(Of IEnumerable(Of SingleTypeDeclaration), MergedTypeDeclaration) = 142Function(g) New MergedTypeDeclaration(ImmutableArray.CreateRange(Of SingleTypeDeclaration)(g)) 145Dim allSingleTypeDecls As IEnumerable(Of SingleTypeDeclaration) 148allSingleTypeDecls = Declarations(0).Children.OfType(Of SingleTypeDeclaration)() 150allSingleTypeDecls = Declarations.SelectMany(Function(d) d.Children.OfType(Of SingleTypeDeclaration)()) 156Friend Shared Function MakeMergedTypes(types As IEnumerable(Of SingleTypeDeclaration)) As IEnumerable(Of MergedTypeDeclaration) 158GroupBy(s_identityFunc, SingleTypeDeclaration.EqualityComparer).
Declarations\SingleTypeDeclaration.vb (10)
12Private ReadOnly _children As ImmutableArray(Of SingleTypeDeclaration) 40children As ImmutableArray(Of SingleTypeDeclaration), 91Public Overloads ReadOnly Property Children As ImmutableArray(Of SingleTypeDeclaration) 114Implements IEqualityComparer(Of SingleTypeDeclaration) 116Private Shadows Function Equals(decl1 As SingleTypeDeclaration, decl2 As SingleTypeDeclaration) As Boolean Implements IEqualityComparer(Of SingleTypeDeclaration).Equals 125Private Shadows Function GetHashCode(decl1 As SingleTypeDeclaration) As Integer Implements IEqualityComparer(Of SingleTypeDeclaration).GetHashCode 130Public Shared ReadOnly EqualityComparer As IEqualityComparer(Of SingleTypeDeclaration) = New Comparer()
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
117Dim declarations As ImmutableArray(Of SingleTypeDeclaration) = declaration.Declarations 118Dim best As SingleTypeDeclaration = declarations(0)
Symbols\Source\SourceNamedTypeSymbol.vb (2)
1747Private Function FirstDeclarationWithExplicitBases() As SingleTypeDeclaration 1765Private Function FirstDeclarationWithExplicitInterfaces() As SingleTypeDeclaration