Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs
index b18578c3d..6b441975e 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs
@@ -5,11 +5,19 @@ using System;
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
+ /// <summary>
+ /// Used to specify which tool produces a warning. This can either be the trimmer, a specific analyzer, or both.
+ /// Currently we have all existing diagnostic analyzers listed in here so that we can leave out some expected warnings
+ /// when testing analyzers which do not produce them.
+ /// </summary>
[Flags]
public enum ProducedBy
{
Trimmer = 1,
- Analyzer = 2,
+ RequiresAssemblyFileAnalyzer = 2,
+ RequiresUnreferencedCodeAnalyzer = 4,
+ COMAnalyzer = 8,
+ Analyzer = RequiresAssemblyFileAnalyzer | RequiresUnreferencedCodeAnalyzer | COMAnalyzer,
TrimmerAndAnalyzer = Trimmer | Analyzer
}
} \ No newline at end of file