-
-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #522 from pardeike/feature/monomod-core
Feature/monomod core
- Loading branch information
Showing
57 changed files
with
649 additions
and
852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
[assembly: SuppressMessage("Design", "CA1034:Nested types should not be visible")] | ||
[assembly: SuppressMessage("Design", "CA1052:Static holder types should be Static or NotInheritable")] | ||
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types")] | ||
[assembly: SuppressMessage("Design", "CA1034")] | ||
[assembly: SuppressMessage("Design", "CA1052")] | ||
[assembly: SuppressMessage("Design", "CA1031")] | ||
|
||
[assembly: SuppressMessage("Style", "IDE0058:Expression value is never used")] | ||
[assembly: SuppressMessage("Style", "IDE0025:Use expression body for properties")] | ||
[assembly: SuppressMessage("Style", "IDE0060:Remove unused parameter")] | ||
[assembly: SuppressMessage("Style", "IDE0044:Add readonly modifier")] | ||
[assembly: SuppressMessage("Style", "IDE0062:")] | ||
[assembly: SuppressMessage("Style", "IDE0059:Unnecessary assignment of a value")] | ||
[assembly: SuppressMessage("Style", "IDE0058")] | ||
[assembly: SuppressMessage("Style", "IDE0025")] | ||
[assembly: SuppressMessage("Style", "IDE0060")] | ||
[assembly: SuppressMessage("Style", "IDE0044")] | ||
[assembly: SuppressMessage("Style", "IDE0062")] | ||
[assembly: SuppressMessage("Style", "IDE0059")] | ||
|
||
[assembly: SuppressMessage("Usage", "CA2211:Non-constant fields should not be visible")] | ||
[assembly: SuppressMessage("Usage", "CA2211")] | ||
|
||
[assembly: SuppressMessage("CodeQuality", "IDE0051:Remove unused private members")] | ||
[assembly: SuppressMessage("CodeQuality", "IDE0051")] | ||
|
||
[assembly: SuppressMessage("Performance", "CA1822:Mark members as static")] | ||
[assembly: SuppressMessage("Performance", "CA1806:Do not ignore method results")] | ||
[assembly: SuppressMessage("Performance", "CA1822")] | ||
[assembly: SuppressMessage("Performance", "CA1806")] | ||
|
||
[assembly: SuppressMessage("", "CS0649:")] | ||
[assembly: SuppressMessage("", "CS0649")] | ||
[assembly: SuppressMessage("", "IDE0251")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.Code))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ConstantDebugInformation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.CustomDebugInformation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.CustomDebugInformationKind))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.DebugInformation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.Document))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.DocumentHashAlgorithm))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.DocumentLanguage))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.DocumentLanguageVendor))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.DocumentType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ExceptionHandler))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ExceptionHandlerType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.FlowControl))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ILProcessor))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ImageDebugDirectory))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ImageDebugHeader))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ImageDebugHeaderEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ImageDebugType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ImportDebugInformation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ImportTarget))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ImportTargetKind))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.Instruction))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.InstructionOffset))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ISymbolReader))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ISymbolReaderProvider))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ISymbolWriter))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ISymbolWriterProvider))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.MethodBody))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.MethodDebugInformation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.OpCode))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.OpCodeType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.OperandType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.ScopeDebugInformation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.SequencePoint))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.StackBehaviour))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.SymbolsNotFoundException))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.SymbolsNotMatchingException))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.VariableAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.VariableDebugInformation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.VariableDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Cil.VariableReference))] | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Mdb.MdbReader))] | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Pdb.NativePdbReader))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Pdb.NativePdbWriter))] | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Rocks.IILVisitor))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Rocks.ILParser))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Rocks.ModuleDefinitionRocks))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Rocks.TypeDefinitionRocks))] | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.AssemblyAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.AssemblyDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.AssemblyHashAlgorithm))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.AssemblyNameDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.AssemblyNameReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.AssemblyResolutionException))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.CallSite))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.CustomAttribute))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.CustomAttributeArgument))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.CustomAttributeNamedArgument))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.EventAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.EventDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.EventReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ExportedType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.FieldAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.FieldDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.FieldReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.GenericParameter))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.GenericParameterAttributes))] | ||
#if NET472 | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.GenericParameterConstraint))] | ||
#endif | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.GenericParameterType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IAssemblyResolver))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ICustomAttributeProvider))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IGenericParameterProvider))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IMemberDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IMetadataImporter))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IMetadataImporterProvider))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IMetadataResolver))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IMetadataScope))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IMetadataTokenProvider))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IMethodSignature))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.InterfaceImplementation))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IReflectionImporter))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.IReflectionImporterProvider))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ManifestResourceAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MarshalInfo))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MemberReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MetadataKind))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MetadataScopeType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MetadataToken))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MetadataType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MethodAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MethodCallingConvention))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MethodDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MethodImplAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MethodReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MethodReturnType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.MethodSemanticsAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ModuleAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ModuleCharacteristics))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ModuleDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ModuleKind))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ModuleParameters))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ModuleReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.NativeType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ParameterAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ParameterDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ParameterReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.PInvokeAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.PInvokeInfo))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.PropertyAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.PropertyDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.PropertyReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ReaderParameters))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ReadingMode))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ResolutionException))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.Resource))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.ResourceType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.SecurityAction))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.SecurityAttribute))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.SecurityDeclaration))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.TargetArchitecture))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.TargetRuntime))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.TokenType))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.TypeAttributes))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.TypeDefinition))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.TypeReference))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.TypeSystem))] | ||
[assembly: TypeForwardedTo(typeof(Mono.Cecil.WriterParameters))] | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(Mono.Collections.Generic.Collection<>))] | ||
#endif |
18 changes: 18 additions & 0 deletions
18
Harmony/ForwardingAttributes/Mono.CompilerServices.SymbolWriter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.AnonymousScopeEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.CapturedScope))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.CapturedVariable))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.CodeBlockEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.CompileUnitEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.LineNumberEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.LineNumberTable))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.LocalVariableEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.MethodEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.MonoSymbolFile))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.NamespaceEntry))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.OffsetTable))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.ScopeVariable))] | ||
[assembly: TypeForwardedTo(typeof(Mono.CompilerServices.SymbolWriter.SourceFileEntry))] | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.Cil.CecilILGenerator))] | ||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.Cil.ILGeneratorShim))] | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#if NETFRAMEWORK || NETSTANDARD2_0 | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.DMDEmitDynamicMethodGenerator))] | ||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.DMDGenerator<>))] | ||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.DynamicMethodDefinition))] | ||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.Extensions))] | ||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.ICallSiteGenerator))] | ||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.ReflectionHelper))] | ||
[assembly: TypeForwardedTo(typeof(MonoMod.Utils.Relinker))] | ||
#endif |
Oops, something went wrong.