Fix erronously using the name of the properties instead of the typename for lookup

This commit is contained in:
2024-06-09 22:11:56 +02:00
parent b81c0af596
commit b1dceb298f
2 changed files with 9 additions and 3 deletions

View File

@@ -277,10 +277,12 @@ emit_node :: (state : *Codegen_State, node : *AST_Node, indentation : int) {
case .Variable; {
indent(*state.builder, indentation);
type_var := h2tv(state.type_variables, node.type_variable);
print("type: %\n", type_var.typename);
is_properties := node.name == "properties";
if !is_properties {
print_to_builder(*state.builder, "%", node.name);
print_to_builder(*state.builder, "%", node.name);
}
if node.children.count > 0 {