internal DocumentLine(TextDocument document) { #if DEBUG Debug.Assert(document != null); this.document = document; #endif }
public LineManager(DocumentLineTree documentLineTree, TextDocument document) { this.document = document; this.documentLineTree = documentLineTree; Rebuild(); }
public TextBuffer(IContentType contentType, string text) { if (contentType == null) throw new ArgumentNullException(nameof(contentType)); Properties = new PropertyCollection(); this.contentType = contentType; currentTextVersion = new TextVersion(this, text?.Length ?? 0, 0, 0); Document = new TextDocument(text); Document.SetOwnerThread(null); }