fix(compiler): correctly map error message locations (#19424)
This commit is contained in:

committed by
Victor Berchet

parent
b3db3f80ba
commit
ff5b050a92
@ -161,7 +161,7 @@ export class EmitterVisitorContext {
|
||||
spanOf(line: number, column: number): ParseSourceSpan|null {
|
||||
const emittedLine = this._lines[line - this._preambleLineCount];
|
||||
if (emittedLine) {
|
||||
let columnsLeft = column - emittedLine.indent;
|
||||
let columnsLeft = column - _createIndent(emittedLine.indent).length;
|
||||
for (let partIndex = 0; partIndex < emittedLine.parts.length; partIndex++) {
|
||||
const part = emittedLine.parts[partIndex];
|
||||
if (part.length > columnsLeft) {
|
||||
|
Reference in New Issue
Block a user