43 references to Instrumenter
Microsoft.CodeAnalysis.CSharp (43)
Lowering\LocalRewriter\LocalRewriter.cs (1)
801
rewritten =
Instrumenter
.InstrumentFieldOrPropertyInitializer(original, rewritten);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1131
conditionalGoto = _localRewriter.
Instrumenter
.InstrumentSwitchWhenClauseConditionalGotoBody(whenExpression, conditionalGoto);
Lowering\LocalRewriter\LocalRewriter_Block.cs (3)
18
Instrumenter
.PreInstrumentBlock(node, this);
40
Instrumenter
.InstrumentBlock(node, this, ref additionalLocals, out var prologue, out var epilogue, out instrumentation);
131
:
Instrumenter
.InstrumentNoOpStatement(node, node);
Lowering\LocalRewriter\LocalRewriter_BreakStatement.cs (1)
18
result =
Instrumenter
.InstrumentBreakStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
423
Instrumenter
.InterceptCallAndAdjustArguments(ref method, ref rewrittenReceiver, ref rewrittenArguments, ref argRefKindsOpt);
430
rewrittenCall =
Instrumenter
.InstrumentCall(node, rewrittenCall);
Lowering\LocalRewriter\LocalRewriter_ContinueStatement.cs (1)
18
result =
Instrumenter
.InstrumentContinueStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (2)
30
rewrittenCondition =
Instrumenter
.InstrumentDoStatementCondition(node, rewrittenCondition, _factory);
37
ifConditionGotoStart =
Instrumenter
.InstrumentDoStatementConditionalGotoStart(node, ifConditionGotoStart);
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (1)
34
result =
Instrumenter
.InstrumentExpressionStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
1279
collectionVarDecl =
Instrumenter
.InstrumentForEachStatementCollectionVarDeclaration(original, collectionVarDecl);
1290
iterationVarDecl =
Instrumenter
.InstrumentForEachStatementDeconstructionVariablesDeclaration(original, iterationVarDecl);
1294
iterationVarDecl =
Instrumenter
.InstrumentForEachStatementIterationVarDeclaration(original, iterationVarDecl);
1303
result =
Instrumenter
.InstrumentForEachStatement(original, result);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (4)
29
rewrittenCondition =
Instrumenter
.InstrumentForStatementCondition(node, rewrittenCondition, _factory);
149
branchBack =
Instrumenter
.InstrumentForEachStatementConditionalGotoStart((BoundForEachStatement)original, branchBack);
152
branchBack =
Instrumenter
.InstrumentForStatementConditionalGotoStartOrBreak((BoundForStatement)original, branchBack);
245
ifNotConditionGotoBreak =
Instrumenter
.InstrumentForStatementConditionalGotoStartOrBreak(node, ifNotConditionGotoBreak);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
65
rewrittenInvocation =
Instrumenter
.InstrumentFunctionPointerInvocation(node, rewrittenInvocation);
Lowering\LocalRewriter\LocalRewriter_GotoStatement.cs (1)
27
result =
Instrumenter
.InstrumentGotoStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (2)
31
rewrittenCondition =
Instrumenter
.InstrumentIfStatementCondition(node, rewrittenCondition, _factory);
110
builder[conditionalGotoIndex] =
Instrumenter
.InstrumentIfStatementConditionalGoto(node, builder[conditionalGotoIndex]);
Lowering\LocalRewriter\LocalRewriter_LabeledStatement.cs (1)
31
labelStatement =
Instrumenter
.InstrumentLabelStatement(node, labelStatement);
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
80
rewrittenLocalDeclaration =
Instrumenter
.InstrumentUserDefinedLocalInitialization(originalOpt, rewrittenLocalDeclaration);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
236
Instrumenter
.InstrumentLockTargetCapture(original, lockTargetCapture) :
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
91
Instrumenter
.InterceptCallAndAdjustArguments(ref constructor, ref receiver, ref rewrittenArguments, ref argumentRefKindsOpt);
120
rewrittenObjectCreation =
Instrumenter
.InstrumentObjectCreationExpression(node, rewrittenObjectCreation);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
206
Instrumenter
.InterceptCallAndAdjustArguments(ref addMethod, ref rewrittenReceiver, ref rewrittenArguments, ref argumentRefKindsOpt);
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (2)
81
var instrumentedExpression = _localRewriter.
Instrumenter
.InstrumentSwitchStatementExpression(node, loweredSwitchGoverningExpression, _factory);
177
translatedSwitch = _localRewriter.
Instrumenter
.InstrumentSwitchStatement(node, translatedSwitch);
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
31
rewritten =
Instrumenter
.InstrumentReturnStatement(node, rewritten);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
99
loweredValue = this._localRewriter.
Instrumenter
.InstrumentSwitchExpressionArmExpression(arm.Value, loweredValue, _factory);
Lowering\LocalRewriter\LocalRewriter_ThrowStatement.cs (1)
14
result =
Instrumenter
.InstrumentThrowStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
94
Instrumenter
.InstrumentCatchBlock(
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
187
expressionStatement =
Instrumenter
.InstrumentUsingTargetCapture(node, expressionStatement);
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (4)
28
rewrittenCondition =
Instrumenter
.InstrumentWhileStatementCondition(node, rewrittenCondition, _factory);
75
ifConditionGotoStart =
Instrumenter
.InstrumentWhileStatementConditionalGotoStartOrBreak((BoundWhileStatement)loop, ifConditionGotoStart);
79
ifConditionGotoStart =
Instrumenter
.InstrumentForEachStatementConditionalGotoStart((BoundForEachStatement)loop, ifConditionGotoStart);
142
ifNotConditionGotoBreak =
Instrumenter
.InstrumentWhileStatementConditionalGotoStartOrBreak(loop, ifNotConditionGotoBreak);
Lowering\LocalRewriter\LocalRewriter_Yield.cs (2)
23
result =
Instrumenter
.InstrumentYieldBreakStatement(node, result);
34
result =
Instrumenter
.InstrumentYieldReturnStatement(node, result);