diff options
author | Tlakaelel Axayakatl Ceja <tlakaelel.ceja@microsoft.com> | 2021-10-29 22:20:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 22:20:39 +0300 |
commit | c702d0337dc1db26a74c482f19a367ad9ddb7b89 (patch) | |
tree | 1974e00be6d908bdef6694beffb2f36948205418 /test/Mono.Linker.Tests | |
parent | f74fcd2428ba25f88c926ed7d365ed01a121c9c8 (diff) |
Ruc on type analyzer part 1 (#2330)
Add logic to check some of the Ruc on type analysis warnings
Change field and event signature to match analyzer and linker to a single signature mode
Add class as a diagnostic target
Fix issue where attributes ProducedBy.Trimmer/ProducedBy.All are skipped if they are surrounded by ProducedBy.Analyzer attributes
Bring IsConstructor and IsStaticConstructor from Roslyn source
Remove special case for printing warnings in the event instead of the caller of the event accessor
Scenarios of Ruc on type that are not addressed by this PR:
Dealing with interfaces with RUC and having a class implementing it
DAM interaction with RUC
Reflection patterns, some of the tests work because they use typeof() but in general, they are not supported
Diffstat (limited to 'test/Mono.Linker.Tests')
-rw-r--r-- | test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs index fe2b6bf8e..bab3a4f59 100644 --- a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs +++ b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs @@ -679,7 +679,7 @@ namespace Mono.Linker.Tests.TestCasesRunner bool foundReflectionAccessPatternAttributesToVerify = false; foreach (var attr in attrProvider.CustomAttributes) { if (!IsProducedByLinker (attr)) - break; + continue; switch (attr.AttributeType.Name) { |