3 instantiations of MethodInstrumentation
Microsoft.CodeAnalysis (2)
Emit\MethodInstrumentation.cs (1)
14
internal static readonly MethodInstrumentation Empty = new
MethodInstrumentation
()
Emit\SemanticEdit.cs (1)
211
Instrumentation = new
MethodInstrumentation
() { Kinds = instrumentationKinds };
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\PEModuleBuilder.cs (1)
516
=> new
MethodInstrumentation
{ Kinds = EmitOptions.InstrumentationKinds };
23 references to MethodInstrumentation
Microsoft.CodeAnalysis (12)
Emit\EditAndContinue\DefinitionMap.cs (4)
41
private readonly ImmutableDictionary<IMethodSymbolInternal,
MethodInstrumentation
> _methodInstrumentations;
473
internal
MethodInstrumentation
GetMethodBodyInstrumentations(IMethodSymbolInternal method)
474
=> _methodInstrumentations.TryGetValue(method, out
var
instrumentation) ? instrumentation :
MethodInstrumentation
.Empty;
Emit\MethodInstrumentation.cs (1)
14
internal static readonly
MethodInstrumentation
Empty = new MethodInstrumentation()
Emit\SemanticEdit.cs (7)
60
public
MethodInstrumentation
Instrumentation { get; }
66
: this(kind, oldSymbol, newSymbol, syntaxMap, preserveLocalVariables,
MethodInstrumentation
.Empty)
74
public 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)
104
public SemanticEdit(SemanticEditKind kind, ISymbol? oldSymbol, ISymbol? newSymbol, Func<SyntaxNode, SyntaxNode?>? syntaxMap = null, Func<SyntaxNode, RuntimeRudeEdit?>? runtimeRudeEdit = null,
MethodInstrumentation
instrumentation = default)
162
instrumentation =
MethodInstrumentation
.Empty;
186
throw new ArgumentOutOfRangeException(nameof(
MethodInstrumentation
.Kinds), string.Format(CodeAnalysisResources.InvalidInstrumentationKind, instrumentationKind));
Microsoft.CodeAnalysis.CSharp (11)
Compiler\MethodCompiler.cs (6)
284
instrumentation:
MethodInstrumentation
.Empty,
359
private DebugDocumentProvider GetDebugDocumentProvider(
MethodInstrumentation
instrumentation)
814
GetDebugDocumentProvider(
MethodInstrumentation
.Empty),
1002
var
instrumentation = compilationState.ModuleBuilderOpt?.GetMethodBodyInstrumentations(methodSymbol) ??
MethodInstrumentation
.Empty;
1488
MethodInstrumentation
instrumentation,
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
241
internal override
MethodInstrumentation
GetMethodBodyInstrumentations(MethodSymbol method)
Emitter\Model\PEModuleBuilder.cs (1)
515
internal virtual
MethodInstrumentation
GetMethodBodyInstrumentations(MethodSymbol method)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
144
var
instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(method);
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
179
var
instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(method);
Lowering\LocalRewriter\LocalRewriter.cs (1)
94
MethodInstrumentation
instrumentation,