mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 14:34:35 -06:00
CR feedback.
This commit is contained in:
parent
b73128c50f
commit
f3ce5d763c
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user