diff options
author | Mateo Torres-Ruiz <mateoatr@users.noreply.github.com> | 2021-09-17 00:42:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 00:42:34 +0300 |
commit | 6f237bb253a4e86479b0bf6949ec68e5793505f1 (patch) | |
tree | 2e778bc0f1da8ad850bc48ed71c397b43377dd2e /test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs | |
parent | 7c88b9ba691d65014934637acfec27f1a985cea9 (diff) |
Warn on RUC annotated attribute ctors (analyzer) (#2201)
* Warn on usage of attributes with annotated ctors
* PR feedback
Add ProducedBy from Test Restructure
Add support for SetupCompileBefore in the analyzer
Run analyzer tests on all members (not only methods)
Move tests to RequiresCapability
* Enable analyzer tests for attributes which use RUC annotated properties
* Lint
* Rename CheckAttributeCtor
Check for instantiations that set annotated properties
* Apply suggestions from code review
Co-authored-by: Andy Gocke <angocke@microsoft.com>
* Update comment
Rename Linker => Trimmer in ProducedBy
* Fix applied suggestions
* Lint
Co-authored-by: Andy Gocke <angocke@microsoft.com>
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs new file mode 100644 index 000000000..1277f897b --- /dev/null +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs @@ -0,0 +1,16 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Assertions +{ + [Flags] + public enum ProducedBy + { + Trimmer = 1, + Analyzer = 2, + TrimmerAndAnalyzer = Trimmer | Analyzer + } +}
\ No newline at end of file |