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