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