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

Method prev_token

src/sql-parser/src/parser.rs:1794–1797  ·  view source on GitHub ↗

Push back the last one non-whitespace token. Must be called after `next_token()`, otherwise might panic. OK to call after `next_token()` indicates an EOF.

(&mut self)

Source from the content-addressed store, hash-verified

1792 /// `next_token()`, otherwise might panic. OK to call after
1793 /// `next_token()` indicates an EOF.
1794 fn prev_token(&mut self) {
1795 assert!(self.index > 0);
1796 self.index -= 1;
1797 }
1798
1799 /// Return the byte position within the query string at which the
1800 /// next token starts.

Callers 15

parse_statement_innerMethod · 0.80
parse_prefixMethod · 0.80
parse_infixMethod · 0.80
parse_avro_schemaMethod · 0.80
parse_create_sinkMethod · 0.80
parse_number_valueMethod · 0.80
parse_data_typeMethod · 0.80
parse_optional_aliasMethod · 0.80
parse_explain_planMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected