From e312b246249b5e96f44df63af1a9c4d5e3a4fb65 Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Fri, 21 Jun 2024 11:54:30 +0700 Subject: [PATCH] feat --- ast/node.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ast/node.go b/ast/node.go index ac6d22808..10b02d112 100644 --- a/ast/node.go +++ b/ast/node.go @@ -17,13 +17,14 @@ package ast import ( - `encoding/json` - `fmt` - `strconv` - `unsafe` - - `github.com/bytedance/sonic/internal/native/types` - `github.com/bytedance/sonic/internal/rt` + "encoding/json" + "fmt" + "strconv" + "sync" + "unsafe" + + "github.com/bytedance/sonic/internal/native/types" + "github.com/bytedance/sonic/internal/rt" ) const ( @@ -53,9 +54,11 @@ const ( ) type Node struct { + b bool t types.ValueType l uint p unsafe.Pointer + m sync.RWMutex } // UnmarshalJSON is just an adapter to json.Unmarshaler.