mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-06 22:20:31 +00:00
rename get_next_precedence_full
to get_next_precedence_default
(#1378)
This commit is contained in:
parent
f2235305f4
commit
fab834dca3
2 changed files with 2 additions and 2 deletions
|
@ -350,7 +350,7 @@ pub trait Dialect: Debug + Any {
|
||||||
///
|
///
|
||||||
/// The default implementation is used for many dialects, but can be
|
/// The default implementation is used for many dialects, but can be
|
||||||
/// overridden to provide dialect-specific behavior.
|
/// 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) {
|
if let Some(precedence) = self.get_next_precedence(parser) {
|
||||||
return precedence;
|
return precedence;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3008,7 +3008,7 @@ impl<'a> Parser<'a> {
|
||||||
|
|
||||||
/// Get the precedence of the next token
|
/// Get the precedence of the next token
|
||||||
pub fn get_next_precedence(&self) -> Result<u8, ParserError> {
|
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
|
/// Return the first non-whitespace token that has not yet been processed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue