1 write to Instrumentation
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3204
this.
Instrumentation
= instrumentation;
31 references to Instrumentation
Microsoft.CodeAnalysis.CSharp (31)
BoundTree\BoundNode.cs (6)
501
if (node.
Instrumentation
!= null)
503
var added = DeclaredLocals.Add(node.
Instrumentation
.Local);
506
_ = Visit(node.
Instrumentation
.Prologue);
513
if (node.
Instrumentation
!= null)
515
_ = Visit(node.
Instrumentation
.Epilogue);
517
var removed = DeclaredLocals.Remove(node.
Instrumentation
.Local);
CodeGen\EmitStatement.cs (3)
668
if (block.
Instrumentation
is not null)
670
EmitInstrumentedBlock(block.
Instrumentation
, block);
737
if (block.
Instrumentation
!= null)
CodeGen\Optimizer.cs (2)
617
if (node.
Instrumentation
!= null)
619
DeclareLocal(node.
Instrumentation
.Local, stack: 0);
Compiler\MethodCompiler.cs (1)
1105
body = body.Update(body.Locals, body.LocalFunctions, body.HasUnsafeModifier, body.
Instrumentation
, body.Statements.Insert(insertAt, analyzedInitializers));
FlowAnalysis\DefiniteAssignment.cs (5)
1974
if (node.
Instrumentation
!= null)
1976
DeclareVariable(node.
Instrumentation
.Local);
1977
Visit(node.
Instrumentation
.Prologue);
1996
if (node.
Instrumentation
!= null)
1998
Visit(node.
Instrumentation
.Epilogue);
FlowAnalysis\FlowAnalysisPass.cs (3)
142
return body.Update(body.Locals, body.LocalFunctions, body.HasUnsafeModifier, body.
Instrumentation
, body.Statements.Insert(index: 0, initializations));
156
return body.Update(body.Locals, ImmutableArray<LocalFunctionSymbol>.Empty, body.HasUnsafeModifier, body.
Instrumentation
, builder.ToImmutableAndFree());
184
return body.Update(body.Locals, body.LocalFunctions, body.HasUnsafeModifier, body.
Instrumentation
, body.Statements.Add(ret));
Generated\BoundNodes.xml.Generated.cs (5)
3217
if (locals != this.Locals || localFunctions != this.LocalFunctions || hasUnsafeModifier != this.HasUnsafeModifier || instrumentation != this.
Instrumentation
|| statements != this.Statements)
9718
this.Visit(node.
Instrumentation
);
10890
BoundBlockInstrumentation? instrumentation = (BoundBlockInstrumentation?)this.Visit(node.
Instrumentation
);
12888
BoundBlockInstrumentation? instrumentation = (BoundBlockInstrumentation?)this.Visit(node.
Instrumentation
);
15151
new TreeDumperNode("instrumentation", null, new TreeDumperNode[] { Visit(node.
Instrumentation
, null) }),
Lowering\ClosureConversion\ClosureConversion.cs (1)
1170
var newInstrumentation = node.
Instrumentation
;
Lowering\Instrumentation\DebugInfoInjector.cs (1)
86
return block.Update(block.Locals, block.LocalFunctions, block.HasUnsafeModifier, block.
Instrumentation
, ImmutableArray.Create(InstrumentFieldOrPropertyInitializer(block.Statements.Single(), syntax)));
Lowering\LocalRewriter\LocalRewriter.cs (1)
625
statements.Add(block.Update(block.Locals, block.LocalFunctions, block.HasUnsafeModifier, block.
Instrumentation
, ImmutableArray.Create(statement)));
Lowering\MethodToClassRewriter.cs (1)
158
var newInstrumentation = removeInstrumentation ? null : (BoundBlockInstrumentation?)Visit(node.
Instrumentation
);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
699
if (node.
Instrumentation
!= null)
702
instrumentation = (BoundBlockInstrumentation)Visit(node.
Instrumentation
);