IDocumentLine IReadonlyTextDocument.GetLineByOffset(int offset) { var line = snapshot.GetLineByOffset(offset); return(line != null ? new DocumentLineWrapper(line) : null); }