41 references to Instrument
Microsoft.CodeAnalysis.CSharp (41)
Lowering\LocalRewriter\LocalRewriter.cs (1)
799
if (
Instrument
&& !original.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_Block.cs (3)
16
if (
Instrument
)
38
if (
Instrument
)
129
return (node.WasCompilerGenerated || !this.
Instrument
)
Lowering\LocalRewriter\LocalRewriter_BreakStatement.cs (1)
16
if (this.
Instrument
&& !node.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
421
if (
Instrument
)
428
if (
Instrument
)
Lowering\LocalRewriter\LocalRewriter_ContinueStatement.cs (1)
16
if (this.
Instrument
&& !node.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (2)
28
if (!node.WasCompilerGenerated && this.
Instrument
)
35
if (!node.WasCompilerGenerated && this.
Instrument
)
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (1)
32
if (!suppressInstrumentation && this.
Instrument
&& !node.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (3)
1277
if (this.
Instrument
&& node is BoundForEachStatement original)
1285
if (this.
Instrument
&& node is BoundForEachStatement original)
1301
if (this.
Instrument
&& node is BoundForEachStatement original)
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (5)
27
if (rewrittenCondition != null && this.
Instrument
)
106
if (this.
Instrument
)
144
if (this.
Instrument
)
229
if (
Instrument
)
243
if (this.
Instrument
)
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
63
if (
Instrument
)
Lowering\LocalRewriter\LocalRewriter_GotoStatement.cs (1)
25
if (this.
Instrument
&& !node.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (2)
29
if (this.
Instrument
&& !node.WasCompilerGenerated)
108
if (this.
Instrument
&& !node.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_LabeledStatement.cs (1)
26
if (this.
Instrument
)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
75
if (this.
Instrument
&& originalOpt?.WasCompilerGenerated == false && !localSymbol.IsConst &&
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
235
return this.
Instrument
?
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
88
if (
Instrument
)
118
if (
Instrument
)
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
204
if (
Instrument
)
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (2)
67
generateInstrumentation: localRewriter.
Instrument
&& !node.WasCompilerGenerated)
77
if (!node.WasCompilerGenerated && _localRewriter.
Instrument
)
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
25
if (this.
Instrument
&&
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
31
generateInstrumentation: !node.WasCompilerGenerated && localRewriter.
Instrument
)
Lowering\LocalRewriter\LocalRewriter_ThrowStatement.cs (1)
12
if (this.
Instrument
&& !node.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
92
if (
Instrument
)
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
185
if (this.
Instrument
)
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (3)
26
if (!node.WasCompilerGenerated && this.
Instrument
)
70
if (this.
Instrument
&& !loop.WasCompilerGenerated)
140
if (this.
Instrument
&& !loop.WasCompilerGenerated)
Lowering\LocalRewriter\LocalRewriter_Yield.cs (2)
20
if (this.
Instrument
&&
32
if (this.
Instrument
&& !node.WasCompilerGenerated)