mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-12 17:18:40 +00:00
Finish initialising class of the main method before execution (#59)
This commit is contained in:
@@ -142,6 +142,17 @@ type MethodInstructions =
|
||||
ExceptionRegions : ImmutableArray<ExceptionRegion>
|
||||
}
|
||||
|
||||
static member OnlyRet : MethodInstructions =
|
||||
let op = IlOp.Nullary NullaryIlOp.Ret
|
||||
|
||||
{
|
||||
Instructions = [ op, 0 ]
|
||||
Locations = Map.empty |> Map.add 0 op
|
||||
LocalsInit = false
|
||||
LocalVars = None
|
||||
ExceptionRegions = ImmutableArray.Empty
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents detailed information about a method in a .NET assembly.
|
||||
/// This is a strongly-typed representation of MethodDefinition from System.Reflection.Metadata.
|
||||
|
Reference in New Issue
Block a user