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

Method match_kw

nodedb-sql/src/parser/array_stmt/parse_impl.rs:53–61  ·  view source on GitHub ↗
(&mut self, kw: &str)

Source from the content-addressed store, hash-verified

51 }
52
53 pub(super) fn match_kw(&mut self, kw: &str) -> bool {
54 match self.peek() {
55 Some(Tok::Ident(s)) if s.eq_ignore_ascii_case(kw) => {
56 self.i += 1;
57 true
58 }
59 _ => false,
60 }
61 }
62
63 pub(super) fn expect_ident(&mut self) -> Result<String> {
64 match self.bump().map(|t| &t.tok) {

Callers 3

parse_createMethod · 0.80
parse_attrMethod · 0.80
parse_dropMethod · 0.80

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected