mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
chore(els): HIRVisitor::get_min_expr
takes position
instead of token
This commit is contained in:
parent
b746cd38bd
commit
6cfae0066b
9 changed files with 133 additions and 145 deletions
|
@ -8,7 +8,7 @@ use erg_common::cache::CacheSet;
|
|||
use erg_common::config::ErgConfig;
|
||||
use erg_common::io::Input;
|
||||
use erg_common::traits::DequeStream;
|
||||
use erg_common::traits::{Locational, Runnable, Stream};
|
||||
use erg_common::traits::{Runnable, Stream};
|
||||
use erg_common::{debug_power_assert, fn_name_full, normalize_newline, switch_lang};
|
||||
|
||||
use crate::error::{LexError, LexErrors, LexResult, LexerRunnerError, LexerRunnerErrors};
|
||||
|
|
|
@ -514,6 +514,10 @@ impl Token {
|
|||
&& self.col_begin == other.col_begin
|
||||
}
|
||||
|
||||
pub fn loc(&self) -> Location {
|
||||
Locational::loc(self)
|
||||
}
|
||||
|
||||
pub const fn category(&self) -> TokenCategory {
|
||||
self.kind.category()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue