File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ const (
666
666
encodedAddressLocationLength = 2
667
667
)
668
668
669
- func encodeLocation (e * cbor.StreamEncoder , l common.Location ) error {
669
+ func EncodeLocation (e * cbor.StreamEncoder , l common.Location ) error {
670
670
if l == nil {
671
671
return e .EncodeNil ()
672
672
}
@@ -1033,7 +1033,7 @@ func (t *CompositeStaticType) Encode(e *cbor.StreamEncoder) error {
1033
1033
}
1034
1034
1035
1035
// Encode location at array index encodedCompositeStaticTypeLocationFieldKey
1036
- err = encodeLocation (e , t .Location )
1036
+ err = EncodeLocation (e , t .Location )
1037
1037
if err != nil {
1038
1038
return err
1039
1039
}
@@ -1076,7 +1076,7 @@ func (t *InterfaceStaticType) Encode(e *cbor.StreamEncoder) error {
1076
1076
}
1077
1077
1078
1078
// Encode location at array index encodedInterfaceStaticTypeLocationFieldKey
1079
- err = encodeLocation (e , t .Location )
1079
+ err = EncodeLocation (e , t .Location )
1080
1080
if err != nil {
1081
1081
return err
1082
1082
}
@@ -1450,7 +1450,7 @@ func (c compositeTypeInfo) Encode(e *cbor.StreamEncoder) error {
1450
1450
return err
1451
1451
}
1452
1452
1453
- err = encodeLocation (e , c .location )
1453
+ err = EncodeLocation (e , c .location )
1454
1454
if err != nil {
1455
1455
return err
1456
1456
}
You can’t perform that action at this time.
0 commit comments