MCPcopy Create free account
hub / github.com/dprint/jsonc-parser / append

Method append

src/cst/mod.rs:1759–1761  ·  view source on GitHub ↗

Appends a property to the object. Returns the inserted object property.

(&self, prop_name: &str, value: CstInputValue)

Source from the content-addressed store, hash-verified

1757 ///
1758 /// Returns the inserted object property.
1759 pub fn append(&self, prop_name: &str, value: CstInputValue) -> CstObjectProp {
1760 self.insert_or_append(None, prop_name, value)
1761 }
1762
1763 /// Inserts a property at the specified index.
1764 ///

Calls 1

insert_or_appendMethod · 0.80