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

Method match_token

nodedb-sql/src/parser/array_stmt/parse_impl.rs:79–86  ·  view source on GitHub ↗
(&mut self, want: &Tok)

Source from the content-addressed store, hash-verified

77 }
78
79 pub(super) fn match_token(&mut self, want: &Tok) -> bool {
80 if self.peek() == Some(want) {
81 self.i += 1;
82 true
83 } else {
84 false
85 }
86 }
87
88 pub(super) fn expect_int(&mut self) -> Result<i64> {
89 match self.bump().map(|t| &t.tok) {

Callers 5

parse_createMethod · 0.80
parse_dimMethod · 0.80
parse_insertMethod · 0.80
parse_alterMethod · 0.80
parse_deleteMethod · 0.80

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected