(lhs, rhs, type, loc)
| 17255 | } |
| 17256 | } |
| 17257 | emitSelectAssign(lhs, rhs, type, loc) { |
| 17258 | if (!rhs) { |
| 17259 | throw new python.Error('Expected RHS for assignment.'); |
| 17260 | } |
| 17261 | let type_hint = null; |
| 17262 | if (type) { |
| 17263 | type_hint = this._typeParser.parseTypeFromExpr(type); |
| 17264 | } |
| 17265 | const lhsObject = this.emitSugaredExpr(lhs.value, 1); |
| 17266 | const rhsValue = this.emitSugaredExpr(rhs, 1, type_hint).asValue(rhs.range(), this.method); |
| 17267 | lhsObject.setAttr(loc, this.method, lhs.attr, rhsValue); |
| 17268 | } |
| 17269 | emitTupleAssign(...args) { |
| 17270 | if (args.length === 2) { |
| 17271 | const [tl, rhs] = args; |
no test coverage detected