aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST_accept.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-11-30 23:06:44 +0800
committerchriseth <c@ethdev.com>2015-11-30 23:06:44 +0800
commite9c7837c154482a72c8519fbdc9376693ce9a1d5 (patch)
tree1985b57b4e221fe4e4b5cc14a5049b8c0c46ce6c /libsolidity/ast/AST_accept.h
parenta8736b7b271dac117f15164cf4d2dfabcdd2c6fd (diff)
parentf9e52c9db1ef23000f5721a462aba3fa8d681749 (diff)
downloaddexon-solidity-e9c7837c154482a72c8519fbdc9376693ce9a1d5.tar.gz
dexon-solidity-e9c7837c154482a72c8519fbdc9376693ce9a1d5.tar.zst
dexon-solidity-e9c7837c154482a72c8519fbdc9376693ce9a1d5.zip
Merge pull request #251 from chriseth/bind2
Bind library functions to types.
Diffstat (limited to 'libsolidity/ast/AST_accept.h')
-rw-r--r--libsolidity/ast/AST_accept.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libsolidity/ast/AST_accept.h b/libsolidity/ast/AST_accept.h
index f65595b8..61370c55 100644
--- a/libsolidity/ast/AST_accept.h
+++ b/libsolidity/ast/AST_accept.h
@@ -123,6 +123,28 @@ void EnumValue::accept(ASTConstVisitor& _visitor) const
_visitor.endVisit(*this);
}
+void UsingForDirective::accept(ASTVisitor& _visitor)
+{
+ if (_visitor.visit(*this))
+ {
+ m_libraryName->accept(_visitor);
+ if (m_typeName)
+ m_typeName->accept(_visitor);
+ }
+ _visitor.endVisit(*this);
+}
+
+void UsingForDirective::accept(ASTConstVisitor& _visitor) const
+{
+ if (_visitor.visit(*this))
+ {
+ m_libraryName->accept(_visitor);
+ if (m_typeName)
+ m_typeName->accept(_visitor);
+ }
+ _visitor.endVisit(*this);
+}
+
void StructDefinition::accept(ASTVisitor& _visitor)
{
if (_visitor.visit(*this))