Skip to content

Commit

Permalink
Fix API compat failures
Browse files Browse the repository at this point in the history
  • Loading branch information
buyaa-n committed Jan 27, 2023
1 parent 039a89a commit a16ce6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override FieldBuilder DefineLiteralCore(string literalName, object? li
return fieldBuilder;
}

[return: DynamicallyAccessedMembersAttribute(DynamicallyAccessedMemberTypes.All)]
[return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]
protected override TypeInfo CreateTypeInfoCore()
{
return m_typeBuilder.CreateTypeInfo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
public abstract int GetTypeMetadataToken(Type type);
public abstract int GetFieldMetadataToken(FieldInfo field);
public abstract int GetMethodMetadataToken(MethodInfo method);
public abstract int GetMethodMetadataToken(ConstructorInfo contsuctor);
public abstract int GetMethodMetadataToken(ConstructorInfo constructor);
public abstract int GetSignatureMetadataToken(SignatureHelper signature);
public abstract int GetStringMetadataToken(string stringConstant);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ protected EnumBuilder() { }
public System.Type CreateType() { throw null; }
[return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)]
public System.Reflection.TypeInfo CreateTypeInfo() { throw null; }
[return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)]
protected abstract System.Reflection.TypeInfo CreateTypeInfoCore();
public System.Reflection.Emit.FieldBuilder DefineLiteral(string literalName, object? literalValue) { throw null; }
protected abstract System.Reflection.Emit.FieldBuilder DefineLiteralCore(string literalName, object? literalValue);
Expand Down Expand Up @@ -416,6 +417,7 @@ public void CreateGlobalFunctions() { }
public System.Reflection.Emit.MethodBuilder DefinePInvokeMethod(string name, string dllName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type? returnType, System.Type[]? parameterTypes, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("P/Invoke marshalling may dynamically access members that could be trimmed.")]
public System.Reflection.Emit.MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type? returnType, System.Type[]? parameterTypes, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet) { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("P/Invoke marshalling may dynamically access members that could be trimmed.")]
protected abstract System.Reflection.Emit.MethodBuilder DefinePInvokeMethodCore(string name, string dllName, string entryName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type? returnType, System.Type[]? parameterTypes, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet);
public System.Reflection.Emit.TypeBuilder DefineType(string name) { throw null; }
public System.Reflection.Emit.TypeBuilder DefineType(string name, System.Reflection.TypeAttributes attr) { throw null; }
Expand Down Expand Up @@ -542,6 +544,7 @@ protected TypeBuilder() { }
protected abstract System.Reflection.Emit.PackingSize PackingSizeCore { get; }
public override System.Type? ReflectedType { get { throw null; } }
public int Size { get { throw null; } }
protected abstract int SizeCore { get; }
public override System.RuntimeTypeHandle TypeHandle { get { throw null; } }
public override System.Type UnderlyingSystemType { get { throw null; } }
public void AddInterfaceImplementation([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type interfaceType) { }
Expand All @@ -550,6 +553,7 @@ public void AddInterfaceImplementation([System.Diagnostics.CodeAnalysis.Dynamica
public System.Type CreateType() { throw null; }
[return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)]
public System.Reflection.TypeInfo CreateTypeInfo() { throw null; }
[return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)]
protected abstract System.Reflection.TypeInfo CreateTypeInfoCore();
public System.Reflection.Emit.ConstructorBuilder DefineConstructor(System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type[]? parameterTypes) { throw null; }
public System.Reflection.Emit.ConstructorBuilder DefineConstructor(System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type[]? parameterTypes, System.Type[][]? requiredCustomModifiers, System.Type[][]? optionalCustomModifiers) { throw null; }
Expand Down

0 comments on commit a16ce6e

Please sign in to comment.