Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Issue: Infinite loop in GetPreviousTokenization() [1757]

$
0
0
The GetPreviousTokenization() function has an infinite loop, because `currentLineTemp` is never changed within the loop:

```
while (currentLineTemp <= snapshot.LineCount) {
if (!_tokenCache.TryGetTokenization(currentLineTemp, out lineTokenizationTemp)) {
lineTokenizationTemp = TokenizeLine(JSScanner, snapshot, stateTemp, currentLineTemp);
_tokenCache[currentLineTemp] = lineTokenizationTemp;
}

stateTemp = lineTokenizationTemp.State;
}
```



Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>