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

Function qualified_path

atomic-semantic/src/source.rs:114–130  ·  view source on GitHub ↗
(value: &str, separator: &str)

Source from the content-addressed store, hash-verified

112}
113
114pub(crate) fn qualified_path(value: &str, separator: &str) -> Option<Vec<String>> {
115 let parts: Vec<_> = value
116 .trim()
117 .trim_start_matches("::")
118 .split(separator)
119 .map(str::trim)
120 .collect();
121 parts
122 .iter()
123 .all(|part| {
124 !part.is_empty()
125 && part
126 .chars()
127 .all(|ch| ch.is_alphanumeric() || ch == '_' || ch == '#')
128 })
129 .then(|| parts.into_iter().map(str::to_owned).collect())
130}
131
132fn callable(node: Node<'_>) -> bool {
133 matches!(

Callers 2

rust_importFunction · 0.85
from_treeMethod · 0.85

Calls 5

collectMethod · 0.45
allMethod · 0.45
iterMethod · 0.45
is_emptyMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected