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
rootJsonNodeThe root of the tree; null when the document is a JSON null.
lineOfFunc<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.
propertyLineOfFunc<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.