MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / operations

Function operations

atomic-core/src/change/semantic_context.rs:189–199  ·  view source on GitHub ↗
(symbol: u64)

Source from the content-addressed store, hash-verified

187 }
188 }
189 fn operations(symbol: u64) -> Vec<FileOps> {
190 let mut file = FileOps::edit(TrunkId::new(NodeId::new(symbol), 2), "f".into());
191 file.add_line_op(LineOps::new(
192 BranchId::new(NodeId::ROOT, 0),
193 BranchOp::Insert {
194 after: Some(BranchId::new(NodeId::new(symbol), 4)),
195 content: vec![],
196 },
197 ));
198 vec![file]
199 }
200
201 #[test]
202 fn declarations_reject_root_unordered_duplicate_and_aliased_names() {

Calls 2

editFunction · 0.85
add_line_opMethod · 0.45