diff options
author | Christian <c@ethdev.com> | 2014-11-07 09:13:31 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-11-07 09:13:31 +0800 |
commit | dc8fb45e1f1d098442458f14d80c343e4a445619 (patch) | |
tree | ce2bbcf7ce70813ce6f891e1df5408428cecdd77 /AST.h | |
parent | b66e58d6c9cb1684bac548406f6a950bf0eb65e3 (diff) | |
parent | afa4e9f5754eff97904a3332ca23f0913d736688 (diff) | |
download | dexon-solidity-dc8fb45e1f1d098442458f14d80c343e4a445619.tar.gz dexon-solidity-dc8fb45e1f1d098442458f14d80c343e4a445619.tar.zst dexon-solidity-dc8fb45e1f1d098442458f14d80c343e4a445619.zip |
Merge remote-tracking branch 'ethereum/develop' into sol_optimizer
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -565,12 +565,15 @@ public: Expression& getLeftExpression() const { return *m_left; } Expression& getRightExpression() const { return *m_right; } Token::Value getOperator() const { return m_operator; } + Type const& getCommonType() const { return *m_commonType; } private: ASTPointer<Expression> m_left; Token::Value m_operator; ASTPointer<Expression> m_right; + /// The common type that is used for the operation, not necessarily the result type (e.g. for + /// comparisons, this is always bool). std::shared_ptr<Type const> m_commonType; }; |