Skip to content

Commit

Permalink
rename get_next_precedence_full to get_next_precedence_default (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Aug 14, 2024
1 parent f223530 commit fab834d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dialect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ pub trait Dialect: Debug + Any {
///
/// The default implementation is used for many dialects, but can be
/// overridden to provide dialect-specific behavior.
fn get_next_precedence_full(&self, parser: &Parser) -> Result<u8, ParserError> {
fn get_next_precedence_default(&self, parser: &Parser) -> Result<u8, ParserError> {
if let Some(precedence) = self.get_next_precedence(parser) {
return precedence;
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,7 @@ impl<'a> Parser<'a> {

/// Get the precedence of the next token
pub fn get_next_precedence(&self) -> Result<u8, ParserError> {
self.dialect.get_next_precedence_full(self)
self.dialect.get_next_precedence_default(self)
}

/// Return the first non-whitespace token that has not yet been processed
Expand Down

0 comments on commit fab834d

Please sign in to comment.