17 references to RegionContains
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\AlwaysAssignedWalker.cs (3)
84
if (IsInside && pending.Branch != null && !
RegionContains
(pending.Branch.Syntax.Span))
106
if (node.Syntax != null &&
RegionContains
(node.Syntax.Span)) _labelsInside.Add(label);
136
if (branch.Branch != null &&
RegionContains
(branch.Branch.Syntax.Span) && !_labelsInside.Contains(branch.Label))
FlowAnalysis\DataFlowsInWalker.cs (5)
85
if (!gotoStmt.WasCompilerGenerated && !targetStmt.WasCompilerGenerated && !
RegionContains
(gotoStmt.Syntax.Span) &&
RegionContains
(targetStmt.Syntax.Span))
95
if (IsInside && !
RegionContains
(node.RangeVariableSymbol.GetFirstLocation().SourceSpan))
106
if (
RegionContains
(node.Span))
121
if (node != null && node is ReturnStatementSyntax &&
RegionContains
(node.Span))
FlowAnalysis\DataFlowsOutWalker.cs (1)
233
((param.RefKind != RefKind.None && !param.IsImplicitlyDeclared && !
RegionContains
(param.GetFirstLocation().SourceSpan)) ||
FlowAnalysis\EntryPointsWalker.cs (2)
61
if (!gotoStmt.WasCompilerGenerated && !targetStmt.WasCompilerGenerated &&
RegionContains
(targetStmt.Syntax.Span) && !
RegionContains
(gotoStmt.Syntax.Span))
FlowAnalysis\ExitPointsWalker.cs (1)
124
if (pending.Branch == null || !
RegionContains
(pending.Branch.Syntax.Span)) continue;
FlowAnalysis\ReadWriteWalker.cs (5)
186
if (
RegionContains
(receiverSyntax.Span))
192
if (
RegionContains
(receiverSyntax.Span))
198
if (
RegionContains
(receiverSyntax.Span))
204
if (
RegionContains
(receiverSyntax.Span))
210
if (
RegionContains
(receiverSyntax.Span))