Skip to content

Commit 21623c6

Browse files
Use common helper
1 parent a055995 commit 21623c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Compilers/CSharp/Portable/Parser/DocumentationCommentParser.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,7 @@ protected override SyntaxDiagnosticInfo GetExpectedTokenError(SyntaxKind expecte
812812
// NOTE: There are no errors in crefs - only warnings. We accomplish this by wrapping every diagnostic in ErrorCode.WRN_ErrorOverride.
813813
if (InCref)
814814
{
815-
int offset, width;
816-
this.GetDiagnosticSpanForMissingToken(out offset, out width);
817-
818-
return GetExpectedTokenError(expected, actual, offset, width);
815+
return base.GetExpectedTokenError(expected, actual);
819816
}
820817

821818
switch (expected)

0 commit comments

Comments
 (0)