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