Skip to content
Snippets Groups Projects
Commit f50892bf authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix content type of tuples of basic types

parent bc334d62
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -58,17 +58,17 @@ ASTNodeDataTypeBuilder::_buildDeclarationNodeDataTypes(ASTNode& type_node, ASTNo
content_node->m_data_type = ASTNodeDataType{ASTNodeDataType::type_id_t, type_name_id};
i_type_symbol->attributes().setDataType(content_node->m_data_type);
} else if (content_node->is_type<language::B_set>()) {
data_type = ASTNodeDataType::bool_t;
content_node->m_data_type = ASTNodeDataType::bool_t;
} else if (content_node->is_type<language::Z_set>()) {
data_type = ASTNodeDataType::int_t;
content_node->m_data_type = ASTNodeDataType::int_t;
} else if (content_node->is_type<language::N_set>()) {
data_type = ASTNodeDataType::unsigned_int_t;
content_node->m_data_type = ASTNodeDataType::unsigned_int_t;
} else if (content_node->is_type<language::R_set>()) {
data_type = ASTNodeDataType::double_t;
content_node->m_data_type = ASTNodeDataType::double_t;
} else if (content_node->is_type<language::vector_type>()) {
data_type = getVectorDataType(type_node);
content_node->m_data_type = getVectorDataType(type_node);
} else if (content_node->is_type<language::string_type>()) {
data_type = ASTNodeDataType::string_t;
content_node->m_data_type = ASTNodeDataType::string_t;
} else {
throw UnexpectedError("unexpected content type in tuple");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment