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

Function nominal

atomic-semantic/src/source.rs:210–220  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

208}
209
210fn nominal(value: &str) -> String {
211 value
212 .trim()
213 .trim_start_matches('&')
214 .trim_start_matches("mut ")
215 .split('<')
216 .next()
217 .unwrap_or(value)
218 .trim()
219 .into()
220}
221
222fn scope(mut node: Node<'_>, source: &str) -> (Vec<String>, Option<String>) {
223 let (mut parts, mut receiver) = (Vec::new(), None);

Callers 2

ownerFunction · 0.85
from_treeMethod · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected