5 references to Location
Microsoft.CodeAnalysis.CSharp (5)
Declarations\DeclarationTable.cs (1)
151
Constraint = "Avoid " + nameof(SingleNamespaceOrTypeDeclaration.
Location
) + " since it has a costly allocation on this fast path.")]
Symbols\Source\SourceAssemblySymbol.cs (1)
1558
var tree = rootNs.
Location
.SourceTree;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
862
private SyntaxTree? AssociatedSyntaxTree => IsFileLocal ? declaration.Declarations[0].
Location
.SourceTree : null;
1119
if (declaration.Declarations.Length >= 1 && position == declaration.Declarations[0].
Location
.SourceSpan.Start)
Symbols\Source\SourceNamespaceSymbol.cs (1)
386
var leftTree = possibleFileLocalType.MergedDeclaration.Declarations[0].
Location
.SourceTree;