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

Method _parseTestListAsExpression

server/src/parser/parser.ts:1258–1268  ·  view source on GitHub ↗
(errorString: string)

Source from the content-addressed store, hash-verified

1256 }
1257
1258 private _parseTestListAsExpression(errorString: string): ExpressionNode {
1259 if (this._isNextTokenNeverExpression()) {
1260 return this._handleExpressionParseError(errorString);
1261 }
1262
1263 let exprListResult = this._parseTestExpressionList();
1264 if (exprListResult.parseError) {
1265 return exprListResult.parseError;
1266 }
1267 return this._makeExpressionOrTuple(exprListResult);
1268 }
1269
1270 private _parseTestOrStarListAsExpression(): ExpressionNode {
1271 if (this._isNextTokenNeverExpression()) {

Callers 4

_parseForStatementMethod · 0.95
_parseReturnStatementMethod · 0.95

Tested by

no test coverage detected