7 instantiations of MethodInstrumentation
Microsoft.CodeAnalysis (2)
Emit\MethodInstrumentation.cs (1)
14internal static readonly MethodInstrumentation Empty = new MethodInstrumentation()
Emit\SemanticEdit.cs (1)
211Instrumentation = new MethodInstrumentation() { Kinds = instrumentationKinds };
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\PEModuleBuilder.cs (1)
506=> new MethodInstrumentation { Kinds = EmitOptions.InstrumentationKinds };
Microsoft.CodeAnalysis.UnitTests (3)
Emit\SemanticEditTests.cs (3)
38var instrumentation = new MethodInstrumentation() { Kinds = ImmutableArray.Create(InstrumentationKind.TestCoverage) }; 47instrumentation: new MethodInstrumentation() { Kinds = ImmutableArray.Create(InstrumentationKindExtensions.LocalStateTracing) })); 50instrumentation: new MethodInstrumentation() { Kinds = ImmutableArray.Create((InstrumentationKind)123) }));
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\PEModuleBuilder.vb (1)
325Return New MethodInstrumentation() With {.Kinds = EmitOptions.InstrumentationKinds}
28 references to MethodInstrumentation
Microsoft.CodeAnalysis (11)
Emit\EditAndContinue\DefinitionMap.cs (3)
41private readonly ImmutableDictionary<IMethodSymbolInternal, MethodInstrumentation> _methodInstrumentations; 415internal MethodInstrumentation GetMethodBodyInstrumentations(IMethodSymbolInternal method) 416=> _methodInstrumentations.TryGetValue(method, out var instrumentation) ? instrumentation : MethodInstrumentation.Empty;
Emit\MethodInstrumentation.cs (1)
14internal static readonly MethodInstrumentation Empty = new MethodInstrumentation()
Emit\SemanticEdit.cs (7)
60public MethodInstrumentation Instrumentation { get; } 66: this(kind, oldSymbol, newSymbol, syntaxMap, preserveLocalVariables, MethodInstrumentation.Empty) 74public SemanticEdit(SemanticEditKind kind, ISymbol? oldSymbol, ISymbol? newSymbol, Func<SyntaxNode, SyntaxNode?>? syntaxMap, bool preserveLocalVariables, MethodInstrumentation instrumentation) 75: this(kind, oldSymbol, newSymbol, syntaxMap, runtimeRudeEdit: null, MethodInstrumentation.Empty) 104public SemanticEdit(SemanticEditKind kind, ISymbol? oldSymbol, ISymbol? newSymbol, Func<SyntaxNode, SyntaxNode?>? syntaxMap = null, Func<SyntaxNode, RuntimeRudeEdit?>? runtimeRudeEdit = null, MethodInstrumentation instrumentation = default) 162instrumentation = MethodInstrumentation.Empty; 186throw new ArgumentOutOfRangeException(nameof(MethodInstrumentation.Kinds), string.Format(CodeAnalysisResources.InvalidInstrumentationKind, instrumentationKind));
Microsoft.CodeAnalysis.CSharp (10)
Compiler\MethodCompiler.cs (5)
277instrumentation: MethodInstrumentation.Empty, 352private DebugDocumentProvider GetDebugDocumentProvider(MethodInstrumentation instrumentation) 772GetDebugDocumentProvider(MethodInstrumentation.Empty), 950var instrumentation = compilationState.ModuleBuilderOpt?.GetMethodBodyInstrumentations(methodSymbol) ?? MethodInstrumentation.Empty; 1368MethodInstrumentation instrumentation,
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
249internal override MethodInstrumentation GetMethodBodyInstrumentations(MethodSymbol method)
Emitter\Model\PEModuleBuilder.cs (1)
505internal virtual MethodInstrumentation GetMethodBodyInstrumentations(MethodSymbol method)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
144var instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(method);
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
179var instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(method);
Lowering\LocalRewriter\LocalRewriter.cs (1)
93MethodInstrumentation instrumentation,
Microsoft.CodeAnalysis.UnitTests (1)
Emit\SemanticEditTests.cs (1)
38var instrumentation = new MethodInstrumentation() { Kinds = ImmutableArray.Create(InstrumentationKind.TestCoverage) };
Microsoft.CodeAnalysis.VisualBasic (6)
Compilation\MethodCompiler.vb (3)
113Private Function GetDebugDocumentProvider(instrumentations As MethodInstrumentation) As DebugDocumentProvider 898debugDocumentProvider:=GetDebugDocumentProvider(MethodInstrumentation.Empty), 1045debugDocumentProvider:=GetDebugDocumentProvider(MethodInstrumentation.Empty),
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
236Friend Overrides Function GetMethodBodyInstrumentations(method As MethodSymbol) As MethodInstrumentation
Emit\PEModuleBuilder.vb (1)
324Friend Overridable Function GetMethodBodyInstrumentations(method As MethodSymbol) As MethodInstrumentation
Lowering\Rewriter.vb (1)
23instrumentations As MethodInstrumentation,