()
| 1196 | // flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt |
| 1197 | // import_stmt: import_name | import_from |
| 1198 | private _parseSmallStatement(): ParseNode { |
| 1199 | switch (this._peekKeywordType()) { |
| 1200 | case KeywordType.Pass: |
| 1201 | return this._parsePassStatement(); |
| 1202 | |
| 1203 | case KeywordType.Break: |
| 1204 | return this._parseBreakStatement(); |
| 1205 | |
| 1206 | case KeywordType.Continue: |
| 1207 | return this._parseContinueStatement(); |
| 1208 | |
| 1209 | case KeywordType.Return: |
| 1210 | return this._parseReturnStatement(); |
| 1211 | |
| 1212 | case KeywordType.From: |
| 1213 | return this._parseFromStatement(); |
| 1214 | |
| 1215 | case KeywordType.Import: |
| 1216 | return this._parseImportStatement(); |
| 1217 | |
| 1218 | case KeywordType.Global: |
| 1219 | return this._parseGlobalStatement(); |
| 1220 | |
| 1221 | case KeywordType.Nonlocal: |
| 1222 | return this._parseNonlocalStatement(); |
| 1223 | |
| 1224 | case KeywordType.Raise: |
| 1225 | return this._parseRaiseStatement(); |
| 1226 | |
| 1227 | case KeywordType.Assert: |
| 1228 | return this._parseAssertStatement(); |
| 1229 | |
| 1230 | case KeywordType.Del: |
| 1231 | return this._parseDelStatement(); |
| 1232 | |
| 1233 | case KeywordType.Yield: |
| 1234 | return this._parseYieldExpression(); |
| 1235 | } |
| 1236 | |
| 1237 | return this._parseExpressionStatement(); |
| 1238 | } |
| 1239 | |
| 1240 | private _makeExpressionOrTuple(exprListResult: ExpressionListResult): ExpressionNode { |
| 1241 | if (exprListResult.list.length === 1 && !exprListResult.trailingComma) { |
no test coverage detected