Skip to content

Commit dd79aeb

Browse files
committed
capabilities_client: add CodeActionClientCapabilitiesResolveSupport
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 8e2118b commit dd79aeb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

capabilities_client_gojay.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,31 @@ var (
14341434
_ gojay.UnmarshalerJSONObject = (*CodeActionClientCapabilitiesKind)(nil)
14351435
)
14361436

1437+
// MarshalJSONObject implements gojay.MarshalerJSONObject.
1438+
func (v *CodeActionClientCapabilitiesResolveSupport) MarshalJSONObject(enc *gojay.Encoder) {
1439+
enc.ArrayKey(keyProperties, (*Strings)(&v.Properties))
1440+
}
1441+
1442+
// IsNil implements gojay.MarshalerJSONObject.
1443+
func (v *CodeActionClientCapabilitiesResolveSupport) IsNil() bool { return v == nil }
1444+
1445+
// UnmarshalJSONObject implements gojay.UnmarshalerJSONObject.
1446+
func (v *CodeActionClientCapabilitiesResolveSupport) UnmarshalJSONObject(dec *gojay.Decoder, k string) error {
1447+
if k == keyProperties {
1448+
return dec.Array((*Strings)(&v.Properties))
1449+
}
1450+
return nil
1451+
}
1452+
1453+
// NKeys returns the number of keys to unmarshal.
1454+
func (v *CodeActionClientCapabilitiesResolveSupport) NKeys() int { return 1 }
1455+
1456+
// compile time check whether the CodeActionClientCapabilitiesResolveSupport implements a gojay.MarshalerJSONObject and gojay.UnmarshalerJSONObject interfaces.
1457+
var (
1458+
_ gojay.MarshalerJSONObject = (*CodeActionClientCapabilitiesResolveSupport)(nil)
1459+
_ gojay.UnmarshalerJSONObject = (*CodeActionClientCapabilitiesResolveSupport)(nil)
1460+
)
1461+
14371462
// MarshalJSONObject implements gojay.MarshalerJSONObject.
14381463
func (v *CodeLensClientCapabilities) MarshalJSONObject(enc *gojay.Encoder) {
14391464
enc.BoolKeyOmitEmpty(keyDynamicRegistration, v.DynamicRegistration)

0 commit comments

Comments
 (0)