Base:
property
Root
Microsoft.CodeAnalysis.CSharp.CSharpSemanticModel.Root
23 references to Root
Microsoft.CodeAnalysis.CSharp (23)
Compilation\AttributeSemanticModel.cs (1)
120
return IsNullableAnalysisEnabledIn(Compilation, (AttributeSyntax)
Root
);
Compilation\InitializerSemanticModel.cs (4)
81
CSharpSyntaxNode rootSyntax = this.
Root
;
195
return this.
Root
== node || /*enum or parameter initializer*/
196
this.
Root
== node.Parent /*field initializer*/;
283
return SourceComplexParameterSymbolBase.GetDefaultValueSyntaxForIsNullableAnalysisEnabled(
Root
as ParameterSyntax) is { } value &&
Compilation\MemberSemanticModel.cs (13)
515
return GetUpperBoundNode(GetBindableSyntaxNode(this.
Root
));
1372
for (var current = node; current != this.
Root
; current = current.ParentOrStructuredTriviaParent)
1510
Debug.Assert((manager is null && (!IsNullableAnalysisEnabled() || syntax !=
Root
|| syntax is TypeSyntax ||
1514
(manager is object && remappedSymbols is object && syntax ==
Root
&& IsNullableAnalysisEnabled() && _lazySnapshotManager is null));
1531
for (CSharpSyntaxNode current = node; current != this.
Root
; current = current.ParentOrStructuredTriviaParent)
1538
for (CSharpSyntaxNode current = node; current != this.
Root
; current = current.ParentOrStructuredTriviaParent)
1562
return this.
Root
;
1580
if (!this.
Root
.FullSpan.Contains(position))
1583
SyntaxToken token = this.
Root
.FindToken(position);
1940
var bindableRoot = GetBindableSyntaxNode(
Root
);
2073
node = GetBindableSyntaxNode(
Root
);
2213
if (parent != null && node != this.
Root
)
2286
if (this.IsSpeculativeSemanticModel && this.
Root
== node)
Compilation\MemberSemanticModel.SpeculativeMemberSemanticModel.cs (1)
62
return ((SyntaxTreeSemanticModel)_containingPublicSemanticModel.ParentModel).IsNullableAnalysisEnabledAtSpeculativePosition(_containingPublicSemanticModel.OriginalPositionForSpeculation,
Root
);
Compilation\MethodBodySemanticModel.cs (3)
241
Root
.FindToken(position).Parent?.AncestorsAndSelf().OfType<ConstructorInitializerSyntax>().FirstOrDefault()?.Parent ==
Root
)
263
if (
Root
.FindToken(position).Parent?.AncestorsAndSelf().OfType<PrimaryConstructorBaseTypeSyntax>().FirstOrDefault() == typeDecl.PrimaryConstructorBaseTypeIfClass)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
127
internal override CSharpSyntaxNode Root => _memberModel.
Root
;