public void SetFromLineInfo(LineInfo lineInfo) { Line = lineInfo.Line; LinePos = lineInfo.LinePos; EndLine = lineInfo.EndLine; EndLinePos = lineInfo.EndLinePos; }
public LineInfo(LineInfo lineInfo) { SetFromLineInfo(lineInfo == null ? StartingOffset : lineInfo); }
public void SetLineInfo(LineInfo lineInfo) { if (lineInfo != null) { Line = lineInfo.Line; LinePos = lineInfo.LinePos; EndLine = lineInfo.EndLine; EndLinePos = lineInfo.EndLinePos; } }