mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
CR feedback.
This commit is contained in:
@@ -457,13 +457,17 @@ module ts {
|
||||
currentNode(position: number): IncrementalNode;
|
||||
}
|
||||
|
||||
const enum InvalidPosition {
|
||||
Value = -1
|
||||
}
|
||||
|
||||
function createSyntaxCursor(sourceFile: SourceFile): SyntaxCursor {
|
||||
var currentArray: NodeArray<Node> = sourceFile.statements;
|
||||
var currentArrayIndex = 0;
|
||||
|
||||
Debug.assert(currentArrayIndex < currentArray.length);
|
||||
var current = currentArray[currentArrayIndex];
|
||||
var lastQueriedPosition = -1;
|
||||
var lastQueriedPosition = InvalidPosition.Value;
|
||||
|
||||
return {
|
||||
currentNode(position: number) {
|
||||
|
||||
Reference in New Issue
Block a user