From 54775306ecbfc8122f7c9112ce6fa652a836b6d8 Mon Sep 17 00:00:00 2001 From: myfreess Date: Mon, 19 Jan 2026 13:40:07 +0800 Subject: [PATCH] fix field name --- syntax/ast_json_repr.mbt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/syntax/ast_json_repr.mbt b/syntax/ast_json_repr.mbt index 8ebbf8e..a5d057c 100644 --- a/syntax/ast_json_repr.mbt +++ b/syntax/ast_json_repr.mbt @@ -5,9 +5,9 @@ fn[T] list_json_repr( list : @list.List[T], f : (T) -> Json, ) -> Json { - let childs = [] - list.each(fn(item) { childs.push(f(item)) }) - { "kind": kind, "loc": loc, "childs": childs } + let children = [] + list.each(fn(item) { children.push(f(item)) }) + { "kind": kind, "loc": loc, "children": children } } ///| @@ -22,9 +22,9 @@ fn[T] option_json_repr(opt : T?, f : (T) -> Json) -> Json { fn tagged_node( kind : String, loc : Location, - childs : Map[String, Json], + children : Map[String, Json], ) -> Json { - { "kind": kind, "loc": loc, "childs": childs } + { "kind": kind, "loc": loc, "children": children } } ///|