moonrockz/diagrams-mermaid/state-ast

Types

Diagram

pub struct Diagram {
  header : String
  statements : ReadOnlyArray[Statement]
  front_matter : String?
  directives : ReadOnlyArray[String]
} derive(@moonbitlang/core/debug.Debug)

Source

Diagram::equal

fn Diagram::equal(a : Diagram, b : Diagram) -> Bool

Source

Diagram::new

fn Diagram::new(statements : ArrayView[Statement], header? : String, front_matter? : String, directives? : ArrayView[String]) -> Diagram

Source

Diagram::not_equal

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

Source

Diagram::to_repr

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

Source

impl Eq for Diagram

Eq::equal

fn equal(a : Diagram, b : Diagram) -> Bool

Source

Statement

pub(all) struct Statement {
  kind : StatementKind
  span : @moonrockz/diagrams.Span
} derive(@moonbitlang/core/debug.Debug)

Source

Statement::equal

fn Statement::equal(a : Statement, b : Statement) -> Bool

Source

Statement::not_equal

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

Source

Statement::to_repr

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

Source

impl Eq for Statement

Eq::equal

fn equal(a : Statement, b : Statement) -> Bool

Source

StatementKind

pub(all) enum StatementKind {
  State(id~ : String, label~ : String?, role~ : String?, description~ : String?, classes~ : ReadOnlyArray[String])
  Composite(id~ : String, label~ : String?)
  EndComposite
  Concurrent
  Transition(source~ : String, target~ : String, label~ : String?, source_classes~ : ReadOnlyArray[String], target_classes~ : ReadOnlyArray[String])
  Description(id~ : String, text~ : String)
  Note(target~ : String, placement~ : String, text~ : String)
  FloatingNote(id~ : String, text~ : String)
  Direction(String)
  AccTitle(String)
  AccDescription(String)
  Presentation(String)
  Comment(String)
  Invalid(String)
} derive(Eq, @moonbitlang/core/debug.Debug)

Source statements retain declaration order. Composite boundaries and region separators remain explicit; behavior labels are never evaluated.

Source

StatementKind::equal

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

Source

StatementKind::not_equal

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

Source

StatementKind::to_repr

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

Source