diff options
author | chriseth <chris@ethereum.org> | 2017-05-22 20:33:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 20:33:46 +0800 |
commit | 8eead553aff1ec30c3d1b15ae9b2929b887ede49 (patch) | |
tree | a9eba765277360c579ee89ee78d9606c17cb9ffa /libsolidity/codegen | |
parent | e3af064098edae79aa3bbfb2a96b43fa3479269d (diff) | |
parent | e82df073d15237455b1e53e35ef544aea72a69f9 (diff) | |
download | dexon-solidity-8eead553aff1ec30c3d1b15ae9b2929b887ede49.tar.gz dexon-solidity-8eead553aff1ec30c3d1b15ae9b2929b887ede49.tar.zst dexon-solidity-8eead553aff1ec30c3d1b15ae9b2929b887ede49.zip |
Merge pull request #1810 from ethereum/compactJson
Compact format for AST-Json.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index f018b311..0aa82ea8 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -434,7 +434,7 @@ bool ExpressionCompiler::visit(BinaryOperation const& _binaryOperation) bool ExpressionCompiler::visit(FunctionCall const& _functionCall) { CompilerContext::LocationSetter locationSetter(m_context, _functionCall); - if (_functionCall.annotation().isTypeConversion) + if (_functionCall.annotation().kind == FunctionCallKind::TypeConversion) { solAssert(_functionCall.arguments().size() == 1, ""); solAssert(_functionCall.names().empty(), ""); @@ -445,7 +445,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall) } FunctionTypePointer functionType; - if (_functionCall.annotation().isStructConstructorCall) + if (_functionCall.annotation().kind == FunctionCallKind::StructConstructorCall) { auto const& type = dynamic_cast<TypeType const&>(*_functionCall.expression().annotation().type); auto const& structType = dynamic_cast<StructType const&>(*type.actualType()); @@ -476,7 +476,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall) solAssert(found, ""); } - if (_functionCall.annotation().isStructConstructorCall) + if (_functionCall.annotation().kind == FunctionCallKind::StructConstructorCall) { TypeType const& type = dynamic_cast<TypeType const&>(*_functionCall.expression().annotation().type); auto const& structType = dynamic_cast<StructType const&>(*type.actualType()); |