Skip to content

Commit

Permalink
fix Issue 17256 - Inconsistent output between json and ddoc
Browse files Browse the repository at this point in the history
JSON should include version blocks in templates, same as ddoc.
  • Loading branch information
yashikno committed Oct 26, 2017
1 parent 51bc2fb commit 608b824
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 80 deletions.
6 changes: 6 additions & 0 deletions src/ddmd/json.d
Expand Up @@ -563,6 +563,12 @@ public:
{
visit(cast(AttribDeclaration)d);
}
Dsymbols* ds = d.decl ? d.decl : d.elsedecl;
for (size_t i = 0; i < ds.dim; i++)
{
Dsymbol s = (*ds)[i];
s.accept(this);
}
}

override void visit(TypeInfoDeclaration d)
Expand Down

0 comments on commit 608b824

Please sign in to comment.