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

Method _parseLoopSuite

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

Source from the content-addressed store, hash-verified

236 }
237
238 private _parseLoopSuite(): SuiteNode {
239 const wasInLoop = this._isInLoop;
240 const wasInFinally = this._isInFinally;
241 this._isInLoop = true;
242 this._isInFinally = false;
243
244 let suite = this._parseSuite();
245
246 this._isInLoop = wasInLoop;
247 this._isInFinally = wasInFinally;
248
249 return suite;
250 }
251
252 // suite: ':' (simple_stmt | NEWLINE INDENT stmt+ DEDENT)
253 private _parseSuite(): SuiteNode {

Callers 2

_parseForStatementMethod · 0.95
_parseWhileStatementMethod · 0.95

Calls 1

_parseSuiteMethod · 0.95

Tested by

no test coverage detected