126 lines
6.7 KiB
C#
126 lines
6.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Reflection.Emit
|
|
{
|
|
/// <summary>Generates Microsoft intermediate language (MSIL) instructions.</summary>
|
|
// Token: 0x0200026C RID: 620
|
|
[Token(Token = "0x200026C")]
|
|
public class ILGenerator
|
|
{
|
|
/// <summary>Declares a local variable of the specified type.</summary>
|
|
/// <param name="localType">A <see cref="T:System.Type" /> object that represents the type of the local variable.</param>
|
|
/// <returns>The declared local variable.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="localType" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">The containing type has been created by the <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" /> method.</exception>
|
|
// Token: 0x0600167E RID: 5758 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600167E")]
|
|
[Address(RVA = "0x2A07FD0", Offset = "0x2A06DD0", VA = "0x182A07FD0", Slot = "4")]
|
|
public virtual LocalBuilder DeclareLocal(Type localType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Declares a new label.</summary>
|
|
/// <returns>A new label that can be used as a token for branching.</returns>
|
|
// Token: 0x0600167F RID: 5759 RVA: 0x0000FD08 File Offset: 0x0000DF08
|
|
[Token(Token = "0x600167F")]
|
|
[Address(RVA = "0x2A08020", Offset = "0x2A06E20", VA = "0x182A08020", Slot = "5")]
|
|
public virtual Label DefineLabel()
|
|
{
|
|
return default(Label);
|
|
}
|
|
|
|
/// <summary>Puts the specified instruction onto the stream of instructions.</summary>
|
|
/// <param name="opcode">The Microsoft Intermediate Language (MSIL) instruction to be put onto the stream.</param>
|
|
// Token: 0x06001680 RID: 5760 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001680")]
|
|
[Address(RVA = "0x2A08070", Offset = "0x2A06E70", VA = "0x182A08070", Slot = "6")]
|
|
public virtual void Emit(OpCode opcode)
|
|
{
|
|
}
|
|
|
|
/// <summary>Puts the specified instruction and numerical argument onto the Microsoft intermediate language (MSIL) stream of instructions.</summary>
|
|
/// <param name="opcode">The MSIL instruction to be put onto the stream.</param>
|
|
/// <param name="arg">The numerical argument pushed onto the stream immediately after the instruction.</param>
|
|
// Token: 0x06001681 RID: 5761 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001681")]
|
|
[Address(RVA = "0x2A08200", Offset = "0x2A07000", VA = "0x182A08200", Slot = "7")]
|
|
public virtual void Emit(OpCode opcode, int arg)
|
|
{
|
|
}
|
|
|
|
/// <summary>Puts the specified instruction and metadata token for the specified constructor onto the Microsoft intermediate language (MSIL) stream of instructions.</summary>
|
|
/// <param name="opcode">The MSIL instruction to be emitted onto the stream.</param>
|
|
/// <param name="con">A <see langword="ConstructorInfo" /> representing a constructor.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="con" /> is <see langword="null" />. This exception is new in the .NET Framework 4.</exception>
|
|
// Token: 0x06001682 RID: 5762 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001682")]
|
|
[Address(RVA = "0x2A081B0", Offset = "0x2A06FB0", VA = "0x182A081B0", Slot = "8")]
|
|
public virtual void Emit(OpCode opcode, ConstructorInfo con)
|
|
{
|
|
}
|
|
|
|
/// <summary>Puts the specified instruction onto the Microsoft intermediate language (MSIL) stream and leaves space to include a label when fixes are done.</summary>
|
|
/// <param name="opcode">The MSIL instruction to be emitted onto the stream.</param>
|
|
/// <param name="label">The label to which to branch from this location.</param>
|
|
// Token: 0x06001683 RID: 5763 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001683")]
|
|
[Address(RVA = "0x2A080C0", Offset = "0x2A06EC0", VA = "0x182A080C0", Slot = "9")]
|
|
public virtual void Emit(OpCode opcode, Label label)
|
|
{
|
|
}
|
|
|
|
/// <summary>Puts the specified instruction and metadata token for the specified field onto the Microsoft intermediate language (MSIL) stream of instructions.</summary>
|
|
/// <param name="opcode">The MSIL instruction to be emitted onto the stream.</param>
|
|
/// <param name="field">A <see langword="FieldInfo" /> representing a field.</param>
|
|
// Token: 0x06001684 RID: 5764 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001684")]
|
|
[Address(RVA = "0x2A08110", Offset = "0x2A06F10", VA = "0x182A08110", Slot = "10")]
|
|
public virtual void Emit(OpCode opcode, FieldInfo field)
|
|
{
|
|
}
|
|
|
|
/// <summary>Puts the specified instruction onto the Microsoft intermediate language (MSIL) stream followed by the metadata token for the given method.</summary>
|
|
/// <param name="opcode">The MSIL instruction to be emitted onto the stream.</param>
|
|
/// <param name="meth">A <see langword="MethodInfo" /> representing a method.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="meth" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">
|
|
/// <paramref name="meth" /> is a generic method for which the <see cref="P:System.Reflection.MethodBase.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
|
|
// Token: 0x06001685 RID: 5765 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001685")]
|
|
[Address(RVA = "0x2A08250", Offset = "0x2A07050", VA = "0x182A08250", Slot = "11")]
|
|
public virtual void Emit(OpCode opcode, MethodInfo meth)
|
|
{
|
|
}
|
|
|
|
/// <summary>Puts the specified instruction onto the Microsoft intermediate language (MSIL) stream followed by the metadata token for the given type.</summary>
|
|
/// <param name="opcode">The MSIL instruction to be put onto the stream.</param>
|
|
/// <param name="cls">A <see langword="Type" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="cls" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06001686 RID: 5766 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001686")]
|
|
[Address(RVA = "0x2A08160", Offset = "0x2A06F60", VA = "0x182A08160", Slot = "12")]
|
|
public virtual void Emit(OpCode opcode, Type cls)
|
|
{
|
|
}
|
|
|
|
/// <summary>Marks the Microsoft intermediate language (MSIL) stream's current position with the given label.</summary>
|
|
/// <param name="loc">The label for which to set an index.</param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="loc" /> represents an invalid index into the label array.
|
|
/// -or-
|
|
/// An index for <paramref name="loc" /> has already been defined.</exception>
|
|
// Token: 0x06001687 RID: 5767 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001687")]
|
|
[Address(RVA = "0x2A082A0", Offset = "0x2A070A0", VA = "0x182A082A0", Slot = "13")]
|
|
public virtual void MarkLabel(Label loc)
|
|
{
|
|
}
|
|
}
|
|
}
|