roojspacker/SymbolSet.vala
authorAlan Knowles <alan@roojs.com>
Tue, 27 Jul 2021 02:58:54 +0000 (10:58 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Jul 2021 02:58:54 +0000 (10:58 +0800)
roojspacker/SymbolSet.vala

index 3e944f5..fb8f253 100644 (file)
@@ -5,6 +5,17 @@ namespace JSDOC {
 
                private Gee.HashMap<string,Symbol> __index = null;
                
+               
+               public Json.Object toJson()
+               {
+                       var ret = new Json.Array();
+                        foreach(var k in this._index.keys) {
+               ret.set_object_member(k, this._index.get(k));
+               }
+               return ret;
+               }
+               
+               
                public Gee.HashMap<string,Symbol> _index {
                        get {
                                if (this.__index == null) {