7 instantiations of MethodBody
illink (2)
Linker.Steps\CodeRewriterStep.cs (2)
82
var body = new
MethodBody
(method);
108
var body = new
MethodBody
(method);
Microsoft.Maui.Controls.Build.Tasks (3)
DebugXamlCTask.cs (2)
73
initCompRuntime.Body = new
MethodBody
(initCompRuntime);
113
var body = new
MethodBody
(altCtor)
XamlCTask.cs (1)
419
var body = new
MethodBody
(initComp);
Mono.Cecil (2)
Mono.Cecil.Cil\CodeReader.cs (1)
57
this.body = new
MethodBody
(method);
Mono.Cecil\MethodDefinition.cs (1)
162
Interlocked.CompareExchange (ref body, new
MethodBody
(this) , null);
74 references to MethodBody
illink (44)
Linker.Dataflow\CompilerGeneratedState.cs (1)
457
MethodBody
body,
Linker.Dataflow\FlowAnnotations.cs (1)
544
FieldDefinition? GetAutoPropertyCompilerGeneratedField(
MethodBody
body, bool isWriteAccessor)
Linker.Dataflow\InterproceduralState.cs (3)
42
if (method.Body is not
MethodBody
methodBody)
48
public void TrackMethod(
MethodBody
methodBody)
68
if (stateMachineMethod.Body is
MethodBody
stateMachineMethodBody)
Linker.Dataflow\MethodBodyScanner.cs (1)
303
MethodBody
methodBody = methodIL.Body;
Linker.Steps\CodeRewriterStep.cs (5)
80
MethodBody
CreateThrowLinkedAwayBody(MethodDefinition method)
82
var
body = new MethodBody(method);
106
MethodBody
CreateStubBody(MethodDefinition method)
108
var
body = new MethodBody(method);
153
static void StubComplexBody(MethodDefinition method,
MethodBody
body, LinkerILProcessor il)
Linker.Steps\MarkStep.cs (14)
70
protected List<(
MethodBody
, MessageOrigin)> _unreachableBodies;
72
readonly List<(TypeDefinition Type,
MethodBody
Body, Instruction Instr)> _pending_isinst_instr;
76
readonly Dictionary<
MethodBody
, bool> _compilerGeneratedMethodRequiresScanner;
230
_unreachableBodies = new List<(
MethodBody
, MessageOrigin)>();
231
_pending_isinst_instr = new List<(TypeDefinition,
MethodBody
, Instruction)>();
233
_compilerGeneratedMethodRequiresScanner = new Dictionary<
MethodBody
, bool>();
297
foreach ((
var
body, var _) in _unreachableBodies)
668
(
var
body, var origin) = _unreachableBodies[i];
3097
var
body = property.GetMethod?.Body;
3776
protected virtual void MarkMethodBody(
MethodBody
body, MessageOrigin origin)
3905
partial void PostMarkMethodBody(
MethodBody
body);
4084
protected internal virtual bool ProcessReflectionDependency(
MethodBody
body, Instruction instruction)
4106
if (nestedFunction.Body is
MethodBody
nestedBody)
4115
if (method.Body is
MethodBody
stateMachineBody)
Linker.Steps\UnreachableBlocksOptimizer.cs (8)
479
readonly
MethodBody
body;
482
public CallInliner(
MethodBody
body, UnreachableBlocksOptimizer optimizer)
639
public BodyReducer(
MethodBody
body, LinkContext context)
651
public
MethodBody
Body { get; }
1377
readonly
MethodBody
body;
1396
public BodySweeper(
MethodBody
body, BitArray reachable, List<ExceptionHandler>? unreachableEH, LinkContext context)
1678
MethodBody
body = method.Body;
2134
Instruction? GetLocalsValue(int index,
MethodBody
body)
Linker\BannedApiExtensions.cs (5)
15
public static Collection<Instruction> Instructions(this
MethodBody
body, LinkContext context)
18
public static Collection<ExceptionHandler> ExceptionHandlers(this
MethodBody
body, LinkContext context)
21
public static Collection<VariableDefinition> Variables(this
MethodBody
body, LinkContext context)
27
public static MethodIL GetMethodIL(this
MethodBody
body, LinkContext context)
48
public static LinkerILProcessor GetLinkerILProcessor(this
MethodBody
body)
Linker\LinkContext.cs (1)
1061
public MethodIL GetMethodIL(Cecil.Cil.
MethodBody
methodBody)
Linker\LinkerILProcessor.cs (1)
17
internal LinkerILProcessor(
MethodBody
body)
Linker\MethodIL.cs (3)
17
MethodIL(
MethodBody
body) => this.Body = body;
19
public readonly
MethodBody
Body;
29
public static MethodIL Create(
MethodBody
body) => new MethodIL(body);
Linker\TypeReferenceWalker.cs (1)
179
void WalkTypeScope(
MethodBody
body)
Microsoft.Maui.Controls.Build.Tasks (9)
CompiledConverters\RDSourceTypeConverter.cs (1)
18
var
body = context.Body;
DebugXamlCTask.cs (1)
113
var
body = new MethodBody(altCtor)
ILContext.cs (2)
12
public ILContext(ILProcessor il,
MethodBody
body, ModuleDefinition module, XamlCache cache, FieldDefinition parentContextValues = null)
42
public
MethodBody
Body { get; private set; }
MethodBodyExtensions.cs (4)
11
public static void Optimize(this
MethodBody
self)
29
static void OptimizeLongs(this
MethodBody
self)
44
static void OptimizeStLdLoc(this
MethodBody
self)
64
static void RemoveUnusedLocals(this
MethodBody
self)
XamlCTask.cs (1)
419
var
body = new MethodBody(initComp);
Mono.Cecil (15)
Mono.Cecil.Cil\CodeReader.cs (2)
27
MethodBody
body;
54
public
MethodBody
ReadMethodBody (MethodDefinition method)
Mono.Cecil.Cil\CodeWriter.cs (4)
30
MethodBody
body;
60
static bool IsEmptyMethodBody (
MethodBody
body)
154
var
body = this.body;
314
var
body = this.body;
Mono.Cecil.Cil\ILProcessor.cs (3)
19
readonly
MethodBody
body;
22
public
MethodBody
Body {
26
internal ILProcessor (
MethodBody
body)
Mono.Cecil\AssemblyReader.cs (1)
2106
public
MethodBody
ReadMethodBody (MethodDefinition method)
Mono.Cecil\MethodDefinition.cs (5)
33
internal
MethodBody
body;
150
public
MethodBody
Body {
152
var
local = this.body;
522
public static ParameterDefinition GetParameter (this
MethodBody
self, int index)
541
public static VariableDefinition GetVariable (this
MethodBody
self, int index)
Mono.Cecil.Rocks (6)
Mono.Cecil.Rocks\MethodBodyRocks.cs (6)
22
public static void SimplifyMacros (this
MethodBody
self)
177
public static void Optimize (this
MethodBody
self)
186
static void OptimizeLongs (this
MethodBody
self)
200
public static void OptimizeMacros (this
MethodBody
self)
336
static void OptimizeBranches (
MethodBody
body)
403
static void ComputeOffsets (
MethodBody
body)