Base:
property
SyntaxTree
Microsoft.CodeAnalysis.CSharp.CSharpSemanticModel.SyntaxTree
18 references to SyntaxTree
Microsoft.CodeAnalysis.CSharp (18)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
59var attributedNode = model.SyntaxTree.GetRoot().FindToken(position).Parent;
Compilation\SpeculativeSyntaxTreeSemanticModel.cs (1)
50: base(parentSemanticModel.Compilation, parentSemanticModel.SyntaxTree, root.SyntaxTree, parentSemanticModel.Options)
Compilation\SyntaxTreeSemanticModel.cs (16)
50_binderFactory = compilation.GetBinderFactory(SyntaxTree, (options & SemanticModelOptions.IgnoreAccessibility) != 0); 118CompilationStage.Parse, this.SyntaxTree, span, includeEarlierStages: false, cancellationToken: cancellationToken); 125CompilationStage.Declare, this.SyntaxTree, span, includeEarlierStages: false, cancellationToken: cancellationToken); 132CompilationStage.Compile, this.SyntaxTree, span, includeEarlierStages: false, cancellationToken: cancellationToken); 139CompilationStage.Compile, this.SyntaxTree, span, includeEarlierStages: true, cancellationToken: cancellationToken); 768Debug.Assert(speculativeSyntax.SyntaxTree != SyntaxTree); 774Compilation.IsNullableAnalysisEnabledIn((CSharpSyntaxTree)SyntaxTree, new TextSpan(position, 0)); 1302return this.SyntaxTree.Options.Kind == SourceCodeKind.Regular; 1405if (symbol is TypeSymbol { IsExtension: true } && symbol.HasLocationContainedWithin(this.SyntaxTree, declarationSpan, out var wasZeroWidthMatch)) 1801Debug.Assert(knownNamespace.HasLocationContainedWithin(SyntaxTree, declarationSpan, out _), "Namespace symbols should include all syntax declaration locations."); 1823if (symbol.HasLocationContainedWithin(this.SyntaxTree, declarationSpan, out var wasZeroWidthMatch)) 1837if (loc.IsInSource && loc.SourceTree == this.SyntaxTree && declarationSpan.Contains(loc.SourceSpan)) 2052if (location.SourceTree == this.SyntaxTree && parameter.Span.Contains(location.SourceSpan)) 2236if (location.SourceTree == this.SyntaxTree && parameter.Span.Contains(location.SourceSpan)) 2366if (this.SyntaxTree.Options.Kind != SourceCodeKind.Regular) 2451if (location.SourceTree != this.SyntaxTree)