40 references to Instrumenter
Microsoft.CodeAnalysis.CSharp (40)
Lowering\LocalRewriter\LocalRewriter.cs (1)
678rewritten = Instrumenter.InstrumentFieldOrPropertyInitializer(original, rewritten);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1131conditionalGoto = _localRewriter.Instrumenter.InstrumentSwitchWhenClauseConditionalGotoBody(whenExpression, conditionalGoto);
Lowering\LocalRewriter\LocalRewriter_Block.cs (3)
19Instrumenter.PreInstrumentBlock(node, this); 30Instrumenter.InstrumentBlock(node, this, ref additionalLocals, out var prologue, out var epilogue, out instrumentation); 106: Instrumenter.InstrumentNoOpStatement(node, node);
Lowering\LocalRewriter\LocalRewriter_BreakStatement.cs (1)
18result = Instrumenter.InstrumentBreakStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
171rewrittenCall = 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)
1054collectionVarDecl = Instrumenter.InstrumentForEachStatementCollectionVarDeclaration(original, collectionVarDecl); 1065iterationVarDecl = Instrumenter.InstrumentForEachStatementDeconstructionVariablesDeclaration(original, iterationVarDecl); 1069iterationVarDecl = Instrumenter.InstrumentForEachStatementIterationVarDeclaration(original, iterationVarDecl); 1078result = Instrumenter.InstrumentForEachStatement(original, result);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (4)
30rewrittenCondition = Instrumenter.InstrumentForStatementCondition(node, rewrittenCondition, _factory); 150branchBack = Instrumenter.InstrumentForEachStatementConditionalGotoStart((BoundForEachStatement)original, branchBack); 153branchBack = Instrumenter.InstrumentForStatementConditionalGotoStartOrBreak((BoundForStatement)original, branchBack); 242ifNotConditionGotoBreak = Instrumenter.InstrumentForStatementConditionalGotoStartOrBreak(node, ifNotConditionGotoBreak);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
61rewrittenInvocation = Instrumenter.InstrumentFunctionPointerInvocation(node, rewrittenInvocation);
Lowering\LocalRewriter\LocalRewriter_GotoStatement.cs (1)
27result = Instrumenter.InstrumentGotoStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (2)
29rewrittenCondition = Instrumenter.InstrumentIfStatementCondition(node, rewrittenCondition, _factory); 37result = Instrumenter.InstrumentIfStatement(node, result);
Lowering\LocalRewriter\LocalRewriter_LabeledStatement.cs (1)
31labelStatement = Instrumenter.InstrumentLabelStatement(node, labelStatement);
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
81rewrittenLocalDeclaration = Instrumenter.InstrumentUserDefinedLocalInitialization(originalOpt, rewrittenLocalDeclaration);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
190Instrumenter.InstrumentLockTargetCapture(original, lockTargetCapture) :
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
113rewrittenObjectCreation = Instrumenter.InstrumentObjectCreationExpression(node, rewrittenObjectCreation);
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)
186expressionStatement = 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); 137ifNotConditionGotoBreak = Instrumenter.InstrumentWhileStatementConditionalGotoStartOrBreak(loop, ifNotConditionGotoBreak);
Lowering\LocalRewriter\LocalRewriter_Yield.cs (2)
23result = Instrumenter.InstrumentYieldBreakStatement(node, result); 34result = Instrumenter.InstrumentYieldReturnStatement(node, result);