diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 56366c9d2f4..6173ac89fbb 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -510,7 +510,7 @@ module ts { function findHighestListElementThatStartsAtPosition(position: number) { // Clear out any cached state about the last node we found. currentArray = undefined; - currentArrayIndex = -1; + currentArrayIndex = InvalidPosition.Value; current = undefined; // Recurse into the source file to find the highest node at this position.