(expr)
| 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) { |
| 11918 | const type = this._resolver.resolveType(expr.id); |
| 11919 | if (type) { |
| 11920 | return type; |
| 11921 | } |
| 11922 | } |
| 11923 | } |
| 11924 | return this.parseTypeFromExprImpl(expr); |
| 11925 | } |
| 11926 | parseTypeFromExprImpl(expr) { |
| 11927 | if (expr instanceof ast.Subscript) { |
| 11928 | const value_name = this.parseBaseTypeName(expr.value); |
no test coverage detected