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

Method parse_raw_ident

src/sql-parser/src/parser.rs:4350–4358  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

4348 }
4349
4350 fn parse_raw_ident(&mut self) -> Result<RawClusterName, ParserError> {
4351 if self.consume_token(&Token::LBracket) {
4352 let id = self.parse_raw_ident_str()?;
4353 self.expect_token(&Token::RBracket)?;
4354 Ok(RawClusterName::Resolved(id))
4355 } else {
4356 Ok(RawClusterName::Unresolved(self.parse_identifier()?))
4357 }
4358 }
4359
4360 fn parse_raw_network_policy_name(&mut self) -> Result<RawNetworkPolicyName, ParserError> {
4361 if self.consume_token(&Token::LBracket) {

Callers 4

parse_commentMethod · 0.80

Calls 6

consume_tokenMethod · 0.80
parse_raw_ident_strMethod · 0.80
expect_tokenMethod · 0.80
parse_identifierMethod · 0.80
ResolvedClass · 0.50
UnresolvedClass · 0.50

Tested by

no test coverage detected