Skip to main content

tx_new_declaration

Function tx_new_declaration 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tx_new_declaration( doc: *mut TxDocument, text: *const c_char, ) -> TxNodeId
Expand description

Creates a new declaration node.

ยงSafety

  • doc must be a valid, non-null pointer to a TxDocument.
  • text must be a valid, non-null pointer to a null-terminated UTF-8 string.