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

Method _getNextToken

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

Source from the content-addressed store, hash-verified

2262 }
2263
2264 private _getNextToken(): Token {
2265 let token = this._tokenizerOutput!.tokens.getItemAt(this._tokenIndex);
2266 if (!this._atEof()) {
2267 this._tokenIndex++;
2268 }
2269
2270 return token;
2271 }
2272
2273 private _atEof(): boolean {
2274 // Are we pointing at the last token in the stream (which is

Callers 15

parseSourceFileMethod · 0.95
_parseSuiteMethod · 0.95
_parseDecoratedMethod · 0.95
_parseDecoratorMethod · 0.95
_parseSimpleStatementMethod · 0.95
_parseComparisonMethod · 0.95
_parseShiftExpressionMethod · 0.95
_parseAirthmeticTermMethod · 0.95
_parseAtomMethod · 0.95
_parseTupleAtomMethod · 0.95

Calls 2

_atEofMethod · 0.95
getItemAtMethod · 0.80

Tested by

no test coverage detected