File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -918,24 +918,24 @@ function dict_to_optic(dict)
918
918
end
919
919
end
920
920
921
- struct VarNameWithNTOptic
921
+ struct VarNameWithDictOptic
922
922
sym:: Symbol
923
923
optic:: Dict{Symbol, Any}
924
924
end
925
925
926
- function VarNameWithNTOptic (dict:: Dict{Symbol, Any} )
927
- return VarNameWithNTOptic {dict[:sym]} (dict[:optic ])
926
+ function VarNameWithDictOptic (dict:: Dict{Symbol, Any} )
927
+ return VarNameWithDictOptic {dict[:sym]} (dict[:optic ])
928
928
end
929
929
930
930
# Serialisation
931
- StructTypes. StructType (:: Type{VarNameWithNTOptic } ) = StructTypes. UnorderedStruct ()
931
+ StructTypes. StructType (:: Type{VarNameWithDictOptic } ) = StructTypes. UnorderedStruct ()
932
932
933
- vn_to_string2 (vn:: VarName ) = JSON3. write (VarNameWithNTOptic (getsym (vn), optic_to_dict (getoptic (vn))))
933
+ vn_to_string2 (vn:: VarName ) = JSON3. write (VarNameWithDictOptic (getsym (vn), optic_to_dict (getoptic (vn))))
934
934
935
935
# Deserialisation
936
- Base. pairs (vn:: VarNameWithNTOptic ) = Dict (:sym => vn. sym, :optic => vn. optic)
936
+ Base. pairs (vn:: VarNameWithDictOptic ) = Dict (:sym => vn. sym, :optic => vn. optic)
937
937
938
938
function vn_from_string2 (str)
939
- vn_nt = JSON3. read (str, VarNameWithNTOptic )
939
+ vn_nt = JSON3. read (str, VarNameWithDictOptic )
940
940
return VarName {vn_nt.sym} (dict_to_optic (vn_nt. optic))
941
941
end
You can’t perform that action at this time.
0 commit comments