public static DiagnosticResult WithLocation(this DiagnosticResult diagnosticResult, int line, int column, FakeFileInfo fakeFileInfo, int sourceFileIndex = 0) { return(WithLocation(diagnosticResult, line, column, fakeFileInfo.GetFullFilePath(sourceFileIndex))); }
public static DiagnosticResult WithSeverity(this DiagnosticResult diagnosticResult, DiagnosticSeverity diagnosticSeverity) { diagnosticResult.Severity = diagnosticSeverity; return(diagnosticResult); }
public static DiagnosticResult WithMessage(this DiagnosticResult diagnosticResult, string message) { diagnosticResult.Message = message; return(diagnosticResult); }
public static DiagnosticResult WithId(this DiagnosticResult diagnosticResult, string id) { diagnosticResult.Id = id; return(diagnosticResult); }