Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

126 lines
6.7 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Reflection.Emit
{
/// <summary>Generates Microsoft intermediate language (MSIL) instructions.</summary>
// Token: 0x02000273 RID: 627
[Token(Token = "0x2000273")]
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: 0x060016BD RID: 5821 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016BD")]
[Address(RVA = "0x30B9E20", Offset = "0x30B8E20", VA = "0x1830B9E20", 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: 0x060016BE RID: 5822 RVA: 0x00010068 File Offset: 0x0000E268
[Token(Token = "0x60016BE")]
[Address(RVA = "0x30B9E70", Offset = "0x30B8E70", VA = "0x1830B9E70", 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: 0x060016BF RID: 5823 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016BF")]
[Address(RVA = "0x30B9EC0", Offset = "0x30B8EC0", VA = "0x1830B9EC0", 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: 0x060016C0 RID: 5824 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016C0")]
[Address(RVA = "0x30BA050", Offset = "0x30B9050", VA = "0x1830BA050", 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: 0x060016C1 RID: 5825 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016C1")]
[Address(RVA = "0x30BA000", Offset = "0x30B9000", VA = "0x1830BA000", 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: 0x060016C2 RID: 5826 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016C2")]
[Address(RVA = "0x30B9F10", Offset = "0x30B8F10", VA = "0x1830B9F10", 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: 0x060016C3 RID: 5827 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016C3")]
[Address(RVA = "0x30B9F60", Offset = "0x30B8F60", VA = "0x1830B9F60", 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: 0x060016C4 RID: 5828 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016C4")]
[Address(RVA = "0x30BA0A0", Offset = "0x30B90A0", VA = "0x1830BA0A0", 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: 0x060016C5 RID: 5829 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016C5")]
[Address(RVA = "0x30B9FB0", Offset = "0x30B8FB0", VA = "0x1830B9FB0", 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: 0x060016C6 RID: 5830 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016C6")]
[Address(RVA = "0x30BA0F0", Offset = "0x30B90F0", VA = "0x1830BA0F0", Slot = "13")]
public virtual void MarkLabel(Label loc)
{
}
}
}