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
|
@ -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