diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-13 07:17:25 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-19 21:56:40 +0800 |
commit | ed592d6ccb9a8a088dc8153baae78f771304a257 (patch) | |
tree | 610837786dbcaacd99d4c65a0884f6c4cfff0f75 /libsolidity/ast/AST.h | |
parent | a9bddf71aaca7fb6e00292b788479a465b867faf (diff) | |
download | dexon-solidity-ed592d6ccb9a8a088dc8153baae78f771304a257.tar.gz dexon-solidity-ed592d6ccb9a8a088dc8153baae78f771304a257.tar.zst dexon-solidity-ed592d6ccb9a8a088dc8153baae78f771304a257.zip |
Add option to recurse referencedSourceUnits
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index e2117613..2522867b 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -136,8 +136,8 @@ public: std::vector<ASTPointer<ASTNode>> nodes() const { return m_nodes; } - /// @returns a vector of referenced SourceUnits. - std::vector<SourceUnit const*> referencedSourceUnits() const; + /// @returns a set of referenced SourceUnits. Recursively if @a _recurse is true. + std::set<SourceUnit const*> referencedSourceUnits(bool _recurse = false) const; private: std::vector<ASTPointer<ASTNode>> m_nodes; |