Documentation
Table of Contents

Constructor ParsedDocument

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

ParsedDocument(JsonNode?, Func<JsonNode, int?>?, Func<JsonObject, string, int?>?)

Creates a parsed document from its tree and its line lookups.

public ParsedDocument(JsonNode? root, Func<JsonNode, int?>? lineOf = null, Func<JsonObject, string, int?>? propertyLineOf = null)

Parameters

root JsonNode

The root of the tree; null when the document is a JSON null.

lineOf Func<JsonNode, int?>

Returns the 1-based line where a node of the tree starts, or null when unknown; null when the format records no lines.

propertyLineOf Func<JsonObject, string, int?>

Returns the 1-based line of a property's key in an object of the tree, or null when unknown; null when the format records no lines.