Document.nullDocument

Creates a document with no URI and no language ID and copies the content into the text buffer using setContent.

struct Document
static
nullDocument
(
scope const(char)[] content
)

Examples

auto doc = Document.nullDocument(`import std.stdio;`);
assert(!doc.languageId.length);
assert(doc.version_ == 0);
assert(!doc.uri.length);
assert(doc.rawText == "import std.stdio;");

Meta