blob: 02376d5134efe1900a099deb7e6fcfdb5532dfe6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System;
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
[AttributeUsage (
AttributeTargets.Assembly | AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Constructor | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Event,
AllowMultiple = true,
Inherited = false)]
public class ExpectedWarningAttribute : EnableLoggerAttribute
{
public ExpectedWarningAttribute (string warningCode, params string[] messageContains)
{
}
public string FileName { get; set; }
public int SourceLine { get; set; }
public int SourceColumn { get; set; }
/// <summary>
/// Property used by the result checkers of trimmer and analyzers to determine whether
/// the tool should have produced the specified warning on the annotated member.
/// </summary>
public ProducedBy ProducedBy { get; set; } = ProducedBy.TrimmerAndAnalyzer;
public bool CompilerGeneratedCode { get; set; }
}
}
|