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

Method should_include_token

atomic-core/src/diff/semantic_to_crdt.rs:558–563  ·  view source on GitHub ↗

Check if a token should be included based on configuration.

(&self, kind: TokenKind)

Source from the content-addressed store, hash-verified

556
557 /// Check if a token should be included based on configuration.
558 fn should_include_token(&self, kind: TokenKind) -> bool {
559 if !self.config.include_whitespace {
560 return kind != TokenKind::Whitespace && kind != TokenKind::Newline;
561 }
562 true
563 }
564}
565
566// Convenience Functions

Callers 2

convert_token_changesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected