8 references to Location
Microsoft.CodeAnalysis.CSharp (8)
Declarations\DeclarationTable.cs (1)
151
Constraint = "Avoid " + nameof(SingleNamespaceOrTypeDeclaration.
Location
) + " since it has a costly allocation on this fast path.")]
Declarations\SingleTypeDeclaration.cs (2)
244
if ((object)thisDecl.
Location
.SourceTree != otherDecl.
Location
.SourceTree
Symbols\Source\SourceAssemblySymbol.cs (1)
1549
var tree = rootNs.
Location
.SourceTree;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
838
internal SyntaxTree AssociatedSyntaxTree => declaration.Declarations[0].
Location
.SourceTree;
1097
if (declaration.Declarations.Length >= 1 && position == declaration.Declarations[0].
Location
.SourceSpan.Start)
Symbols\Source\SourceModuleSymbol.cs (1)
365
DeclaringCompilation.MergedRootDeclaration.Declarations.SelectAsArray(d => (Location)d.
Location
));
Symbols\Source\SourceNamespaceSymbol.cs (1)
414
var leftTree = possibleFileLocalType.MergedDeclaration.Declarations[0].
Location
.SourceTree;