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

Method add_token

atomic-core/src/output/crdt.rs:144–146  ·  view source on GitHub ↗

Adds a token to this line.

(&mut self, token: Token)

Source from the content-addressed store, hash-verified

142
143 /// Adds a token to this line.
144 pub fn add_token(&mut self, token: Token) {
145 self.tokens.push(token);
146 }
147
148 /// Returns the line content by concatenating all alive tokens.
149 pub fn content(&self) -> String {

Callers 6

get_file_lines_by_trunkFunction · 0.45
test_line_contentFunction · 0.45
test_builder_statisticsFunction · 0.45
test_multi_file_workflowFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 5

test_line_contentFunction · 0.36
test_builder_statisticsFunction · 0.36
test_multi_file_workflowFunction · 0.36