예제 #1
0
 public Hover(string contents, Range range)
 {
     Contents = contents;
     Range    = range;
 }
예제 #2
0
 public Diagnostic(DiagnosticSeverity severity, Range range, string source, string message) : this(severity, range, source, null, message)
 {
 }
        /// <summary>
        /// Gets a part of the content by the specified line/column-based range.
        /// </summary>
        public virtual string GetRange(Range range)
        {
            var start = OffsetAt(range.Start);

            return(GetRange(start, OffsetAt(range.End) - start));
        }