Esc

toml_statement_path

procedureextensionsince 0.36.1Source
  • macOS: toml_statement_path works on macOS
  • Linux: toml_statement_path works on Linux
  • Windows: toml_statement_path works on Windows
  • Wasm: toml_statement_path works on Wasm

Copies a statement's decoded key segments into caller storage, borrowing the strings from doc. Array element indices are omitted. The projection describes the parsed source; statements and returned keys expire with the document. Internal parent/slot fields are read-only. Example: path, error := toml_statement_path(*doc, doc.statements[0], buffer);

Signature

toml_statement_path :: (
    doc: *Toml_Document,
    statement: Toml_Statement,
    buffer: [] string
) -> ([] string, Toml_Error)