MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / expect_ident

Method expect_ident

nodedb-sql/src/parser/array_stmt/parse_impl.rs:63–68  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

61 }
62
63 pub(super) fn expect_ident(&mut self) -> Result<String> {
64 match self.bump().map(|t| &t.tok) {
65 Some(Tok::Ident(s)) => Ok(s.clone()),
66 other => Err(self.err(format!("expected identifier, got {other:?}"))),
67 }
68 }
69
70 pub(super) fn expect(&mut self, want: &Tok) -> Result<()> {
71 if self.peek() == Some(want) {

Callers 9

parse_createMethod · 0.80
parse_dimMethod · 0.80
parse_attrMethod · 0.80
parse_cell_orderMethod · 0.80
parse_tile_orderMethod · 0.80
parse_dropMethod · 0.80
parse_insertMethod · 0.80
parse_alterMethod · 0.80
parse_deleteMethod · 0.80

Calls 3

bumpMethod · 0.45
cloneMethod · 0.45
errMethod · 0.45

Tested by

no test coverage detected