From dfb1ac0f00fe009c4db9829d56fe542935bc4ff3 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Tue, 16 Dec 2014 17:14:45 -0800 Subject: [PATCH] Use constant in another place. --- src/compiler/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.