aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-12-02 18:23:45 +0800
committerGitHub <noreply@github.com>2016-12-02 18:23:45 +0800
commit3a01a87afe3468421f31aa5097796dcc88e37e26 (patch)
tree9069fcc823ca4b27b6add0c7278f1086923eb36e /libsolidity/ast/AST.h
parent55a719a79c1ab5b78ea6e1bcb4f27a888494a538 (diff)
parent5098e1eb15678859d1bd5e9172184d6525e03863 (diff)
downloaddexon-solidity-3a01a87afe3468421f31aa5097796dcc88e37e26.tar.gz
dexon-solidity-3a01a87afe3468421f31aa5097796dcc88e37e26.tar.zst
dexon-solidity-3a01a87afe3468421f31aa5097796dcc88e37e26.zip
Merge pull request #1386 from ethereum/metadataOut
Metadata stamp
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r--libsolidity/ast/AST.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 89b96f09..ab4be1ea 100644
--- a/libsolidity/ast/AST.h
+++ b/libsolidity/ast/AST.h
@@ -158,6 +158,10 @@ public:
ASTNode const* scope() const { return m_scope; }
void setScope(ASTNode const* _scope) { m_scope = _scope; }
+ /// @returns the source name this declaration is present in.
+ /// Can be combined with annotation().canonicalName to form a globally unique name.
+ std::string sourceUnitName() const;
+
virtual bool isLValue() const { return false; }
virtual bool isPartOfExternalInterface() const { return false; }