diff --git a/src/Features/Core/Portable/DocumentSpan.cs b/src/Features/Core/Portable/DocumentSpan.cs
index d91a5102bf79e..7ead307d2c655 100644
--- a/src/Features/Core/Portable/DocumentSpan.cs
+++ b/src/Features/Core/Portable/DocumentSpan.cs
@@ -10,4 +10,10 @@ namespace Microsoft.CodeAnalysis;
/// Represents a location in a .
///
internal readonly record struct DocumentSpan(
- Document Document, TextSpan SourceSpan, bool IsGeneratedCode = false);
+ Document Document, TextSpan SourceSpan, bool IsGeneratedCode)
+{
+ public DocumentSpan(Document document, TextSpan sourceSpan)
+ : this(document, sourceSpan, IsGeneratedCode: false)
+ {
+ }
+}