MCPcopy Create free account
hub / github.com/hashintel/hash / parse

Function parse

libs/@local/hashql/macros/src/sym.rs:55–61  ·  view source on GitHub ↗
(item: TokenStream)

Source from the content-addressed store, hash-verified

53
54#[expect(clippy::result_large_err)]
55fn parse(item: TokenStream) -> Result<Vec<SymbolEntry>, unsynn::Error> {
56 let mut tokens = item.to_token_iter();
57
58 let parsed: SymbolModule = unsynn::Parse::parse_all(&mut tokens)?;
59
60 Ok(parsed.0.into())
61}
62
63/// Returns the string content of an identifier, stripping any `r#` raw prefix.
64#[expect(clippy::option_if_let_else)]

Callers 15

expandFunction · 0.70
runFunction · 0.50
simple_error_annotationFunction · 0.50
severity_levelsFunction · 0.50
annotation_with_categoryFunction · 0.50
caret_line_referenceFunction · 0.50
v_line_referenceFunction · 0.50
complex_annotationsFunction · 0.50

Calls 1

OkInterface · 0.85

Tested by 15

simple_error_annotationFunction · 0.40
severity_levelsFunction · 0.40
annotation_with_categoryFunction · 0.40
caret_line_referenceFunction · 0.40
v_line_referenceFunction · 0.40
complex_annotationsFunction · 0.40
whitespace_handlingFunction · 0.40
unsupported_severityFunction · 0.40
incomplete_categoryFunction · 0.40