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

Interface SupportsDocComment

prqlc/prqlc-parser/src/parser/mod.rs:159–161  ·  view source on GitHub ↗

Allows us to surround a parser by `with_doc_comment` and for a doc comment to be added to the result, as long as the result implements `SupportsDocComment`. (In retrospect, we could manage without it, though probably not worth the effort to remove it. We could also use it to also support Span items.)

Source from the content-addressed store, hash-verified

157/// (In retrospect, we could manage without it, though probably not worth the
158/// effort to remove it. We could also use it to also support Span items.)
159trait SupportsDocComment {
160 fn with_doc_comment(self, doc_comment: Option<String>) -> Self;
161}
162
163/// Parse a sequence, allowing commas and new lines between items. Doesn't
164/// include the surrounding delimiters.

Callers

nothing calls this directly

Implementers 3

mod.rsprqlc/prqlc-parser/src/parser/mod.rs
stmt.rsprqlc/prqlc-parser/src/parser/pr/stmt.
expr.rsprqlc/prqlc-parser/src/parser/pr/expr.

Calls

no outgoing calls

Tested by

no test coverage detected