@@ -365,6 +365,18 @@ public static void Error(
365365 {
366366 Error ( self , code : null , location , origin : null , subCategory : null , handler ) ;
367367 }
368+
369+ // doc comments don't inherit param correctly, see: https://github.com/dotnet/roslyn/issues/67326#issuecomment-3452843800
370+
371+ /// <inheritdoc cref="Error(IDiagnosticReporter, string?, SourceRange, Uri?, string?, ErrorReportingInterpolatedStringHandler)" path="/summary"/>
372+ /// <param name="self">Reporter to report message to</param>
373+ /// <param name="msg">Message to report</param>
374+ /// <param name="location">Location in the origin that this message refers to</param>
375+ /// <inheritdoc cref="Error(IDiagnosticReporter, string?, SourceRange, Uri?, string?, ErrorReportingInterpolatedStringHandler)" path="/remarks"/>
376+ public static void Error ( this IDiagnosticReporter self , string msg , SourceRange location = default )
377+ {
378+ Error ( self , code : null , location , origin : null , subCategory : null , formatProvider : null , msg /*, args...*/ ) ;
379+ }
368380 #endregion
369381
370382 #region MsgLevel.Warning
@@ -470,6 +482,18 @@ public static void Warning(
470482 {
471483 Warning ( self , code : null , location , origin : null , subCategory : null , handler ) ;
472484 }
485+
486+ // doc comments don't inherit param correctly, see: https://github.com/dotnet/roslyn/issues/67326#issuecomment-3452843800
487+
488+ /// <inheritdoc cref="Warning(IDiagnosticReporter, string?, SourceRange, Uri?, string?, WarningReportingInterpolatedStringHandler)" path="/summary"/>
489+ /// <param name="self">Reporter to report message to</param>
490+ /// <param name="msg">Message to report</param>
491+ /// <param name="location">Location in the origin that this message refers to</param>
492+ /// <inheritdoc cref="Warning(IDiagnosticReporter, string?, SourceRange, Uri?, string?, WarningReportingInterpolatedStringHandler)" path="/remarks"/>
493+ public static void Warning ( this IDiagnosticReporter self , string msg , SourceRange location = default )
494+ {
495+ Warning ( self , code : null , location , origin : null , subCategory : null , formatProvider : null , msg /*, args...*/ ) ;
496+ }
473497 #endregion
474498
475499 #region MsgLevel.Information
@@ -575,6 +599,19 @@ public static void Information(
575599 {
576600 Information ( self , code : null , location , origin : null , subCategory : null , handler ) ;
577601 }
602+
603+ // doc comments don't inherit param correctly, see: https://github.com/dotnet/roslyn/issues/67326#issuecomment-3452843800
604+
605+ /// <inheritdoc cref="Information(IDiagnosticReporter, string?, SourceRange, Uri?, string?, InformationReportingInterpolatedStringHandler)" path="/summary"/>
606+ /// <param name="self">Reporter to report message to</param>
607+ /// <param name="msg">Message to report</param>
608+ /// <param name="location">Location in the origin that this message refers to</param>
609+ /// <inheritdoc cref="Information(IDiagnosticReporter, string?, SourceRange, Uri?, string?, InformationReportingInterpolatedStringHandler)" path="/remarks"/>
610+ public static void Information ( this IDiagnosticReporter self , string msg , SourceRange location = default )
611+ {
612+ Information ( self , code : null , location , origin : null , subCategory : null , formatProvider : null , msg /*, args...*/ ) ;
613+ }
614+
578615 #endregion
579616
580617 #region MsgLevel.Verbose
@@ -680,6 +717,18 @@ public static void Verbose(
680717 {
681718 Verbose ( self , code : null , location , origin : null , subCategory : null , handler ) ;
682719 }
720+
721+ // doc comments don't inherit param correctly, see: https://github.com/dotnet/roslyn/issues/67326#issuecomment-3452843800
722+
723+ /// <inheritdoc cref="Verbose(IDiagnosticReporter, string?, SourceRange, Uri?, string?, VerboseReportingInterpolatedStringHandler)" path="/summary"/>
724+ /// <param name="self">Reporter to report message to</param>
725+ /// <param name="msg">Message to report</param>
726+ /// <param name="location">Location in the origin that this message refers to</param>
727+ /// <inheritdoc cref="Verbose(IDiagnosticReporter, string?, SourceRange, Uri?, string?, VerboseReportingInterpolatedStringHandler)" path="/remarks"/>
728+ public static void Verbose ( this IDiagnosticReporter self , string msg , SourceRange location = default )
729+ {
730+ Verbose ( self , code : null , location , origin : null , subCategory : null , formatProvider : null , msg /*, args...*/ ) ;
731+ }
683732 #endregion
684733 }
685734}
0 commit comments