minor fixes and changelog update

This commit is contained in:
djudjuu 2017-05-22 11:51:45 +02:00
parent 1d22233a43
commit e82df073d1
3 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
### 0.4.12 (unreleased)
* AST: export all attributes to Json format
### 0.4.11 (2017-05-03)

View File

@ -1246,6 +1246,7 @@ bool TypeChecker::visit(FunctionCall const& _functionCall)
}
else
_functionCall.annotation().kind = FunctionCallKind::FunctionCall;
solAssert(_functionCall.annotation().kind != FunctionCallKind::Unset, "");
if (_functionCall.annotation().kind == FunctionCallKind::TypeConversion)
{

View File

@ -634,7 +634,7 @@ bool ASTJsonConverter::visit(FunctionCall const& _node)
};
if (m_legacy)
{
attributes.push_back(make_pair("isStructConstructorCall", functionCallKind(_node.annotation().kind)));
attributes.push_back(make_pair("isStructConstructorCall", _node.annotation().kind == FunctionCallKind::StructConstructorCall));
attributes.push_back(make_pair("type_conversion", _node.annotation().kind == FunctionCallKind::TypeConversion));
}
else