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