File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -193,10 +193,10 @@ int cmdFilterDocs(string[] args)
193193 return n;
194194 }
195195
196- if ( json.type == Json.Type.Object ){
196+ if ( json.type == Json.Type.object ){
197197 auto comment = json[" comment" ].opt! string ;
198198 if ( justdoc && comment.empty ){
199- if ( parent.type != Json.Type.Object || parent[" kind" ].opt! string () != " template" || templateName(parent) != json[" name" ].opt! string () )
199+ if ( parent.type != Json.Type.object || parent[" kind" ].opt! string () != " template" || templateName(parent) != json[" name" ].opt! string () )
200200 return Json.undefined;
201201 }
202202
@@ -240,7 +240,7 @@ int cmdFilterDocs(string[] args)
240240
241241 if (auto mem = " members" in json)
242242 json[" members" ] = filterProt(* mem, json, Json.undefined, mod);
243- } else if ( json.type == Json.Type.Array ){
243+ } else if ( json.type == Json.Type.array ){
244244 auto last_child_decl = Json.undefined;
245245 Json[] newmem;
246246 foreach (m; json) {
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ private struct Parser
141141
142142 Declaration[] parseDeclList (Json json, Entity parent)
143143 {
144- if ( json.type == Json.Type.Undefined ) return null ;
144+ if ( json.type == Json.Type.undefined ) return null ;
145145 DocGroup lastdoc;
146146 Declaration[] ret;
147147 foreach ( mem; json ){
@@ -348,10 +348,10 @@ private struct Parser
348348 out (ret) { assert (! def_type.length || ret != Type.init); }
349349 do {
350350 string str;
351- if ( json.type == Json.Type.Undefined ){
351+ if ( json.type == Json.Type.undefined ){
352352 if (warn_if_not_exists) logWarn(" No type found for %s." , sc.qualifiedName);
353353 str = def_type;
354- } else if (json.type == Json.Type.String ) str = json.get ! string ();
354+ } else if (json.type == Json.Type.string ) str = json.get ! string ();
355355 else if (auto pv = " deco" in json) str = demanglePrettyType(pv.get ! string ());
356356 else if (auto pv = " type" in json) str = fixFunctionType(pv.get ! string (), def_type);
357357 else if (auto pv = " originalType" in json) str = fixFunctionType(pv.get ! string (), def_type);
You can’t perform that action at this time.
0 commit comments