자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
/// <summary> /// Converts an OmniSharp <see cref="Range"/> to a <see cref="TextSpan"/> within a <see cref="SourceText"/>. /// </summary> public static TextSpan GetSpanFromRange(this SourceText text, Range range) => TextSpan.FromBounds( start: text.GetPositionFromPoint(range.Start), end: text.GetPositionFromPoint(range.End));