(decl)
| 11903 | return retval; |
| 11904 | } |
| 11905 | parseReturnFromDecl(decl) { |
| 11906 | if (!decl.returns) { |
| 11907 | return []; |
| 11908 | } |
| 11909 | if (this.parseBroadcastList(decl.returns)) { |
| 11910 | throw new python.Error('Broadcastable lists cannot appear as a return type.'); |
| 11911 | } |
| 11912 | const parsed_type = this.parseTypeFromExpr(decl.returns); |
| 11913 | return [new torch.Argument('', parsed_type, parsed_type, null, undefined, false)]; |
| 11914 | } |
| 11915 | parseTypeFromExpr(expr) { |
| 11916 | if (this._resolver) { |
| 11917 | if (expr instanceof ast.Name) { |
no test coverage detected