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