From 065d2e9de454fae97f8f32cad31efe0b20d0faa5 Mon Sep 17 00:00:00 2001 From: Peefy Date: Mon, 18 Nov 2024 18:58:00 +0800 Subject: [PATCH] Update type.go --- pkg/ast/type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ast/type.go b/pkg/ast/type.go index 2bc7803..b689e78 100644 --- a/pkg/ast/type.go +++ b/pkg/ast/type.go @@ -101,8 +101,8 @@ func (s *StrLiteralType) LiteralTypeName() string { return "Str" } // FunctionType represents a function type type FunctionType struct { Value struct { - ParamsTy []*Node[Type] `json:"paramsTy,omitempty"` - RetTy *Node[Type] `json:"retTy,omitempty"` + ParamsTy []*Node[Type] `json:"params_ty,omitempty"` + RetTy *Node[Type] `json:"ret_ty,omitempty"` } `json:"value"` }