public ReadonlyDocumentSnapshot (Mono.TextEditor.TextDocument textDocument) { snapshot = textDocument.CreateDocumentSnapshot (); version = new TextSourceVersionWrapper (textDocument.Version); }