You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection {
|
||||
|
||||
internal sealed class RuntimeMethodBody : MethodBody
|
||||
{
|
||||
ExceptionHandlingClause[] clauses;
|
||||
LocalVariableInfo[] locals;
|
||||
byte[] il;
|
||||
bool init_locals;
|
||||
int sig_token;
|
||||
int max_stack;
|
||||
|
||||
// Called by the runtime
|
||||
internal RuntimeMethodBody (ExceptionHandlingClause[] clauses, LocalVariableInfo[] locals,
|
||||
byte[] il, bool init_locals, int sig_token, int max_stack)
|
||||
{
|
||||
this.clauses = clauses;
|
||||
this.locals = locals;
|
||||
this.il = il;
|
||||
this.init_locals = init_locals;
|
||||
this.sig_token = sig_token;
|
||||
this.max_stack = max_stack;
|
||||
}
|
||||
|
||||
public override int LocalSignatureMetadataToken => sig_token;
|
||||
public override IList<LocalVariableInfo> LocalVariables => Array.AsReadOnly (locals);
|
||||
public override int MaxStackSize => max_stack;
|
||||
public override bool InitLocals => init_locals;
|
||||
public override byte[] GetILAsByteArray() => il;
|
||||
public override IList<ExceptionHandlingClause> ExceptionHandlingClauses => Array.AsReadOnly (clauses);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user