Commit Graph
22 Commits
Author SHA1 Message Date
hrrrrustic 57c3a8558e System.Reflection.* missed Equals nullable annotations (#52162)
* add NotNullWhen attribute
2021-05-22 13:54:40 -07:00
hrrrrustic eebeb86924 Make DebugDirectoryBuilder.AddCodeViewEntry public (#43267) 2020-10-22 21:27:00 -07:00
Stephen Toub 6072e4d3a7 Update license headers (#38793) 2020-07-08 09:23:11 -04:00
Aaron Robinson affc43dad5 Add new Unmanaged MD calling convention value (#38357)
* Respect new MD bit in runtime

* Throw "not implemented".

* Update parser for ILAsm
Add text based grammar file for IL tooling

* Update ILDasm

* Add disabled test project for function pointers.

* Add feature detection.
2020-07-02 16:44:39 -07:00
Levi Broderick 0d08b0232d API review URL should be HTTPS, not HTTP (#32281) 2020-02-14 08:07:46 -08:00
Eirik Tsarpalis 0ac5dc9f7a Nullable annotate System.Reflection.Metadata (#1056)
* Nullable annotate System.Reflection.Metadata

* remove unused declaration

* update System.Diagnostics.Stacktrace for System.Reflection.Metadata annotations

* address feedback

* reinstate annotations erroneously removed by generator

* Apply feedback

* address feedback

* address feedback
2020-01-09 19:30:40 +02:00
Next Turn a07c771146 Apply FlagsAttribute to Characteristics (#837) 2019-12-27 10:40:11 -08:00
Eriawan Kusumawardhono 89174f25b0 Replace tfm based constants with SDK ones (dotnet/corefx#41601)
* replace DefineConstants with SDK ones

Commit migrated from https://github.com/dotnet/corefx/commit/2133679ff62222ba2734232ab8fa4c65765e82a2
2019-10-15 19:11:40 +02:00
Santiago Fernandez Madero ebce975828 Add missing dummy types to reference assemblies (dotnet/corefx#41147)
Commit migrated from https://github.com/dotnet/corefx/commit/4aea703673e942756c02b222e6b5babaf8612a25
2019-09-16 22:10:48 -07:00
Stephen Toub 6e335aa872 Enable several StyleCopAnalyzers (dotnet/corefx#39921)
* Fix ordering of keywords in member signatures

* Add StyeCop.Analyzers

Most rules are disabled.  Many of them we'll want to leave disabled, however there are a handful it'll be good to enable over time.

* Use built-in type alias

* Fix straggling stylecop warnings in all configurations

* Replace tabs with spaces


Commit migrated from https://github.com/dotnet/corefx/commit/a12c557a72988070b8624cc7ecc46899629895c4
2019-07-31 19:10:59 -04:00
Ahson Khan 2ea4e4f134 Update dummy fields within the ref by auto-generating them from the source assembly. (dotnet/corefx#39687)
* Update dummy fields within the ref by auto-generating them from the
source assembly.

* Address feedback.


Commit migrated from https://github.com/dotnet/corefx/commit/c50b758727a041aec2dc959ee5ca2df5614a3c16
2019-07-24 06:28:07 +00:00
Jose Perez Rodriguez 275f6d0636 Making Exceptions serializable (dotnet/corefx#38893)
* Making Exceptions serializable

* Remove EventLog serialization exceptions from tests since they won't work on non-Windows platforms

* Fix build and add internal exceptions as well

* Add parameter-less constructor to RethrowException

* Adding PR Feedback

* Fix allConfigurations build


Commit migrated from https://github.com/dotnet/corefx/commit/7075587321a1b6b59248b1a6c7ea04fc803eab96
2019-06-26 11:59:59 -07:00
Tanner Gooding 5a5ed7652a Regenerating reference sources in order to reorder enum fields (dotnet/corefx#37045)
Commit migrated from https://github.com/dotnet/corefx/commit/17382def0f680653870c31af1acf086ac41dcc0b
2019-04-23 13:40:45 -07:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Wes Haggard 4d97955681 Consolidate matching ref generated baseline files
This change collapses some baseline files as well as fixes
some of the reference mis-matches


Commit migrated from https://github.com/dotnet/corefx/commit/8842923d3d6bc357d39b34c93353df952ac02079
2018-03-09 15:43:29 -08:00
Tomáš Matoušek 60360b1cfc Add API that allows the emitter to indicate presence of localloc (dotnet/corefx#27589)
* Add API that allows the emitter to indicate presence of localloc

* Regenerate ref assembly source


Commit migrated from https://github.com/dotnet/corefx/commit/3fc3900a4b22d1444010b90dfba57f14bbe43961
2018-03-08 10:22:42 -08:00
Kassem Sandarusi c935fac773 TypeDefinition.IsNested Property (dotnet/corefx#25963)
* Adding API TypeDefinition.IsNested. Closes dotnet/corefx#5377

* Adding related tests.

* fixing backward asserts.

* Switching to expression-bodied syntax.

* Adding doc comment. Switching to an assembly that actually has nested types.

* Fixing xml doc comment to align with msdn comment style.

* Update TypeDefinition.cs

Fixing bad grammar in comments.


Commit migrated from https://github.com/dotnet/corefx/commit/af18a5fe0d4aab25d8fcb6900fcffa8c99befb60
2018-02-04 13:26:16 -08:00
Wes Haggard fc9b090ef0 Update references assemblies to include private fields for structs
Contributes to https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Wes Haggard 72e76002bf Fix readonly/ref ApiCompat issues found with new compat rules
Most of these are just ref assemblies that are outdated with
the implementation. This gets the contracts in sync with the current
readonly/ref annotations in the implementation.


Commit migrated from https://github.com/dotnet/corefx/commit/e116b949bd3364e9971c513f8642cdc6064cb53f
2018-01-04 21:29:32 -08:00
Stephen Toub 09612a41dd Update ref assemblies with readonly changes
Commit migrated from https://github.com/dotnet/corefx/commit/45b724f6b6391910edea8a70f3f22a4a7996696d
2017-11-03 09:48:47 -04:00
Maryam Ariyan 59be828169 Added GetAssemblyName API for AssemblyDefinition and AssemblyReference (dotnet/corefx#23396)
* Added GetAssemblyName API to MetadataReader

Also added GetAssemblyName API to AssemblyReference and
AssemblyDefinition

* Adding more changes

Removing unnecessary usings in StringUtils and StringUtilsTests

Adding private methods in MetadataReader to set flags and hashAlgorithm

* adding helper class for AssemblyName

* Removing helper class and simplifying flag setup

Adding sample unit tests. will add more in next changeset

* Correcting two impl. mistakes in GetAssemblyName()

Correcting EnableJITcompileOptimizer flag casting

Correcting flag casting mistake on AssemblyNameFlag

* new GetAssemblyName tests + fix for netstandard1.1

* applying the code review comments

* correcting public key computation and improving flag computation

* code cleanup in the AssemblyDefinitionTests class

* using AssemblyFlags.ContentTypeMask instead of magic number 0x0E00

* refactored tests + renamed files to netstandard2.1

* setting methods to private in test class

* added test validating assemblyname with publickey

added another test validating assemblyname with culture

applied some code review comments

* code cleanup in AssemblyDefinitionTests

* renaming new netstandard2.0 files to versionless netstandard

* further cleaning up test classes


Commit migrated from https://github.com/dotnet/corefx/commit/146fd85208e0251a480318d419cdc178db350761
2017-08-31 16:52:31 -07:00
Eric Mellino c054d234e9 Add a "GenerateReferenceAssembly" target and generate four assemblies.
* The GenerateReferenceAssembly target can be run as a manual step on a
  project. When run, it produces a source code file <Assembly>.cs, in the
  reference assembly folder for the library. This source file can be used
  to compile an equivalent reference assembly.
* Use the target to generate reference assemblies for the following
  libraries:
  * System.Collections.Immutable
  * System.Reflection.Metadata
  * System.Threading.Tasks.Dataflow
  * System.Threading.Tasks.Extensions


Commit migrated from https://github.com/dotnet/corefx/commit/c92788e773afae26bc61e93e83a0f3c2b5eee91a
2017-05-24 11:13:10 -07:00