You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Instead of outputting a text object TextEdit should output an array of strings
59
-
// such that each string represents a line. Also for each each line, there should
60
-
// be some information to encode the indentation level. Let the client decide the
61
-
// new line characters to insert between each line and the indentation type (space or tab)
57
+
if(newText==null)
58
+
{
59
+
thrownewArgumentNullException(nameof(newText));
60
+
}
61
+
62
62
Text=newText;
63
63
Lines=Text.GetLines().ToArray();
64
64
}
65
65
66
+
/// <summary>
67
+
/// Constructs a TextEdit object.
68
+
/// </summary>
69
+
/// <param name="startLineNumber">1-based line number on which the text, which needs to be replaced, starts. </param>
70
+
/// <param name="startColumnNumber">1-based offset on start line at which the text, which needs to be replaced, starts. This includes the first character of the text. </param>
71
+
/// <param name="endLineNumber">1-based line number on which the text, which needs to be replace, ends. </param>
72
+
/// <param name="endColumnNumber">1-based offset on end line at which the text, which needs to be replaced, ends. This offset value is 1 more than the offset of the last character of the text. </param>
73
+
/// <param name="lines">The contiguous lines that will replace the text bounded by the Line/Column number properties. </param>
0 commit comments