moonrockz/diagrams-mermaid/swimlane-syntax

Types

Limits

pub struct Limits {
  source : Int
  output : Int
  nodes : Int
  edges : Int
  depth : Int
  work : Int
  diagnostics : Int
  metadata_depth : Int
  metadata_work : Int
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

Limits::equal

fn Limits::equal(Limits, Limits) -> Bool

Source

Limits::new

fn Limits::new(source? : Int, output? : Int, nodes? : Int, edges? : Int, depth? : Int, work? : Int, diagnostics? : Int, metadata_depth? : Int, metadata_work? : Int) -> Limits

Source

Limits::not_equal

fn Limits::not_equal(x : Limits, y : Limits) -> Bool

Source

Limits::to_repr

fn Limits::to_repr(Limits) -> @moonbitlang/core/debug.Repr

Source

ReadResult

pub struct ReadResult {
  tree : @moonrockz/diagrams-mermaid/swimlane-cst.Node
  ast : @moonrockz/diagrams-mermaid/swimlane-ast.Diagram?
  diagnostics : ReadOnlyArray[@moonrockz/diagrams.Diagnostic]
} derive(Eq, @moonbitlang/core/debug.Debug)

Source

ReadResult::equal

fn ReadResult::equal(ReadResult, ReadResult) -> Bool

Source

ReadResult::not_equal

fn ReadResult::not_equal(x : ReadResult, y : ReadResult) -> Bool

Source

ReadResult::to_repr

fn ReadResult::to_repr(ReadResult) -> @moonbitlang/core/debug.Repr

Source

Values

decode_content

fn decode_content(value : String) -> String

Source

diagnostic_codes

let diagnostic_codes : ReadOnlyArray[String]

Stable reader findings. Limit findings produce no complete AST.

Source

front_matter_title

fn front_matter_title(front : String, limits? : Limits) -> (String?, String?)

Decode title metadata with the same explicit YAML depth and work bounds.

Source

is_space

fn is_space(unit : Int) -> Bool

JavaScript lexical whitespace, excluding the CR/LF statement separators.

Source

max_metadata_depth

let max_metadata_depth : Int

Source

read

fn read(source : String, limits? : Limits, header? : String, diagnostic_prefix? : String, accepted_headers? : ArrayView[String]) -> ReadResult

Source

trim_space

fn trim_space(source : String) -> String

Source