Skip to content

Commit

Permalink
lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Dec 4, 2024
1 parent 0b66281 commit daafc65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn report(
let file = file_lines_cache.get_or_insert_with(|| cm.lookup_char_pos(css_span.lo));

let lo = if let Some(loc) = &err.loc {
Some(file.file.lines[(loc.line + 1) as usize] + BytePos(loc.column))
Some(file.file.analyze().lines[(loc.line + 1) as usize] + BytePos(loc.column))
} else {
None
};
Expand Down

0 comments on commit daafc65

Please sign in to comment.