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