MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / new_identifier

Method new_identifier

src/sql-parser/src/parser.rs:10240–10249  ·  view source on GitHub ↗
(&self, s: S)

Source from the content-addressed store, hash-verified

10238 }
10239
10240 pub fn new_identifier<S>(&self, s: S) -> Result<Ident, ParserError>
10241 where
10242 S: TryInto<IdentString>,
10243 <S as TryInto<IdentString>>::Error: fmt::Display,
10244 {
10245 Ident::new(s).map_err(|e| ParserError {
10246 pos: self.peek_prev_pos(),
10247 message: e.to_string(),
10248 })
10249 }
10250}
10251
10252impl CheckedRecursion for Parser<'_> {

Callers 9

buttonFunction · 0.80
reclockFunction · 0.80
parse_prefixMethod · 0.80
parse_extract_exprMethod · 0.80
parse_infixMethod · 0.80
parse_operatorMethod · 0.80
parse_optional_aliasMethod · 0.80
consume_identifierMethod · 0.80

Calls 2

peek_prev_posMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected