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