Fix erronously using the name of the properties instead of the typename for lookup
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user