aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-26 20:19:17 +0800
committerChristian <c@ethdev.com>2014-11-26 22:42:54 +0800
commitc4a43c64c2878dea08dd2366ae6954173c4372cc (patch)
tree24f1e8fb7154405fd508e7a94daf36367ede4cf2 /AST.h
parentf30dc68cdd3ae97305b8dfc8891da81a6d489882 (diff)
downloaddexon-solidity-c4a43c64c2878dea08dd2366ae6954173c4372cc.tar.gz
dexon-solidity-c4a43c64c2878dea08dd2366ae6954173c4372cc.tar.zst
dexon-solidity-c4a43c64c2878dea08dd2366ae6954173c4372cc.zip
Global functions.
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/AST.h b/AST.h
index 89f268b3..3fb251d9 100644
--- a/AST.h
+++ b/AST.h
@@ -233,23 +233,20 @@ private:
};
/**
- * Pseudo AST node that is used as declaration for "this", "msg", "tx" and "block" when the
- * identifier is encountered. Will never have a valid location in the source code.
+ * Pseudo AST node that is used as declaration for "this", "msg", "tx", "block" and the global
+ * functions when such an identifier is encountered. Will never have a valid location in the source code.
*/
class MagicVariableDeclaration: public Declaration
{
public:
- enum class VariableKind { THIS, MSG, TX, BLOCK };
- MagicVariableDeclaration(VariableKind _kind, ASTString const& _name, std::shared_ptr<Type const> const& _type):
- Declaration(Location(), std::make_shared<ASTString>(_name)), m_kind(_kind), m_type(_type) {}
+ MagicVariableDeclaration(ASTString const& _name, std::shared_ptr<Type const> const& _type):
+ Declaration(Location(), std::make_shared<ASTString>(_name)), m_type(_type) {}
virtual void accept(ASTVisitor&) override { BOOST_THROW_EXCEPTION(InternalCompilerError()
<< errinfo_comment("MagicVariableDeclaration used inside real AST.")); }
std::shared_ptr<Type const> const& getType() const { return m_type; }
- VariableKind getKind() const { return m_kind; }
private:
- VariableKind m_kind;
std::shared_ptr<Type const> m_type;
};