Skip to main content

try_referenced_names

Function try_referenced_names 

Source
pub fn try_referenced_names(text: &str) -> Result<BTreeSet<String>, String>
Expand description

Like referenced_names but returns Err with the lexer/parser diagnostic when text is not a single valid Polydat expression. Use when a parse failure should surface to the operator rather than silently yield no references.