コード例 #1
0
 public MSBuildDiagnostic(MSBuildDiagnosticDescriptor descriptor, TextSpan span, ImmutableDictionary <string, object> properties = null, object[] messageArgs = null)
 {
     Descriptor       = descriptor;
     Span             = span;
     Properties       = properties;
     this.messageArgs = messageArgs;
 }
コード例 #2
0
 public static void Add(this ICollection <MSBuildDiagnostic> list,
                        MSBuildDiagnosticDescriptor descriptor,
                        TextSpan span,
                        ImmutableDictionary <string, object> properties,
                        params object[] messageArgs
                        )
 => list.Add(new MSBuildDiagnostic(descriptor, span, properties, messageArgs));
コード例 #3
0
 public static void Add(
     this ICollection <MSBuildDiagnostic> list,
     MSBuildDiagnosticDescriptor descriptor,
     TextSpan span,
     params object[] messageArgs
     )
 => list.Add(new MSBuildDiagnostic(descriptor, span, messageArgs));
コード例 #4
0
 public MSBuildDiagnostic(MSBuildDiagnosticDescriptor descriptor, int offset, int length, MSBuildDiagnosticSeverity severity, ImmutableDictionary <string, object> properties, object [] messageArgs)
 {
     Descriptor       = descriptor;
     Offset           = offset;
     Length           = length;
     Properties       = properties;
     Severity         = severity;
     this.messageArgs = messageArgs;
 }
コード例 #5
0
 public MSBuildDiagnostic(MSBuildDiagnosticDescriptor descriptor, TextSpan span, params object [] messageArgs)
     : this(descriptor, span, null, messageArgs)
 {
 }
コード例 #6
0
 public static void Add(
     this ICollection <MSBuildDiagnostic> list,
     MSBuildDiagnosticDescriptor descriptor,
     TextSpan span
     )
 => list.Add(new MSBuildDiagnostic(descriptor, span));