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

Method parse_identifiers

src/sql-parser/src/parser.rs:7346–7355  ·  view source on GitHub ↗

Parse one or more simple one-word identifiers separated by a '.'

(&mut self)

Source from the content-addressed store, hash-verified

7344
7345 ///Parse one or more simple one-word identifiers separated by a '.'
7346 fn parse_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> {
7347 let mut idents = vec![];
7348 loop {
7349 idents.push(self.parse_identifier()?);
7350 if !self.consume_token(&Token::Dot) {
7351 break;
7352 }
7353 }
7354 Ok(idents)
7355 }
7356
7357 /// Parse a simple one-word identifier (possibly quoted, possibly a keyword)
7358 fn parse_identifier(&mut self) -> Result<Ident, ParserError> {

Callers 2

parse_schema_nameMethod · 0.80
parse_item_nameMethod · 0.80

Calls 3

parse_identifierMethod · 0.80
consume_tokenMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected