aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/DeclarationContainer.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-10 00:45:45 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-13 23:04:03 +0800
commitdc0a25f1cdd0fe8a8de3a8a9a8376fc77e8de213 (patch)
tree039076fc7d9a6fa9762f50d90b8f0ffe75cd358a /libsolidity/analysis/DeclarationContainer.h
parent8a491c77ba9680afdf8c33664e905b978152b095 (diff)
downloaddexon-solidity-dc0a25f1cdd0fe8a8de3a8a9a8376fc77e8de213.tar.gz
dexon-solidity-dc0a25f1cdd0fe8a8de3a8a9a8376fc77e8de213.tar.zst
dexon-solidity-dc0a25f1cdd0fe8a8de3a8a9a8376fc77e8de213.zip
Minor changes.
Diffstat (limited to 'libsolidity/analysis/DeclarationContainer.h')
-rw-r--r--libsolidity/analysis/DeclarationContainer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsolidity/analysis/DeclarationContainer.h b/libsolidity/analysis/DeclarationContainer.h
index 94bbe129..f9b1bda4 100644
--- a/libsolidity/analysis/DeclarationContainer.h
+++ b/libsolidity/analysis/DeclarationContainer.h
@@ -59,15 +59,14 @@ public:
Declaration const* conflictingDeclaration(Declaration const& _declaration, ASTString const* _name = nullptr) const;
/// @returns existing declaration names similar to @a _name.
+ /// Searches this and all parent containers.
std::vector<ASTString> similarNames(ASTString const& _name) const;
-
private:
ASTNode const* m_enclosingNode;
DeclarationContainer const* m_enclosingContainer;
std::map<ASTString, std::vector<Declaration const*>> m_declarations;
std::map<ASTString, std::vector<Declaration const*>> m_invisibleDeclarations;
-
};
}