@tsonic/dotnet
Version:
TypeScript type definitions for .NET 10 BCL (Base Class Library)
1,079 lines (932 loc) • 52 kB
TypeScript
// Generated by tsbindgen - Architecture
// Namespace: System.Reflection.Emit
// Assembly: System.Private.CoreLib, System.Reflection.Emit
// Branded primitive types are sourced from @tsonic/types
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
// Import support types from @tsonic/types
import type { ptr, ref } from "@tsonic/types";
// Import types from other namespaces
import type { IEnumerable_1, IList_1 } from "../../System.Collections.Generic/internal/index.js";
import type { ISymbolDocumentWriter } from "../../System.Diagnostics.SymbolStore/internal/index.js";
import type { CultureInfo } from "../../System.Globalization/internal/index.js";
import type { FileStream, Stream } from "../../System.IO/internal/index.js";
import type { MetadataBuilder } from "../../System.Reflection.Metadata.Ecma335/internal/index.js";
import type { BlobBuilder } from "../../System.Reflection.Metadata/internal/index.js";
import { Assembly, ConstructorInfo, FieldInfo, MethodInfo, PropertyInfo, TypeInfo } from "../../System.Reflection/internal/index.js";
import * as System_Reflection_Internal from "../../System.Reflection/internal/index.js";
import type { AssemblyName, Binder, BindingFlags, CallingConventions, CustomAttributeData, EventAttributes, EventInfo, FieldAttributes, GenericParameterAttributes, ICustomAttributeProvider, ImageFileMachine, InterfaceMapping, IReflect, IReflectableType, LocalVariableInfo, ManifestResourceInfo, MemberFilter, MemberInfo, MemberTypes, MethodAttributes, MethodBase, MethodBody, MethodImplAttributes, Module, ParameterAttributes, ParameterInfo, ParameterModifier, PortableExecutableKinds, PropertyAttributes, TypeAttributes, TypeFilter } from "../../System.Reflection/internal/index.js";
import type { CallingConvention, CharSet, StructLayoutAttribute } from "../../System.Runtime.InteropServices/internal/index.js";
import * as System_Runtime_Serialization_Internal from "../../System.Runtime.Serialization/internal/index.js";
import type { ISerializable, SerializationInfo, StreamingContext } from "../../System.Runtime.Serialization/internal/index.js";
import type { SecurityRuleSet } from "../../System.Security/internal/index.js";
import * as System_Internal from "../../System/internal/index.js";
import type { Array as ClrArray, Boolean as ClrBoolean, Byte, Delegate, Double, Enum, Guid, IComparable, IConvertible, IEquatable_1, IFormatProvider, IFormattable, Int16, Int32, Int64, ISpanFormattable, ModuleHandle, Object as ClrObject, RuntimeFieldHandle, RuntimeMethodHandle, RuntimeTypeHandle, SByte, Single, String as ClrString, Type, TypeCode, TypedReference, ValueType, Version, Void } from "../../System/internal/index.js";
// CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints
// This utility is used ONLY in generic type arguments to satisfy CLR interface constraints
// Value positions (parameters, return types) use lowercase primitives for ergonomics
export type CLROf<T> =
T extends sbyte ? System_Internal.SByte :
T extends short ? System_Internal.Int16 :
T extends int ? System_Internal.Int32 :
T extends long ? System_Internal.Int64 :
T extends int128 ? System_Internal.Int128 :
T extends nint ? System_Internal.IntPtr :
T extends byte ? System_Internal.Byte :
T extends ushort ? System_Internal.UInt16 :
T extends uint ? System_Internal.UInt32 :
T extends ulong ? System_Internal.UInt64 :
T extends uint128 ? System_Internal.UInt128 :
T extends nuint ? System_Internal.UIntPtr :
T extends half ? System_Internal.Half :
T extends float ? System_Internal.Single :
T extends double ? System_Internal.Double :
T extends decimal ? System_Internal.Decimal :
T extends char ? System_Internal.Char :
T extends boolean ? System_Internal.Boolean :
T extends string ? System_Internal.String :
T; // Identity fallback for non-primitive types
export enum AssemblyBuilderAccess {
run = 1,
runAndCollect = 9
}
export enum FlowControl {
branch = 0,
break_ = 1,
call = 2,
Cond_Branch = 3,
meta = 4,
next = 5,
phi = 6,
return_ = 7,
throw_ = 8
}
export enum OpCodeType {
annotation = 0,
macro = 1,
nternal = 2,
objmodel = 3,
prefix = 4,
primitive = 5
}
export enum OperandType {
inlineBrTarget = 0,
inlineField = 1,
inlineI = 2,
inlineI8 = 3,
inlineMethod = 4,
inlineNone = 5,
inlinePhi = 6,
inlineR = 7,
inlineSig = 9,
inlineString = 10,
inlineSwitch = 11,
inlineTok = 12,
inlineType = 13,
inlineVar = 14,
shortInlineBrTarget = 15,
shortInlineI = 16,
shortInlineR = 17,
shortInlineVar = 18
}
export enum PackingSize {
unspecified = 0,
size1 = 1,
size2 = 2,
size4 = 4,
size8 = 8,
size16 = 16,
size32 = 32,
size64 = 64,
size128 = 128
}
export enum PEFileKinds {
dll = 1,
consoleApplication = 2,
windowApplication = 3
}
export enum StackBehaviour {
pop0 = 0,
pop1 = 1,
Pop1_pop1 = 2,
popi = 3,
Popi_pop1 = 4,
Popi_popi = 5,
Popi_popi8 = 6,
Popi_popi_popi = 7,
Popi_popr4 = 8,
Popi_popr8 = 9,
popref = 10,
Popref_pop1 = 11,
Popref_popi = 12,
Popref_popi_popi = 13,
Popref_popi_popi8 = 14,
Popref_popi_popr4 = 15,
Popref_popi_popr8 = 16,
Popref_popi_popref = 17,
push0 = 18,
push1 = 19,
Push1_push1 = 20,
pushi = 21,
pushi8 = 22,
pushr4 = 23,
pushr8 = 24,
pushref = 25,
varpop = 26,
varpush = 27,
Popref_popi_pop1 = 28
}
export interface Label$instance {
readonly id: int;
equals(obj: unknown): boolean;
equals(obj: Label): boolean;
getHashCode(): int;
}
export const Label: {
new(): Label$instance;
};
export interface __Label$views {
As_IEquatable_1(): System_Internal.IEquatable_1$instance<Label>;
// Structural method bridges for numeric interface constraints
Equals(other: Label): boolean;
}
export type Label = Label$instance & __Label$views;
export interface OpCode$instance {
readonly evaluationStackDelta: int;
readonly flowControl: FlowControl;
readonly name: string;
readonly opCodeType: OpCodeType;
readonly operandType: OperandType;
readonly size: int;
readonly stackBehaviourPop: StackBehaviour;
readonly stackBehaviourPush: StackBehaviour;
readonly value: short;
equals(obj: unknown): boolean;
equals(obj: OpCode): boolean;
getHashCode(): int;
toString(): string;
}
export const OpCode: {
new(): OpCode$instance;
};
export interface __OpCode$views {
As_IEquatable_1(): System_Internal.IEquatable_1$instance<OpCode>;
// Structural method bridges for numeric interface constraints
Equals(other: OpCode): boolean;
}
export type OpCode = OpCode$instance & __OpCode$views;
export interface AssemblyBuilder$instance extends Assembly {
readonly codeBase: string;
readonly entryPoint: MethodInfo;
readonly isDynamic: boolean;
readonly location: string;
defineDynamicModule(name: string): ModuleBuilder;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getDynamicModule(name: string): ModuleBuilder;
getExportedTypes(): Type[];
getFile(name: string): FileStream;
getFiles(getResourceModules: boolean): FileStream[];
getFiles(): FileStream[];
getManifestResourceInfo(resourceName: string): ManifestResourceInfo;
getManifestResourceNames(): string[];
getManifestResourceStream(name: string): Stream;
getManifestResourceStream(type_: Type, name: string): Stream;
getObjectData(info: SerializationInfo, context: StreamingContext): void;
isDefined(attributeType: Type, inherit: boolean): boolean;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
}
export const AssemblyBuilder: {
defineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess, assemblyAttributes: IEnumerable_1<CustomAttributeBuilder>): AssemblyBuilder;
defineDynamicAssembly(name: AssemblyName, access: AssemblyBuilderAccess): AssemblyBuilder;
};
export interface __AssemblyBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
As_ISerializable(): System_Runtime_Serialization_Internal.ISerializable$instance;
}
export type AssemblyBuilder = AssemblyBuilder$instance & __AssemblyBuilder$views;
export interface ConstructorBuilder$instance extends ConstructorInfo {
initLocals: boolean;
defineParameter(iSequence: int, attributes: ParameterAttributes, strParamName: string): ParameterBuilder;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getILGenerator(): ILGenerator;
getILGenerator(streamSize: int): ILGenerator;
isDefined(attributeType: Type, inherit: boolean): boolean;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
setImplementationFlags(attributes: MethodImplAttributes): void;
}
export const ConstructorBuilder: {
};
export interface __ConstructorBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
}
export type ConstructorBuilder = ConstructorBuilder$instance & __ConstructorBuilder$views;
export interface CustomAttributeBuilder$instance {
}
export const CustomAttributeBuilder: {
new(con: ConstructorInfo, constructorArgs: unknown[]): CustomAttributeBuilder$instance;
new(con: ConstructorInfo, constructorArgs: unknown[], namedProperties: PropertyInfo[], propertyValues: unknown[]): CustomAttributeBuilder$instance;
new(con: ConstructorInfo, constructorArgs: unknown[], namedFields: FieldInfo[], fieldValues: unknown[]): CustomAttributeBuilder$instance;
new(con: ConstructorInfo, constructorArgs: unknown[], namedProperties: PropertyInfo[], propertyValues: unknown[], namedFields: FieldInfo[], fieldValues: unknown[]): CustomAttributeBuilder$instance;
};
export type CustomAttributeBuilder = CustomAttributeBuilder$instance;
export interface DynamicILInfo$instance {
readonly dynamicMethod: DynamicMethod;
getTokenFor(method: RuntimeMethodHandle): int;
getTokenFor(method: DynamicMethod): int;
getTokenFor(method: RuntimeMethodHandle, contextType: RuntimeTypeHandle): int;
getTokenFor(field: RuntimeFieldHandle): int;
getTokenFor(field: RuntimeFieldHandle, contextType: RuntimeTypeHandle): int;
getTokenFor(type_: RuntimeTypeHandle): int;
getTokenFor(literal: string): int;
getTokenFor(signature: byte[]): int;
setCode(code: byte[], maxStackSize: int): void;
setCode(code: ptr<byte>, codeSize: int, maxStackSize: int): void;
setExceptions(exceptions: byte[]): void;
setExceptions(exceptions: ptr<byte>, exceptionsSize: int): void;
setLocalSignature(localSignature: byte[]): void;
setLocalSignature(localSignature: ptr<byte>, signatureSize: int): void;
}
export const DynamicILInfo: {
new(): DynamicILInfo$instance;
};
export type DynamicILInfo = DynamicILInfo$instance;
export interface DynamicMethod$instance extends MethodInfo {
readonly attributes: MethodAttributes;
readonly callingConvention: CallingConventions;
readonly declaringType: Type;
initLocals: boolean;
readonly isSecurityCritical: boolean;
readonly isSecuritySafeCritical: boolean;
readonly isSecurityTransparent: boolean;
readonly methodHandle: RuntimeMethodHandle;
readonly module_: Module;
readonly name: string;
readonly reflectedType: Type;
readonly returnParameter: ParameterInfo;
readonly returnType: Type;
readonly returnTypeCustomAttributes: ICustomAttributeProvider;
createDelegate(delegateType: Type): Function;
createDelegate(delegateType: Type, target: unknown): Function;
createDelegate<T extends Function>(): T;
createDelegate<T extends Function>(target: unknown): T;
defineParameter(position: int, attributes: ParameterAttributes, parameterName: string): ParameterBuilder;
getBaseDefinition(): MethodInfo;
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getCustomAttributes(inherit: boolean): unknown[];
getDynamicILInfo(): DynamicILInfo;
getILGenerator(streamSize: int): ILGenerator;
getILGenerator(): ILGenerator;
getMethodImplementationFlags(): MethodImplAttributes;
getParameters(): ParameterInfo[];
invoke(obj: unknown, invokeAttr: BindingFlags, binder: Binder, parameters: unknown[], culture: CultureInfo): unknown;
invoke(obj: unknown, parameters: unknown[]): unknown;
isDefined(attributeType: Type, inherit: boolean): boolean;
toString(): string;
}
export const DynamicMethod: {
new(name: string, returnType: Type, parameterTypes: Type[]): DynamicMethod$instance;
new(name: string, returnType: Type, parameterTypes: Type[], restrictedSkipVisibility: boolean): DynamicMethod$instance;
new(name: string, returnType: Type, parameterTypes: Type[], m: Module): DynamicMethod$instance;
new(name: string, returnType: Type, parameterTypes: Type[], m: Module, skipVisibility: boolean): DynamicMethod$instance;
new(name: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[], m: Module, skipVisibility: boolean): DynamicMethod$instance;
new(name: string, returnType: Type, parameterTypes: Type[], owner: Type): DynamicMethod$instance;
new(name: string, returnType: Type, parameterTypes: Type[], owner: Type, skipVisibility: boolean): DynamicMethod$instance;
new(name: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[], owner: Type, skipVisibility: boolean): DynamicMethod$instance;
};
export interface __DynamicMethod$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
}
export type DynamicMethod = DynamicMethod$instance & __DynamicMethod$views;
export interface EnumBuilder$instance extends TypeInfo {
readonly underlyingField: FieldBuilder;
createType(): Type;
createTypeInfo(): TypeInfo;
defineLiteral(literalName: string, literalValue: unknown): FieldBuilder;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getField3(name: string, bindingAttr: BindingFlags): FieldInfo;
getField3(name: string): FieldInfo;
getFields3(bindingAttr: BindingFlags): FieldInfo[];
getFields3(): FieldInfo[];
getMember(name: string, bindingAttr: BindingFlags): MemberInfo[];
getMember(name: string): MemberInfo[];
getMember(name: string, type_: MemberTypes, bindingAttr: BindingFlags): MemberInfo[];
getMembers3(bindingAttr: BindingFlags): MemberInfo[];
getMembers3(): MemberInfo[];
getMethod(name: string, bindingAttr: BindingFlags, binder: Binder, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags): MethodInfo;
getMethod(name: string): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags, types: Type[]): MethodInfo;
getMethod(name: string, types: Type[]): MethodInfo;
getMethod(name: string, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, types: Type[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, types: Type[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, binder: Binder, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethods3(bindingAttr: BindingFlags): MethodInfo[];
getMethods3(): MethodInfo[];
getProperties3(bindingAttr: BindingFlags): PropertyInfo[];
getProperties3(): PropertyInfo[];
getProperty(name: string, bindingAttr: BindingFlags): PropertyInfo;
getProperty(name: string, bindingAttr: BindingFlags, binder: Binder, returnType: Type, types: Type[], modifiers: ParameterModifier[]): PropertyInfo;
getProperty(name: string): PropertyInfo;
getProperty(name: string, returnType: Type): PropertyInfo;
getProperty(name: string, types: Type[]): PropertyInfo;
getProperty(name: string, returnType: Type, types: Type[]): PropertyInfo;
getProperty(name: string, returnType: Type, types: Type[], modifiers: ParameterModifier[]): PropertyInfo;
getTypeInfo(): TypeInfo;
invokeMember4(name: string, invokeAttr: BindingFlags, binder: Binder, target: unknown, args: unknown[], modifiers: ParameterModifier[], culture: CultureInfo, namedParameters: string[]): unknown;
invokeMember4(name: string, invokeAttr: BindingFlags, binder: Binder, target: unknown, args: unknown[]): unknown;
invokeMember4(name: string, invokeAttr: BindingFlags, binder: Binder, target: unknown, args: unknown[], culture: CultureInfo): unknown;
isDefined(attributeType: Type, inherit: boolean): boolean;
makeArrayType(): Type;
makeArrayType(rank: int): Type;
makeByRefType(): Type;
makePointerType(): Type;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
}
export const EnumBuilder: {
};
export interface __EnumBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
As_IReflect(): System_Reflection_Internal.IReflect$instance;
As_IReflectableType(): System_Reflection_Internal.IReflectableType$instance;
}
export interface EnumBuilder$instance extends System_Reflection_Internal.IReflectableType$instance {}
export type EnumBuilder = EnumBuilder$instance & __EnumBuilder$views;
export interface EventBuilder$instance {
addOtherMethod(mdBuilder: MethodBuilder): void;
setAddOnMethod(mdBuilder: MethodBuilder): void;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
setRaiseMethod(mdBuilder: MethodBuilder): void;
setRemoveOnMethod(mdBuilder: MethodBuilder): void;
}
export const EventBuilder: {
};
export type EventBuilder = EventBuilder$instance;
export interface FieldBuilder$instance extends FieldInfo {
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
isDefined(attributeType: Type, inherit: boolean): boolean;
setConstant(defaultValue: unknown): void;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
setOffset(iOffset: int): void;
}
export const FieldBuilder: {
};
export interface __FieldBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
}
export type FieldBuilder = FieldBuilder$instance & __FieldBuilder$views;
export interface GenericTypeParameterBuilder$instance extends TypeInfo {
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getField3(name: string, bindingAttr: BindingFlags): FieldInfo;
getField3(name: string): FieldInfo;
getFields3(bindingAttr: BindingFlags): FieldInfo[];
getFields3(): FieldInfo[];
getMember(name: string, bindingAttr: BindingFlags): MemberInfo[];
getMember(name: string): MemberInfo[];
getMember(name: string, type_: MemberTypes, bindingAttr: BindingFlags): MemberInfo[];
getMembers3(bindingAttr: BindingFlags): MemberInfo[];
getMembers3(): MemberInfo[];
getMethod(name: string, bindingAttr: BindingFlags, binder: Binder, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags): MethodInfo;
getMethod(name: string): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags, types: Type[]): MethodInfo;
getMethod(name: string, types: Type[]): MethodInfo;
getMethod(name: string, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, types: Type[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, types: Type[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, binder: Binder, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethods3(bindingAttr: BindingFlags): MethodInfo[];
getMethods3(): MethodInfo[];
getProperties3(bindingAttr: BindingFlags): PropertyInfo[];
getProperties3(): PropertyInfo[];
getProperty(name: string, bindingAttr: BindingFlags): PropertyInfo;
getProperty(name: string, bindingAttr: BindingFlags, binder: Binder, returnType: Type, types: Type[], modifiers: ParameterModifier[]): PropertyInfo;
getProperty(name: string): PropertyInfo;
getProperty(name: string, returnType: Type): PropertyInfo;
getProperty(name: string, types: Type[]): PropertyInfo;
getProperty(name: string, returnType: Type, types: Type[]): PropertyInfo;
getProperty(name: string, returnType: Type, types: Type[], modifiers: ParameterModifier[]): PropertyInfo;
getTypeInfo(): TypeInfo;
invokeMember4(name: string, invokeAttr: BindingFlags, binder: Binder, target: unknown, args: unknown[], modifiers: ParameterModifier[], culture: CultureInfo, namedParameters: string[]): unknown;
invokeMember4(name: string, invokeAttr: BindingFlags, binder: Binder, target: unknown, args: unknown[]): unknown;
invokeMember4(name: string, invokeAttr: BindingFlags, binder: Binder, target: unknown, args: unknown[], culture: CultureInfo): unknown;
isDefined(attributeType: Type, inherit: boolean): boolean;
setBaseTypeConstraint(baseTypeConstraint: Type): void;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
setGenericParameterAttributes(genericParameterAttributes: GenericParameterAttributes): void;
setInterfaceConstraints(interfaceConstraints: Type[]): void;
}
export const GenericTypeParameterBuilder: {
};
export interface __GenericTypeParameterBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
As_IReflect(): System_Reflection_Internal.IReflect$instance;
As_IReflectableType(): System_Reflection_Internal.IReflectableType$instance;
}
export interface GenericTypeParameterBuilder$instance extends System_Reflection_Internal.IReflectableType$instance {}
export type GenericTypeParameterBuilder = GenericTypeParameterBuilder$instance & __GenericTypeParameterBuilder$views;
export interface ILGenerator$instance {
readonly ilOffset: int;
beginCatchBlock(exceptionType: Type): void;
beginExceptFilterBlock(): void;
beginExceptionBlock(): Label;
beginFaultBlock(): void;
beginFinallyBlock(): void;
beginScope(): void;
declareLocal(localType: Type): LocalBuilder;
declareLocal(localType: Type, pinned: boolean): LocalBuilder;
defineLabel(): Label;
emit(opcode: OpCode): void;
emit(opcode: OpCode, arg: byte): void;
emit(opcode: OpCode, arg: short): void;
emit(opcode: OpCode, arg: long): void;
emit(opcode: OpCode, arg: float): void;
emit(opcode: OpCode, arg: double): void;
emit(opcode: OpCode, arg: int): void;
emit(opcode: OpCode, meth: MethodInfo): void;
emit(opcode: OpCode, signature: SignatureHelper): void;
emit(opcode: OpCode, con: ConstructorInfo): void;
emit(opcode: OpCode, cls: Type): void;
emit(opcode: OpCode, label: Label): void;
emit(opcode: OpCode, labels: Label[]): void;
emit(opcode: OpCode, field: FieldInfo): void;
emit(opcode: OpCode, str: string): void;
emit(opcode: OpCode, local: LocalBuilder): void;
emit(opcode: OpCode, arg: sbyte): void;
emitCall(opcode: OpCode, methodInfo: MethodInfo, optionalParameterTypes: Type[]): void;
emitCalli(opcode: OpCode, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[], optionalParameterTypes: Type[]): void;
emitCalli(opcode: OpCode, unmanagedCallConv: CallingConvention, returnType: Type, parameterTypes: Type[]): void;
emitWriteLine(value: string): void;
emitWriteLine(localBuilder: LocalBuilder): void;
emitWriteLine(fld: FieldInfo): void;
endExceptionBlock(): void;
endScope(): void;
markLabel(loc: Label): void;
markSequencePoint(document: ISymbolDocumentWriter, startLine: int, startColumn: int, endLine: int, endColumn: int): void;
throwException(excType: Type): void;
usingNamespace(usingNamespace: string): void;
}
export const ILGenerator: {
};
export type ILGenerator = ILGenerator$instance;
export interface LocalBuilder$instance extends LocalVariableInfo {
setLocalSymInfo(name: string): void;
}
export const LocalBuilder: {
};
export type LocalBuilder = LocalBuilder$instance;
export interface MethodBuilder$instance extends MethodInfo {
initLocals: boolean;
defineGenericParameters(names: string[]): GenericTypeParameterBuilder[];
defineParameter(position: int, attributes: ParameterAttributes, strParamName: string): ParameterBuilder;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getILGenerator(): ILGenerator;
getILGenerator(size: int): ILGenerator;
isDefined(attributeType: Type, inherit: boolean): boolean;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
setImplementationFlags(attributes: MethodImplAttributes): void;
setParameters(parameterTypes: Type[]): void;
setReturnType(returnType: Type): void;
setSignature(returnType: Type, returnTypeRequiredCustomModifiers: Type[], returnTypeOptionalCustomModifiers: Type[], parameterTypes: Type[], parameterTypeRequiredCustomModifiers: Type[][], parameterTypeOptionalCustomModifiers: Type[][]): void;
}
export const MethodBuilder: {
};
export interface __MethodBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
}
export type MethodBuilder = MethodBuilder$instance & __MethodBuilder$views;
export interface ModuleBuilder$instance extends Module {
createGlobalFunctions(): void;
defineDocument(url: string, language: Guid, languageVendor: Guid, documentType: Guid): ISymbolDocumentWriter;
defineDocument(url: string, language?: Guid): ISymbolDocumentWriter;
defineEnum(name: string, visibility: TypeAttributes, underlyingType: Type): EnumBuilder;
defineGlobalMethod(name: string, attributes: MethodAttributes, returnType: Type, parameterTypes: Type[]): MethodBuilder;
defineGlobalMethod(name: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[]): MethodBuilder;
defineGlobalMethod(name: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, requiredReturnTypeCustomModifiers: Type[], optionalReturnTypeCustomModifiers: Type[], parameterTypes: Type[], requiredParameterTypeCustomModifiers: Type[][], optionalParameterTypeCustomModifiers: Type[][]): MethodBuilder;
defineInitializedData(name: string, data: byte[], attributes: FieldAttributes): FieldBuilder;
definePInvokeMethod(name: string, dllName: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[], nativeCallConv: CallingConvention, nativeCharSet: CharSet): MethodBuilder;
definePInvokeMethod(name: string, dllName: string, entryName: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[], nativeCallConv: CallingConvention, nativeCharSet: CharSet): MethodBuilder;
defineType(name: string): TypeBuilder;
defineType(name: string, attr: TypeAttributes): TypeBuilder;
defineType(name: string, attr: TypeAttributes, parent: Type): TypeBuilder;
defineType(name: string, attr: TypeAttributes, parent: Type, interfaces: Type[]): TypeBuilder;
defineType(name: string, attr: TypeAttributes, parent: Type, typesize: int): TypeBuilder;
defineType(name: string, attr: TypeAttributes, parent: Type, packsize: PackingSize): TypeBuilder;
defineType(name: string, attr: TypeAttributes, parent: Type, packingSize: PackingSize, typesize: int): TypeBuilder;
defineUninitializedData(name: string, size: int, attributes: FieldAttributes): FieldBuilder;
getArrayMethod(arrayClass: Type, methodName: string, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[]): MethodInfo;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getFieldMetadataToken(field: FieldInfo): int;
getMethodMetadataToken(method: MethodInfo): int;
getMethodMetadataToken(constructor_: ConstructorInfo): int;
getObjectData(info: SerializationInfo, context: StreamingContext): void;
getSignatureMetadataToken(signature: SignatureHelper): int;
getStringMetadataToken(stringConstant: string): int;
getTypeMetadataToken(type_: Type): int;
isDefined(attributeType: Type, inherit: boolean): boolean;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
}
export const ModuleBuilder: {
};
export interface __ModuleBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
As_ISerializable(): System_Runtime_Serialization_Internal.ISerializable$instance;
}
export type ModuleBuilder = ModuleBuilder$instance & __ModuleBuilder$views;
export interface OpCodes$instance {
}
export const OpCodes: {
new(): OpCodes$instance;
readonly nop: OpCode;
readonly break_: OpCode;
readonly Ldarg_0: OpCode;
readonly Ldarg_1: OpCode;
readonly Ldarg_2: OpCode;
readonly Ldarg_3: OpCode;
readonly Ldloc_0: OpCode;
readonly Ldloc_1: OpCode;
readonly Ldloc_2: OpCode;
readonly Ldloc_3: OpCode;
readonly Stloc_0: OpCode;
readonly Stloc_1: OpCode;
readonly Stloc_2: OpCode;
readonly Stloc_3: OpCode;
readonly Ldarg_S: OpCode;
readonly Ldarga_S: OpCode;
readonly Starg_S: OpCode;
readonly Ldloc_S: OpCode;
readonly Ldloca_S: OpCode;
readonly Stloc_S: OpCode;
readonly ldnull: OpCode;
readonly Ldc_I4_M1: OpCode;
readonly Ldc_I4_0: OpCode;
readonly Ldc_I4_1: OpCode;
readonly Ldc_I4_2: OpCode;
readonly Ldc_I4_3: OpCode;
readonly Ldc_I4_4: OpCode;
readonly Ldc_I4_5: OpCode;
readonly Ldc_I4_6: OpCode;
readonly Ldc_I4_7: OpCode;
readonly Ldc_I4_8: OpCode;
readonly Ldc_I4_S: OpCode;
readonly Ldc_I4: OpCode;
readonly Ldc_I8: OpCode;
readonly Ldc_R4: OpCode;
readonly Ldc_R8: OpCode;
readonly dup: OpCode;
readonly pop: OpCode;
readonly jmp: OpCode;
readonly call: OpCode;
readonly calli: OpCode;
readonly ret: OpCode;
readonly Br_S: OpCode;
readonly Brfalse_S: OpCode;
readonly Brtrue_S: OpCode;
readonly Beq_S: OpCode;
readonly Bge_S: OpCode;
readonly Bgt_S: OpCode;
readonly Ble_S: OpCode;
readonly Blt_S: OpCode;
readonly Bne_Un_S: OpCode;
readonly Bge_Un_S: OpCode;
readonly Bgt_Un_S: OpCode;
readonly Ble_Un_S: OpCode;
readonly Blt_Un_S: OpCode;
readonly br: OpCode;
readonly brfalse: OpCode;
readonly brtrue: OpCode;
readonly beq: OpCode;
readonly bge: OpCode;
readonly bgt: OpCode;
readonly ble: OpCode;
readonly blt: OpCode;
readonly Bne_Un: OpCode;
readonly Bge_Un: OpCode;
readonly Bgt_Un: OpCode;
readonly Ble_Un: OpCode;
readonly Blt_Un: OpCode;
readonly switch_: OpCode;
readonly Ldind_I1: OpCode;
readonly Ldind_U1: OpCode;
readonly Ldind_I2: OpCode;
readonly Ldind_U2: OpCode;
readonly Ldind_I4: OpCode;
readonly Ldind_U4: OpCode;
readonly Ldind_I8: OpCode;
readonly Ldind_I: OpCode;
readonly Ldind_R4: OpCode;
readonly Ldind_R8: OpCode;
readonly Ldind_Ref: OpCode;
readonly Stind_Ref: OpCode;
readonly Stind_I1: OpCode;
readonly Stind_I2: OpCode;
readonly Stind_I4: OpCode;
readonly Stind_I8: OpCode;
readonly Stind_R4: OpCode;
readonly Stind_R8: OpCode;
readonly add: OpCode;
readonly sub: OpCode;
readonly mul: OpCode;
readonly div: OpCode;
readonly Div_Un: OpCode;
readonly rem: OpCode;
readonly Rem_Un: OpCode;
readonly and: OpCode;
readonly or: OpCode;
readonly xor: OpCode;
readonly shl: OpCode;
readonly shr: OpCode;
readonly Shr_Un: OpCode;
readonly neg: OpCode;
readonly not: OpCode;
readonly Conv_I1: OpCode;
readonly Conv_I2: OpCode;
readonly Conv_I4: OpCode;
readonly Conv_I8: OpCode;
readonly Conv_R4: OpCode;
readonly Conv_R8: OpCode;
readonly Conv_U4: OpCode;
readonly Conv_U8: OpCode;
readonly callvirt: OpCode;
readonly cpobj: OpCode;
readonly ldobj: OpCode;
readonly ldstr: OpCode;
readonly newobj: OpCode;
readonly castclass: OpCode;
readonly isinst: OpCode;
readonly Conv_R_Un: OpCode;
readonly unbox: OpCode;
readonly throw_: OpCode;
readonly ldfld: OpCode;
readonly ldflda: OpCode;
readonly stfld: OpCode;
readonly ldsfld: OpCode;
readonly ldsflda: OpCode;
readonly stsfld: OpCode;
readonly stobj: OpCode;
readonly Conv_Ovf_I1_Un: OpCode;
readonly Conv_Ovf_I2_Un: OpCode;
readonly Conv_Ovf_I4_Un: OpCode;
readonly Conv_Ovf_I8_Un: OpCode;
readonly Conv_Ovf_U1_Un: OpCode;
readonly Conv_Ovf_U2_Un: OpCode;
readonly Conv_Ovf_U4_Un: OpCode;
readonly Conv_Ovf_U8_Un: OpCode;
readonly Conv_Ovf_I_Un: OpCode;
readonly Conv_Ovf_U_Un: OpCode;
readonly box: OpCode;
readonly newarr: OpCode;
readonly ldlen: OpCode;
readonly ldelema: OpCode;
readonly Ldelem_I1: OpCode;
readonly Ldelem_U1: OpCode;
readonly Ldelem_I2: OpCode;
readonly Ldelem_U2: OpCode;
readonly Ldelem_I4: OpCode;
readonly Ldelem_U4: OpCode;
readonly Ldelem_I8: OpCode;
readonly Ldelem_I: OpCode;
readonly Ldelem_R4: OpCode;
readonly Ldelem_R8: OpCode;
readonly Ldelem_Ref: OpCode;
readonly Stelem_I: OpCode;
readonly Stelem_I1: OpCode;
readonly Stelem_I2: OpCode;
readonly Stelem_I4: OpCode;
readonly Stelem_I8: OpCode;
readonly Stelem_R4: OpCode;
readonly Stelem_R8: OpCode;
readonly Stelem_Ref: OpCode;
readonly ldelem: OpCode;
readonly stelem: OpCode;
readonly Unbox_Any: OpCode;
readonly Conv_Ovf_I1: OpCode;
readonly Conv_Ovf_U1: OpCode;
readonly Conv_Ovf_I2: OpCode;
readonly Conv_Ovf_U2: OpCode;
readonly Conv_Ovf_I4: OpCode;
readonly Conv_Ovf_U4: OpCode;
readonly Conv_Ovf_I8: OpCode;
readonly Conv_Ovf_U8: OpCode;
readonly refanyval: OpCode;
readonly ckfinite: OpCode;
readonly mkrefany: OpCode;
readonly ldtoken: OpCode;
readonly Conv_U2: OpCode;
readonly Conv_U1: OpCode;
readonly Conv_I: OpCode;
readonly Conv_Ovf_I: OpCode;
readonly Conv_Ovf_U: OpCode;
readonly Add_Ovf: OpCode;
readonly Add_Ovf_Un: OpCode;
readonly Mul_Ovf: OpCode;
readonly Mul_Ovf_Un: OpCode;
readonly Sub_Ovf: OpCode;
readonly Sub_Ovf_Un: OpCode;
readonly endfinally: OpCode;
readonly leave: OpCode;
readonly Leave_S: OpCode;
readonly Stind_I: OpCode;
readonly Conv_U: OpCode;
readonly prefix7: OpCode;
readonly prefix6: OpCode;
readonly prefix5: OpCode;
readonly prefix4: OpCode;
readonly prefix3: OpCode;
readonly prefix2: OpCode;
readonly prefix1: OpCode;
readonly prefixref: OpCode;
readonly arglist: OpCode;
readonly ceq: OpCode;
readonly cgt: OpCode;
readonly Cgt_Un: OpCode;
readonly clt: OpCode;
readonly Clt_Un: OpCode;
readonly ldftn: OpCode;
readonly ldvirtftn: OpCode;
readonly ldarg: OpCode;
readonly ldarga: OpCode;
readonly starg: OpCode;
readonly ldloc: OpCode;
readonly ldloca: OpCode;
readonly stloc: OpCode;
readonly localloc: OpCode;
readonly endfilter: OpCode;
readonly unaligned: OpCode;
readonly volatile: OpCode;
readonly tailcall: OpCode;
readonly initobj: OpCode;
readonly constrained: OpCode;
readonly cpblk: OpCode;
readonly initblk: OpCode;
readonly rethrow: OpCode;
readonly sizeof: OpCode;
readonly refanytype: OpCode;
readonly readonly_: OpCode;
takesSingleByteArgument(inst: OpCode): boolean;
};
export type OpCodes = OpCodes$instance;
export interface ParameterBuilder$instance {
readonly attributes: int;
readonly isIn: boolean;
readonly isOptional: boolean;
readonly isOut: boolean;
readonly name: string;
readonly position: int;
setConstant(defaultValue: unknown): void;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
}
export const ParameterBuilder: {
};
export type ParameterBuilder = ParameterBuilder$instance;
export interface PersistedAssemblyBuilder$instance extends AssemblyBuilder$instance {
readonly fullName: string;
readonly manifestModule: Module;
generateMetadata(ilStream: { value: ref<BlobBuilder> }, mappedFieldData: { value: ref<BlobBuilder> }): MetadataBuilder;
generateMetadata(ilStream: { value: ref<BlobBuilder> }, mappedFieldData: { value: ref<BlobBuilder> }, pdbBuilder: { value: ref<MetadataBuilder> }): MetadataBuilder;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getName(copiedName: boolean): AssemblyName;
getName(): AssemblyName;
getObjectData(info: SerializationInfo, context: StreamingContext): void;
isDefined(attributeType: Type, inherit: boolean): boolean;
save(stream: Stream): void;
save(assemblyFileName: string): void;
}
export const PersistedAssemblyBuilder: {
new(name: AssemblyName, coreAssembly: Assembly, assemblyAttributes: IEnumerable_1<CustomAttributeBuilder>): PersistedAssemblyBuilder$instance;
};
export interface __PersistedAssemblyBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
As_ISerializable(): System_Runtime_Serialization_Internal.ISerializable$instance;
}
export type PersistedAssemblyBuilder = PersistedAssemblyBuilder$instance & __PersistedAssemblyBuilder$views;
export interface PropertyBuilder$instance extends PropertyInfo {
addOtherMethod(mdBuilder: MethodBuilder): void;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
isDefined(attributeType: Type, inherit: boolean): boolean;
setConstant(defaultValue: unknown): void;
setCustomAttribute(con: ConstructorInfo, binaryAttribute: byte[]): void;
setCustomAttribute(customBuilder: CustomAttributeBuilder): void;
setGetMethod(mdBuilder: MethodBuilder): void;
setSetMethod(mdBuilder: MethodBuilder): void;
}
export const PropertyBuilder: {
};
export interface __PropertyBuilder$views {
As_ICustomAttributeProvider(): System_Reflection_Internal.ICustomAttributeProvider$instance;
}
export type PropertyBuilder = PropertyBuilder$instance & __PropertyBuilder$views;
export interface SignatureHelper$instance {
addArgument(clsArgument: Type): void;
addArgument(argument: Type, pinned: boolean): void;
addArgument(argument: Type, requiredCustomModifiers: Type[], optionalCustomModifiers: Type[]): void;
addArguments(arguments: Type[], requiredCustomModifiers: Type[][], optionalCustomModifiers: Type[][]): void;
addSentinel(): void;
equals(obj: unknown): boolean;
getHashCode(): int;
getSignature(): byte[];
toString(): string;
}
export const SignatureHelper: {
new(): SignatureHelper$instance;
getFieldSigHelper(mod: Module): SignatureHelper;
getLocalVarSigHelper(): SignatureHelper;
getLocalVarSigHelper(mod: Module): SignatureHelper;
getMethodSigHelper(callingConvention: CallingConventions, returnType: Type): SignatureHelper;
getMethodSigHelper(mod: Module, callingConvention: CallingConventions, returnType: Type): SignatureHelper;
getMethodSigHelper(mod: Module, returnType: Type, parameterTypes: Type[]): SignatureHelper;
getPropertySigHelper(mod: Module, callingConvention: CallingConventions, returnType: Type, requiredReturnTypeCustomModifiers: Type[], optionalReturnTypeCustomModifiers: Type[], parameterTypes: Type[], requiredParameterTypeCustomModifiers: Type[][], optionalParameterTypeCustomModifiers: Type[][]): SignatureHelper;
getPropertySigHelper(mod: Module, returnType: Type, requiredReturnTypeCustomModifiers: Type[], optionalReturnTypeCustomModifiers: Type[], parameterTypes: Type[], requiredParameterTypeCustomModifiers: Type[][], optionalParameterTypeCustomModifiers: Type[][]): SignatureHelper;
getPropertySigHelper(mod: Module, returnType: Type, parameterTypes: Type[]): SignatureHelper;
};
export type SignatureHelper = SignatureHelper$instance;
export interface TypeBuilder$instance extends TypeInfo {
readonly packingSize: PackingSize;
readonly size: int;
addInterfaceImplementation(interfaceType: Type): void;
createType(): Type;
createTypeInfo(): TypeInfo;
defineConstructor(attributes: MethodAttributes, callingConvention: CallingConventions, parameterTypes: Type[]): ConstructorBuilder;
defineConstructor(attributes: MethodAttributes, callingConvention: CallingConventions, parameterTypes: Type[], requiredCustomModifiers: Type[][], optionalCustomModifiers: Type[][]): ConstructorBuilder;
defineDefaultConstructor(attributes: MethodAttributes): ConstructorBuilder;
defineEvent(name: string, attributes: EventAttributes, eventtype: Type): EventBuilder;
defineField(fieldName: string, type_: Type, attributes: FieldAttributes): FieldBuilder;
defineField(fieldName: string, type_: Type, requiredCustomModifiers: Type[], optionalCustomModifiers: Type[], attributes: FieldAttributes): FieldBuilder;
defineGenericParameters(names: string[]): GenericTypeParameterBuilder[];
defineInitializedData(name: string, data: byte[], attributes: FieldAttributes): FieldBuilder;
defineMethod(name: string, attributes: MethodAttributes): MethodBuilder;
defineMethod(name: string, attributes: MethodAttributes, callingConvention: CallingConventions): MethodBuilder;
defineMethod(name: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[]): MethodBuilder;
defineMethod(name: string, attributes: MethodAttributes, returnType: Type, parameterTypes: Type[]): MethodBuilder;
defineMethod(name: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, returnTypeRequiredCustomModifiers: Type[], returnTypeOptionalCustomModifiers: Type[], parameterTypes: Type[], parameterTypeRequiredCustomModifiers: Type[][], parameterTypeOptionalCustomModifiers: Type[][]): MethodBuilder;
defineMethodOverride(methodInfoBody: MethodInfo, methodInfoDeclaration: MethodInfo): void;
defineNestedType(name: string): TypeBuilder;
defineNestedType(name: string, attr: TypeAttributes): TypeBuilder;
defineNestedType(name: string, attr: TypeAttributes, parent: Type): TypeBuilder;
defineNestedType(name: string, attr: TypeAttributes, parent: Type, interfaces: Type[]): TypeBuilder;
defineNestedType(name: string, attr: TypeAttributes, parent: Type, typeSize: int): TypeBuilder;
defineNestedType(name: string, attr: TypeAttributes, parent: Type, packSize: PackingSize): TypeBuilder;
defineNestedType(name: string, attr: TypeAttributes, parent: Type, packSize: PackingSize, typeSize: int): TypeBuilder;
definePInvokeMethod(name: string, dllName: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[], nativeCallConv: CallingConvention, nativeCharSet: CharSet): MethodBuilder;
definePInvokeMethod(name: string, dllName: string, entryName: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[], nativeCallConv: CallingConvention, nativeCharSet: CharSet): MethodBuilder;
definePInvokeMethod(name: string, dllName: string, entryName: string, attributes: MethodAttributes, callingConvention: CallingConventions, returnType: Type, returnTypeRequiredCustomModifiers: Type[], returnTypeOptionalCustomModifiers: Type[], parameterTypes: Type[], parameterTypeRequiredCustomModifiers: Type[][], parameterTypeOptionalCustomModifiers: Type[][], nativeCallConv: CallingConvention, nativeCharSet: CharSet): MethodBuilder;
defineProperty(name: string, attributes: PropertyAttributes, returnType: Type, parameterTypes: Type[]): PropertyBuilder;
defineProperty(name: string, attributes: PropertyAttributes, callingConvention: CallingConventions, returnType: Type, parameterTypes: Type[]): PropertyBuilder;
defineProperty(name: string, attributes: PropertyAttributes, returnType: Type, returnTypeRequiredCustomModifiers: Type[], returnTypeOptionalCustomModifiers: Type[], parameterTypes: Type[], parameterTypeRequiredCustomModifiers: Type[][], parameterTypeOptionalCustomModifiers: Type[][]): PropertyBuilder;
defineProperty(name: string, attributes: PropertyAttributes, callingConvention: CallingConventions, returnType: Type, returnTypeRequiredCustomModifiers: Type[], returnTypeOptionalCustomModifiers: Type[], parameterTypes: Type[], parameterTypeRequiredCustomModifiers: Type[][], parameterTypeOptionalCustomModifiers: Type[][]): PropertyBuilder;
defineTypeInitializer(): ConstructorBuilder;
defineUninitializedData(name: string, size: int, attributes: FieldAttributes): FieldBuilder;
getCustomAttributes(inherit: boolean): unknown[];
getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
getField3(name: string, bindingAttr: BindingFlags): FieldInfo;
getField3(name: string): FieldInfo;
getFields3(bindingAttr: BindingFlags): FieldInfo[];
getFields3(): FieldInfo[];
getMember(name: string, bindingAttr: BindingFlags): MemberInfo[];
getMember(name: string): MemberInfo[];
getMember(name: string, type_: MemberTypes, bindingAttr: BindingFlags): MemberInfo[];
getMembers3(bindingAttr: BindingFlags): MemberInfo[];
getMembers3(): MemberInfo[];
getMethod(name: string, bindingAttr: BindingFlags, binder: Binder, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags): MethodInfo;
getMethod(name: string): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags, types: Type[]): MethodInfo;
getMethod(name: string, types: Type[]): MethodInfo;
getMethod(name: string, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, types: Type[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, types: Type[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, binder: Binder, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethod(name: string, genericParameterCount: int, bindingAttr: BindingFlags, binder: Binder, callConvention: CallingConventions, types: Type[], modifiers: ParameterModifier[]): MethodInfo;
getMethods3(bindingAttr: BindingFlags): MethodInfo[];
getMethods3(): MethodInfo[];
getProperties3(bindingAttr: BindingFlags): PropertyInfo[];
getProperties3(): PropertyInfo[];
getProperty(name: string, bindingAttr: BindingFlags): PropertyInfo;
getProperty(name: string, bindingAttr: BindingFlags, binder: Binder, returnType: Type, types: Type[], modifiers: ParameterModifier[]): PropertyInfo;
getProperty(name: string): PropertyInfo;
getProperty(