3 implementations of IMethodBody
Microsoft.CodeAnalysis (3)
CodeGen\MethodBody.cs (1)
16
internal sealed class MethodBody : Cci.
IMethodBody
Emit\NoPia\CommonEmbeddedMethod.cs (1)
112
private sealed class EmptyBody : Cci.
IMethodBody
PEWriter\RootModuleStaticConstructor.cs (1)
17
internal sealed partial class RootModuleStaticConstructor : IMethodDefinition,
IMethodBody
68 references to IMethodBody
Microsoft.CodeAnalysis (68)
CodeGen\MethodBody.cs (14)
118
ImmutableArray<SourceSpan> Cci.
IMethodBody
.CodeCoverageSpans => _codeCoverageSpans;
120
ImmutableArray<Cci.ExceptionHandlerRegion> Cci.
IMethodBody
.ExceptionRegions => _exceptionHandlers;
122
bool Cci.
IMethodBody
.AreLocalsZeroed => _areLocalsZeroed;
124
ImmutableArray<Cci.ILocalDefinition> Cci.
IMethodBody
.LocalVariables => _locals;
126
Cci.IMethodDefinition Cci.
IMethodBody
.MethodDefinition => _parent;
128
StateMachineMoveNextBodyDebugInfo Cci.
IMethodBody
.MoveNextBodyInfo => _stateMachineMoveNextDebugInfoOpt;
130
ushort Cci.
IMethodBody
.MaxStack => _maxStack;
136
ImmutableArray<Cci.LocalScope> Cci.
IMethodBody
.LocalScopes => _localScopes;
141
Cci.IImportScope Cci.
IMethodBody
.ImportScope => _importScopeOpt;
143
string Cci.
IMethodBody
.StateMachineTypeName => _stateMachineTypeNameOpt;
145
ImmutableArray<StateMachineHoistedLocalScope> Cci.
IMethodBody
.StateMachineHoistedLocalScopes
148
ImmutableArray<EncHoistedLocalInfo> Cci.
IMethodBody
.StateMachineHoistedLocalSlots
151
ImmutableArray<Cci.ITypeReference?> Cci.
IMethodBody
.StateMachineAwaiterSlots
154
bool Cci.
IMethodBody
.HasDynamicLocalVariables => _hasDynamicLocalVariables;
Emit\CommonPEModuleBuilder.cs (5)
37
private readonly ConcurrentDictionary<IMethodSymbolInternal, Cci.
IMethodBody
> _methodBodyMap;
66
_methodBodyMap = new ConcurrentDictionary<IMethodSymbolInternal, Cci.
IMethodBody
>(ReferenceEqualityComparer.Instance);
327
internal Cci.
IMethodBody
? GetMethodBody(IMethodSymbolInternal methodSymbol)
333
Cci.
IMethodBody
? body;
344
public void SetMethodBody(IMethodSymbolInternal methodSymbol, Cci.
IMethodBody
body)
Emit\EditAndContinue\DeletedMethodBody.cs (1)
14
internal sealed class DeletedMethodBody(IDeletedMethodDefinition methodDef, ImmutableArray<byte> il) : Cci.
IMethodBody
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
89
public Cci.
IMethodBody
GetBody(EmitContext context)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (1)
111
public
IMethodBody
GetBody(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
852
protected override StandaloneSignatureHandle SerializeLocalVariablesSignature(
IMethodBody
body)
Emit\NoPia\CommonEmbeddedMethod.cs (21)
99
Cci.
IMethodBody
? Cci.IMethodDefinition.GetBody(EmitContext context)
121
ImmutableArray<Cci.ExceptionHandlerRegion> Cci.
IMethodBody
.ExceptionRegions =>
124
bool Cci.
IMethodBody
.HasStackalloc => false;
126
bool Cci.
IMethodBody
.AreLocalsZeroed => false;
128
ImmutableArray<Cci.ILocalDefinition> Cci.
IMethodBody
.LocalVariables =>
131
Cci.IMethodDefinition Cci.
IMethodBody
.MethodDefinition => _method;
133
ushort Cci.
IMethodBody
.MaxStack => 0;
135
ImmutableArray<byte> Cci.
IMethodBody
.IL => ImmutableArray<byte>.Empty;
137
ImmutableArray<Cci.SequencePoint> Cci.
IMethodBody
.SequencePoints => ImmutableArray<Cci.SequencePoint>.Empty;
139
bool Cci.
IMethodBody
.HasDynamicLocalVariables => false;
141
StateMachineMoveNextBodyDebugInfo Cci.
IMethodBody
.MoveNextBodyInfo => null;
143
ImmutableArray<SourceSpan> Cci.
IMethodBody
.CodeCoverageSpans => ImmutableArray<SourceSpan>.Empty;
145
ImmutableArray<Cci.LocalScope> Cci.
IMethodBody
.LocalScopes =>
148
Cci.IImportScope Cci.
IMethodBody
.ImportScope => null;
150
ImmutableArray<StateMachineHoistedLocalScope> Cci.
IMethodBody
.StateMachineHoistedLocalScopes =>
153
string Cci.
IMethodBody
.StateMachineTypeName => null;
155
ImmutableArray<EncHoistedLocalInfo> Cci.
IMethodBody
.StateMachineHoistedLocalSlots =>
158
ImmutableArray<Cci.ITypeReference> Cci.
IMethodBody
.StateMachineAwaiterSlots =>
161
ImmutableArray<EncClosureInfo> Cci.
IMethodBody
.ClosureDebugInfo =>
164
ImmutableArray<EncLambdaInfo> Cci.
IMethodBody
.LambdaDebugInfo =>
167
ImmutableArray<LambdaRuntimeRudeEditInfo> Cci.
IMethodBody
.OrderedLambdaRuntimeRudeEdits =>
Emit\NoPia\VtblGap.cs (1)
28
Cci.
IMethodBody
? Cci.IMethodDefinition.GetBody(EmitContext context)
NativePdbWriter\PdbWriter.cs (2)
66
public void SerializeDebugInfo(
IMethodBody
methodBody, StandaloneSignatureHandle localSignatureHandleOpt, CustomDebugInfoWriter customDebugInfoWriter)
157
private void DefineNamespaceScopes(
IMethodBody
methodBody)
PEWriter\CustomDebugInfoWriter.cs (9)
24
private
IMethodBody
_methodBodyWithModuleInfo;
27
private
IMethodBody
_previousMethodBodyWithUsingInfo;
42
public bool ShouldForwardNamespaceScopes(EmitContext context,
IMethodBody
methodBody, MethodDefinitionHandle methodHandle, out IMethodDefinition forwardToMethod)
68
IMethodBody
methodBody,
165
IMethodBody
methodBody,
203
private static void SerializeDynamicLocalInfo(ref CustomDebugInfoEncoder encoder,
IMethodBody
methodBody)
245
private static void SerializeTupleElementNames(ref CustomDebugInfoEncoder encoder,
IMethodBody
methodBody)
262
private void SerializeNamespaceScopeMetadata(ref CustomDebugInfoEncoder encoder, EmitContext context,
IMethodBody
methodBody)
291
private bool ShouldForwardToPreviousMethodWithUsingInfo(EmitContext context,
IMethodBody
methodBody)
PEWriter\Members.cs (1)
528
IMethodBody
? GetBody(EmitContext context);
PEWriter\MetadataVisitor.cs (1)
262
public virtual void Visit(
IMethodBody
methodBody)
PEWriter\MetadataWriter.cs (4)
2955
IMethodBody
body;
2996
private int SerializeMethodBody(MethodBodyStreamEncoder encoder,
IMethodBody
methodBody, StandaloneSignatureHandle localSignatureHandleOpt, ref UserStringHandle mvidStringHandle, ref Blob mvidStringFixup)
3041
protected virtual StandaloneSignatureHandle SerializeLocalVariablesSignature(
IMethodBody
body)
4151
internal static EditAndContinueMethodDebugInformation GetEncMethodDebugInfo(
IMethodBody
methodBody)
PEWriter\MetadataWriter.DynamicAnalysis.cs (1)
66
internal void SerializeMethodCodeCoverageData(
IMethodBody
? body)
PEWriter\MetadataWriter.PortablePdb.cs (3)
57
private void SerializeMethodDebugInfo(
IMethodBody
bodyOpt, int methodRid, int aggregateMethodRid, StandaloneSignatureHandle localSignatureHandleOpt, ref LocalVariableHandle lastLocalVariableHandle, ref LocalConstantHandle lastLocalConstantHandle)
600
private void SerializeStateMachineLocalScopes(
IMethodBody
methodBody, MethodDefinitionHandle method)
806
private void SerializeEncMethodDebugInformation(
IMethodBody
methodBody, MethodDefinitionHandle method)
PEWriter\ReferenceIndexer.cs (1)
108
var
body = method.GetBody(Context);
PEWriter\RootModuleStaticConstructor.cs (1)
35
public
IMethodBody
GetBody(EmitContext context) => this;