24 references to NameLocation
Microsoft.CodeAnalysis.CSharp (24)
Declarations\MergedNamespaceDeclaration.cs (4)
48LexicalSortKey sortKey = new LexicalSortKey(_declarations[0].NameLocation, compilation); 51sortKey = LexicalSortKey.First(sortKey, new LexicalSortKey(_declarations[i].NameLocation, compilation)); 63return ImmutableArray.Create<Location>(_declarations[0].NameLocation); 70SourceLocation loc = decl.NameLocation;
Declarations\MergedTypeDeclaration.cs (4)
162LexicalSortKey sortKey = new LexicalSortKey(Declarations[0].NameLocation, compilation); 165sortKey = LexicalSortKey.First(sortKey, new LexicalSortKey(Declarations[i].NameLocation, compilation)); 176return OneOrMany.Create(Declarations[0].NameLocation); 180builder.AddIfNotNull(decl.NameLocation);
Symbols\NamespaceOrTypeSymbol.cs (1)
226var loc = declaration.NameLocation;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
410mods, allowedModifiers, declaration.Declarations[i].NameLocation, diagnostics, 453: ErrorCode.ERR_DuplicateNameInNS, declaration.Declarations[i].NameLocation, this.Name, this.ContainingSymbol); 462diagnostics.Add(ErrorCode.ERR_DuplicateNameInClass, declaration.Declarations[i].NameLocation, this.ContainingSymbol, this.Name); 476diagnostics.Add(ErrorCode.ERR_MissingPartial, singleDeclaration.NameLocation, this.Name); 992=> declaration.Declarations[0].NameLocation; 3315Binder.Error(diagnostics, ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, singleDecl.NameLocation);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (7)
118var location = singleDeclaration.NameLocation; 164var location = singleDeclaration.NameLocation; 310baseTypeLocation = decl.NameLocation; 317baseTypeLocation = decl.NameLocation; 327baseTypeLocation = decl.NameLocation; 343baseTypeLocation = decl.NameLocation; 363interfaceLocations.Add(t, decl.NameLocation);
Symbols\Source\SourceNamespaceSymbol.cs (2)
105=> _mergedDeclaration.Declarations is [var declaration, ..] ? declaration.NameLocation : null; 113if (IsLocationContainedWithin(decl.NameLocation, tree, declarationSpan, out wasZeroWidthMatch))