mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
fix(els): signature help
This commit is contained in:
parent
1332b009b7
commit
b746cd38bd
8 changed files with 148 additions and 56 deletions
|
@ -96,7 +96,7 @@ pub(crate) fn loc_to_pos(loc: erg_common::error::Location) -> Option<Position> {
|
|||
Some(start)
|
||||
}
|
||||
|
||||
pub fn _pos_to_loc(pos: Position) -> erg_common::error::Location {
|
||||
pub fn pos_to_loc(pos: Position) -> erg_common::error::Location {
|
||||
erg_common::error::Location::range(
|
||||
pos.line + 1,
|
||||
pos.character.saturating_sub(1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue