aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-13 06:15:52 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-19 21:56:40 +0800
commit1b0ef0b785d195ca28aa756047da040b676f5fc9 (patch)
tree2b89a6c71387faedfcf9dd127f1dc1a938d73bfd /libsolidity/ast/AST.h
parent84f8e7a46712f7da46ac15d378f0de0491278363 (diff)
downloaddexon-solidity-1b0ef0b785d195ca28aa756047da040b676f5fc9.tar
dexon-solidity-1b0ef0b785d195ca28aa756047da040b676f5fc9.tar.gz
dexon-solidity-1b0ef0b785d195ca28aa756047da040b676f5fc9.tar.bz2
dexon-solidity-1b0ef0b785d195ca28aa756047da040b676f5fc9.tar.lz
dexon-solidity-1b0ef0b785d195ca28aa756047da040b676f5fc9.tar.xz
dexon-solidity-1b0ef0b785d195ca28aa756047da040b676f5fc9.tar.zst
dexon-solidity-1b0ef0b785d195ca28aa756047da040b676f5fc9.zip
Add sourceUnit() helper to Declaration
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r--libsolidity/ast/AST.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 81ddc754..41785780 100644
--- a/libsolidity/ast/AST.h
+++ b/libsolidity/ast/AST.h
@@ -168,6 +168,9 @@ public:
ASTNode const* scope() const { return m_scope; }
void setScope(ASTNode const* _scope) { m_scope = _scope; }
+ /// @returns the source unit this declaration is present in.
+ SourceUnit const& sourceUnit() const;
+
/// @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;