コード例 #1
0
 public static DiagnosticResult WithLocation(this DiagnosticResult diagnosticResult, int line, int column, FakeFileInfo fakeFileInfo, int sourceFileIndex = 0)
 {
     return(WithLocation(diagnosticResult, line, column, fakeFileInfo.GetFullFilePath(sourceFileIndex)));
 }
コード例 #2
0
 public static DiagnosticResult WithSeverity(this DiagnosticResult diagnosticResult, DiagnosticSeverity diagnosticSeverity)
 {
     diagnosticResult.Severity = diagnosticSeverity;
     return(diagnosticResult);
 }
コード例 #3
0
 public static DiagnosticResult WithMessage(this DiagnosticResult diagnosticResult, string message)
 {
     diagnosticResult.Message = message;
     return(diagnosticResult);
 }
コード例 #4
0
 public static DiagnosticResult WithId(this DiagnosticResult diagnosticResult, string id)
 {
     diagnosticResult.Id = id;
     return(diagnosticResult);
 }