We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aee49b commit c19d088Copy full SHA for c19d088
src/compiler/utils/get_code_frame.ts
@@ -19,10 +19,10 @@ export default function get_code_frame(
19
return lines
20
.slice(frame_start, frame_end)
21
.map((str, i) => {
22
- const isErrorLine = frame_start + i === line;
+ const is_error_line = frame_start + i === line;
23
const line_num = String(i + frame_start + 1).padStart(digits, ' ');
24
25
- if (isErrorLine) {
+ if (is_error_line) {
26
const indicator = ' '.repeat(digits + 2 + tabs_to_spaces(str.slice(0, column)).length) + '^';
27
return `${line_num}: ${tabs_to_spaces(str)}\n${indicator}`;
28
}
0 commit comments