Restore `isConstructor` in the legacy AST.

This commit is contained in:
Daniel Kirchner
2018-09-11 14:47:25 +02:00
parent b6636e2570
commit a434896458
14 changed files with 15 additions and 0 deletions
+2
View File
@@ -336,6 +336,8 @@ bool ASTJsonConverter::visit(FunctionDefinition const& _node)
make_pair("implemented", _node.isImplemented()),
make_pair("scope", idOrNull(_node.scope()))
};
if (m_legacy)
attributes.emplace_back("isConstructor", _node.isConstructor());
setJsonNode(_node, "FunctionDefinition", std::move(attributes));
return false;
}