2 writes to Name
Microsoft.CodeAnalysis.VisualBasic (2)
Declarations\Declaration.vb (1)
41
Me.
Name
= name
Declarations\MergedNamespaceDeclaration.vb (1)
21
Me.
Name
= SingleNamespaceDeclaration.BestName(Of SingleNamespaceDeclaration)(declarations, _multipleSpellings)
50 references to Name
Microsoft.CodeAnalysis.VisualBasic (22)
Compilation\VisualBasicCompilation.vb (4)
3185
If _includeNamespace AndAlso Matches(current.
Name
) Then
3193
If _includeType AndAlso Matches(current.
Name
) Then
3279
AddCache(container.GetMembers(declaration.
Name
).OfType(Of NamespaceOrTypeSymbol)())
3281
AddCache(container.GetTypeMembers(declaration.
Name
))
Declarations\DeclarationTable.vb (3)
255
result.AddIdentifier(current.
Name
)
343
If includeNamespace AndAlso predicate(current.
Name
) Then
347
If includeType AndAlso predicate(current.
Name
) Then
Declarations\SingleNamespaceDeclaration.vb (5)
63
Return IdentifierComparison.Equals(decl1.
Name
, decl2.
Name
)
67
Return IdentifierComparison.GetHashCode(decl1.
Name
)
87
Dim bestDeclarationName = singleDeclarations(0).
Name
89
Dim otherName = singleDeclarations(declarationIndex).
Name
Declarations\SingleNamespaceOrTypeDeclaration.vb (2)
52
Dim bestDeclarationName = singleDeclarations(0).
Name
54
Dim otherName = singleDeclarations(declarationIndex).
Name
Declarations\SingleTypeDeclaration.vb (3)
118
Return IdentifierComparison.Equals(decl1.
Name
, decl2.
Name
) _
126
Return Hash.Combine(IdentifierComparison.GetHashCode(decl1.
Name
), Hash.Combine(decl1.Arity.GetHashCode(), CType(decl1.Kind, Integer)))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
126
Return best.
Name
Symbols\Source\SourceNamespaceSymbol.vb (4)
77
Return _declaration.
Name
357
moduleMembers.AddRange(GetModuleMembers(childDecl.
Name
))
561
If String.Compare(Me.Name, declaration.
Name
, StringComparison.Ordinal) = 0 Then
640
Dim containingDeclName = If(containingDecl IsNot Nothing, containingDecl.
Name
, Me.Name)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (28)
Parser\DeclarationTests.vb (28)
58
Assert.Equal("", decl1.
Name
)
59
Assert.Equal("", decl2.
Name
)
68
Assert.Equal("NA", na1.
Name
)
69
Assert.Equal("Na", na2.
Name
)
78
Assert.Equal("NB", nb1.
Name
)
79
Assert.Equal("nB", nb2.
Name
)
88
Assert.Equal("C", ct1.
Name
)
89
Assert.Equal("C", ct2.
Name
)
95
Assert.Equal("C", c1.
Name
)
103
Assert.Equal("D", d1.
Name
)
104
Assert.Equal("d", d2.
Name
)
122
Assert.Equal("", mr.
Name
)
126
Assert.Equal("NA", na.
Name
)
130
Assert.Equal("NB", nb.
Name
)
135
Assert.Equal("C", ct.
Name
)
140
Assert.Equal("C", c.
Name
)
145
Assert.Equal("D", d.
Name
)
153
Assert.Equal("", mr.
Name
)
157
Assert.True(IdentifierComparison.Equals(na.
Name
, "NA"))
161
Assert.True(IdentifierComparison.Equals(nb.
Name
, "NB"))
166
Assert.True(IdentifierComparison.Equals(ct.
Name
, "C"))
171
Assert.True(IdentifierComparison.Equals(c.
Name
, "C"))
176
Assert.True(IdentifierComparison.Equals(d.
Name
, "D"))
198
Assert.Equal("", decl1.
Name
)
204
Assert.Equal("Goo", goo.
Name
)
210
Assert.Equal("Bar", bar.
Name
)
215
Assert.Equal("NA", childs(0).
Name
)
217
Assert.Equal("C2", childs(1).
Name
)