6 writes to _currentStatement
Microsoft.CodeAnalysis (6)
Operations\ControlFlowGraphBuilder.cs (6)
1245
_currentStatement
= operation;
1254
_currentStatement
= saveCurrentStatement;
1455
_currentStatement
= labelOperation;
1462
_currentStatement
= savedCurrentStatement;
7812
_currentStatement
= operation;
7846
_currentStatement
= saveCurrentStatement;
21 references to _currentStatement
Microsoft.CodeAnalysis (21)
Operations\ControlFlowGraphBuilder.cs (21)
1244
IOperation? saveCurrentStatement =
_currentStatement
;
1395
Debug.Assert(
_currentStatement
== operation);
1404
Debug.Assert(
_currentStatement
== originalOperation);
1407
if (
_currentStatement
== originalOperation)
1454
var savedCurrentStatement =
_currentStatement
;
1507
Debug.Assert(
_currentStatement
== operation);
1537
if (operation ==
_currentStatement
)
3104
bool isStatement =
_currentStatement
== operation || operation.Parent.Kind == OperationKind.ExpressionStatement;
3367
bool isOnStatementLevel =
_currentStatement
== operation || (
_currentStatement
== operation.Parent &&
_currentStatement
?.Kind == OperationKind.ExpressionStatement);
3413
if (
_currentStatement
!= operation)
3415
Debug.Assert(
_currentStatement
is not null);
3416
var expressionStatement = (IExpressionStatementOperation)
_currentStatement
;
3914
bool isStatement = (
_currentStatement
== operation);
6454
Debug.Assert(
_currentStatement
== null);
6747
if (
_currentStatement
== operation)
6759
Debug.Assert(
_currentStatement
== operation);
7481
if (
_currentStatement
== operation)
7494
Debug.Assert(
_currentStatement
== invalidOperation);
7811
IOperation? saveCurrentStatement =
_currentStatement
;