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