| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| ASR::dimension_t* m_dims; | ||
| int n_dims = ASRUtils::extract_dimensions_from_ttype(x_mv_type, m_dims); | ||
| bool is_data_only_array = ASRUtils::is_fixed_size_array(m_dims, n_dims) && ASRUtils::get_asr_owner(arr_expr) && | ||
| ASR::is_a<ASR::StructType_t>(*ASRUtils::get_asr_owner(arr_expr)); |
There was a problem hiding this comment.
Does "data only array" in this context mean "FixedSizeArray" inside a struct?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes.
Sorry, something went wrong.
There was a problem hiding this comment.
Ok. I would maybe document this in a comment, or maybe name the variable fixed_array_inside_struct, or something like that.
Sorry, something went wrong.
| default: { | ||
| throw LCompilersException("Cannot find the ASR owner of underlying symbol of expression " | ||
| + std::to_string(expr->type)); | ||
| return nullptr; |
There was a problem hiding this comment.
Note: this changes the API, now it will return nullptr if the node does not have an ASR owner.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
related lfortran/lfortran#2488