Fix typo (#455)
Real position of last error should be initialized to an impossible value.
This commit is contained in:
Родитель
a6d9bc552c
Коммит
223ecb6a7a
|
@ -110,7 +110,7 @@ namespace ListKind {
|
|||
|
||||
export function parse(code: string | Types.SourceFile) {
|
||||
let previousTokenEnd = -1;
|
||||
let realPositionOfLastError = 1;
|
||||
let realPositionOfLastError = -1;
|
||||
let missingIdentifierCounter = 0;
|
||||
const parseDiagnostics: Types.Diagnostic[] = [];
|
||||
const scanner = createScanner(code, reportDiagnostic);
|
||||
|
|
Загрузка…
Ссылка в новой задаче