Fix properties renaming.
This commit is contained in:
@@ -49,7 +49,6 @@ emit_field :: (state : *Codegen_State, node : *AST_Node, indentation : int) {
|
||||
print_to_builder(*state.builder, "%", node.name);
|
||||
|
||||
for i :0..node.children.count - 1 {
|
||||
|
||||
child := node.children[i];
|
||||
|
||||
print_to_builder(*state.builder, " = ");
|
||||
@@ -278,8 +277,7 @@ emit_node :: (state : *Codegen_State, node : *AST_Node, indentation : int) {
|
||||
indent(*state.builder, indentation);
|
||||
|
||||
type_var := h2tv(state.type_variables, node.type_variable);
|
||||
print("type: %\n", type_var.typename);
|
||||
is_properties := node.name == "properties";
|
||||
is_properties := type_var.typename == "properties";
|
||||
|
||||
if !is_properties {
|
||||
print_to_builder(*state.builder, "%", node.name);
|
||||
@@ -394,7 +392,6 @@ codegen :: (state : *Codegen_State) -> Codegen_Result {
|
||||
|
||||
state.result.result_text = builder_to_string(*state.builder);
|
||||
|
||||
print("%\n", state.result.result_text);
|
||||
return state.result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user