Base:
property
SourceTree
Microsoft.CodeAnalysis.Location.SourceTree
11 references to SourceTree
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Invocation.cs (2)
1685int line = callerSourceLocation.SourceTree.GetDisplayLineNumber(callerSourceLocation.SourceSpan); 1690string path = callerSourceLocation.SourceTree.GetDisplayPath(callerSourceLocation.SourceSpan, Compilation.Options.SourceReferenceResolver);
Declarations\DeclarationTreeBuilder.cs (2)
237if (nameLocation.SourceTree is null) 242Debug.Assert(nameLocation.SourceTree is not null);
Symbols\NamespaceOrTypeSymbol.cs (1)
228if (loc.IsInSource && loc.SourceTree == syntax.SyntaxTree && syntax.Span.Contains(loc.SourceSpan))
Symbols\Source\SourceAssemblySymbol.cs (1)
1559var tree = rootNs.Location.SourceTree;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
870private SyntaxTree? AssociatedSyntaxTree => IsFileLocal ? declaration.Declarations[0].Location.SourceTree : null;
Symbols\Source\SourceNamespaceSymbol.cs (2)
388var leftTree = possibleFileLocalType.MergedDeclaration.Declarations[0].Location.SourceTree; 391return !typeNameLocations.Any(static (loc, leftTree) => (object)loc.SourceTree == leftTree, leftTree);
Symbols\Source\SourceNamespaceSymbol_Completion.cs (1)
40if (locationOpt == null || locationOpt.SourceTree == declaration.SyntaxReference.SyntaxTree)
Symbols\Symbol.cs (1)
961if ((locationOpt == null || member.IsDefinedInSourceTree(locationOpt.SourceTree, locationOpt.SourceSpan, cancellationToken))