MCPcopy Create free account
hub / github.com/PRQL/prql / parse_source

Function parse_source

prqlc/prqlc/src/parser.rs:60–78  ·  view source on GitHub ↗

Build PR AST from a PRQL query string. We have this function in `prqlc` rather than in `prqlc-parser` crate since our logging is in `prqlc` and we want to log the LR. (We could split the logging out into a separate crate, but it has dependencies on `prqlc` internals and would be an effort)

(source: &str, source_id: u16)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

parseFunction · 0.70
load_std_libFunction · 0.50

Calls 5

lex_source_recoveryFunction · 0.85
log_entryFunction · 0.85
TokensClass · 0.85
parse_lr_to_prFunction · 0.85
is_emptyMethod · 0.80

Tested by

no test coverage detected