Граф коммитов

2725 Коммитов

Автор SHA1 Сообщение Дата
jfrijters 3ed1a8c475 Added API extension to set the calling convention (without it being meddled with). 2011-03-11 15:50:55 +00:00
jfrijters 31f752b003 Added API extension to get/set stack reserve. 2011-03-11 15:15:25 +00:00
jfrijters e33cc869b9 Added API extensions to get and set custom attributes at the token level. 2011-03-11 14:26:31 +00:00
jfrijters 341a75d21d Added API extension to get the file hash of a resource module. 2011-03-11 14:11:15 +00:00
jfrijters 71d2e9a318 Added API extensions to add low-level Module and ManifestResource table records. 2011-03-11 14:10:15 +00:00
jfrijters a29e2a4ad1 When target .NET 1.x adjust the type name writing algorithm to match the quirks of the Microsoft .NET 1.x metadata writer. 2011-03-11 10:43:46 +00:00
jfrijters cfa0dec0a5 If mscorlib is missing and the context assembly isn't, we should assume that an unqualified missing type is from mscorlib. 2011-03-11 10:42:45 +00:00
jfrijters 39c7869184 Fixed CustomAttributeBuilder.ToData(). 2011-03-11 09:22:32 +00:00
jfrijters 232483959d Fixed __ToBuilder(). Handle arrays inside arrays and added support for retaining boxed enums and enum arrays in object location. 2011-03-11 07:55:42 +00:00
jfrijters 4a66e4ca6c Added API extension CustomAttributeBuilder.__MakeTypedArgument() to make it possible to box an enum or create an array of an enum type in a location typed as object. 2011-03-11 06:27:30 +00:00
jfrijters 957708cf9a Fixed CustomAttributeData.ToString(). 2011-03-11 05:53:48 +00:00
jfrijters bcfaeb2559 Added API extension Assembly.__AssemblyFlags to query all the assembly flags. The AssemblyName.Flags property returns only a subset of the flags. 2011-03-10 16:09:59 +00:00
jfrijters 77c8c9afb0 Bug fix. <Module> should not extend object. 2011-03-10 16:08:44 +00:00
jfrijters d4d84927b8 Automatically emit .NET 1.x compatible declarative security when appropriate. 2011-03-10 12:03:20 +00:00
jfrijters 624f12b7fa - Retain event method ordering.
- Allow duplicate event methods.
- Added API extension EventInfo.__GetMethods() to get all methods associated with an event.
2011-03-10 11:05:54 +00:00
jfrijters a6fcfae9bd - Delay calling convention patching until Bake (because accessors may be set while they aren't done yet).
- Allow multiple getter/setter methods.
- Fixed GetAccessors() regression introduced with recent order retention fixes.
2011-03-10 10:56:57 +00:00
jfrijters 1b78725186 Bug fix. String literals that are invalid UTF-16 should not be "corrected". 2011-03-10 10:54:21 +00:00
jfrijters 2989c70cad Don't emit tiny header if max stack is set explicitly. 2011-03-10 10:50:24 +00:00
jfrijters d96b17bf88 Added API extension to expose property calling convention. 2011-03-10 10:49:17 +00:00
jfrijters 44f03cdd96 Bug fix. MaxStack returned incorrect value for tiny header methods. 2011-03-10 10:48:18 +00:00
jfrijters 8675001bd5 Added API extension to expose resource attributes. 2011-03-10 10:47:37 +00:00
jfrijters f443b36919 Support ToString on a CustomAttributeData with missing type values. 2011-03-10 10:47:03 +00:00
jfrijters 290703c959 If a property or field is missing and the attribute type has a missing base type, assume that the missing member lives there. 2011-03-09 07:35:55 +00:00
jfrijters 013223a4f2 - Fixed support for missing types in generic type parameters in custom attribute values.
- Fixed TypeParser.GetType() not to throw MissingAssemblyException.
- Unified type name parsing again.
2011-03-09 07:11:38 +00:00
jfrijters b56b990a64 Allow Type.FullName to be used on generic type instance that uses missing type as a type parameter. 2011-03-09 07:09:26 +00:00
jfrijters 15f93a3003 Fix. Module does not inherit members from Object. 2011-03-09 07:07:11 +00:00
jfrijters eaa7165950 Unified type resolving for Module and ModuleRef cases and added support for resolving missing types. 2011-03-09 06:06:00 +00:00
jfrijters 18aaa2edba Allow adding a null module ref. 2011-03-09 06:02:44 +00:00
jfrijters 1319f75273 Allow Type.GetTypeCode() to work with missing mscorlib (for primitive types). 2011-03-09 06:01:52 +00:00
jfrijters 0d481c9d54 Added API extension FieldInfo.__GetFieldOnTypeDefinition(). 2011-03-09 06:00:33 +00:00
jfrijters c28f581dc0 When importing an mscorlib type, make sure it ends up in our mscorlib. 2011-03-08 15:49:07 +00:00
jfrijters 0b7a951ed2 Added support for missing fields/properties. 2011-03-08 14:58:42 +00:00
jfrijters 70a31cdcd2 Fixed GetGenericArguments() for MissingMethod (to allow the inherited ToString to work). 2011-03-08 09:18:31 +00:00
jfrijters 20ee69de0c Added FieldBuilder.__SetReadOnlyDataAndRVA() to define read-only initialized data. 2011-03-08 08:41:00 +00:00
jfrijters 3a47da1a45 Align initialized data arrays. 2011-03-08 08:05:09 +00:00
jfrijters 3ee54261f7 Added API extension Module.__GetReferencedTypes() to get the TypeRef table contents. 2011-03-08 07:47:45 +00:00
jfrijters 602e60e74c Introduced base class for virtual Module classes to have common place to implement abstract Module methods that aren't supported. 2011-03-08 06:43:01 +00:00
jfrijters 1c8b1c0cd5 Added API extension __ImageBase to Module. 2011-03-08 06:14:22 +00:00
jfrijters a86c81919a Align managed resources on 8 bytes. 2011-03-08 06:05:56 +00:00
jfrijters 33207c51dd Added API extensions to get and add referenced modules. 2011-03-08 05:49:01 +00:00
jfrijters d2d79ab03c Added support for generic missing types and methods. 2011-03-07 15:23:45 +00:00
jfrijters 9d888923ed Changed member resolution to resolve members on generic type definition, instead of the instance and then create the corresponding member of the generic instance, this allows generic member resolution to work for missing types. 2011-03-07 14:52:24 +00:00
jfrijters 14608e9120 Fixed recent regression in Import() for nested types. 2011-03-07 14:46:29 +00:00
jfrijters c8bd51dffb Added API extension __GetMethodOnTypeDefinition() to easily go from MethodBase on generic type instance to the equivalent MethodBase on the generic type definition.
The alternative way of doing this (mb.Module.ResolveMethod(mb.MetadataToken)) doesn't work with missing members, because they don't have a metadata token.
2011-03-07 07:56:52 +00:00
jfrijters 0dc7ce26b2 Write out types in fixed arg reading/writing to allow missing types to be recognized (before calling IsEnum on them). 2011-03-07 07:21:47 +00:00
jfrijters bf1a68af40 Added API extension __FromBlob overload to create declarative security "attribute" from blob. 2011-03-07 07:09:05 +00:00
jfrijters 93f5247219 Added support for reading declarative security that refers to missing types (and query the named arguments blob with __GetBlob() for declarative security "attributes"). 2011-03-07 07:07:52 +00:00
jfrijters 68816bf709 Add support for returning pseudo-custom attributes based on missing types. 2011-03-06 08:16:41 +00:00
jfrijters f20cd45070 Use ResolveType when importing a type, to allow a missing type to be returned. 2011-03-06 08:13:44 +00:00
jfrijters f415781685 If mscorlib is missing, use ResolveType instead of FindType to get the "built-in" types, to get a missing type for all of them. 2011-03-06 08:10:55 +00:00