MCPcopy
hub / github.com/microsoft/pyright / _atEof

Method _atEof

server/src/parser/parser.ts:2273–2277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2271 }
2272
2273 private _atEof(): boolean {
2274 // Are we pointing at the last token in the stream (which is
2275 // assumed to be an end-of-stream token)?
2276 return this._tokenIndex >= this._tokenizerOutput!.tokens.count - 1;
2277 }
2278
2279 private _peekToken(count = 0): Token {
2280 if (this._tokenIndex + count < 0) {

Callers 2

parseSourceFileMethod · 0.95
_getNextTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected