Skip to content

Commit 76e471c

Browse files
authored
Enable nullable: System.Management.Automation.Language.IScriptExtent (#14179)
1 parent 29131d5 commit 76e471c

File tree

1 file changed

+3
-1
lines changed
  • src/System.Management.Automation/engine/parser

1 file changed

+3
-1
lines changed

src/System.Management.Automation/engine/parser/Position.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ public interface IScriptPosition
5151
/// <summary>
5252
/// Represents the a span of text in a script.
5353
/// </summary>
54+
#nullable enable
5455
public interface IScriptExtent
5556
{
5657
/// <summary>
5758
/// The filename the extent includes, or null if the extent is not included in any file.
5859
/// </summary>
59-
string File { get; }
60+
string? File { get; }
6061

6162
/// <summary>
6263
/// The starting position of the extent.
@@ -103,6 +104,7 @@ public interface IScriptExtent
103104
/// </summary>
104105
int EndOffset { get; }
105106
}
107+
#nullable restore
106108

107109
/// <summary>
108110
/// A few utility functions for script positions.

0 commit comments

Comments
 (0)