aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST_accept.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-11-24 06:57:17 +0800
committerchriseth <c@ethdev.com>2015-11-26 22:37:55 +0800
commitb47d5932528357939ee29758a8b8027c90bdb1e5 (patch)
treea32526db014b5a654e193660e883e97ab437aa95 /libsolidity/ast/AST_accept.h
parent86495dfc57dde9b825ffd8c219ea809446e978f9 (diff)
downloaddexon-solidity-b47d5932528357939ee29758a8b8027c90bdb1e5.tar.gz
dexon-solidity-b47d5932528357939ee29758a8b8027c90bdb1e5.tar.zst
dexon-solidity-b47d5932528357939ee29758a8b8027c90bdb1e5.zip
Do not store elements of a contract by AST node type.
Diffstat (limited to 'libsolidity/ast/AST_accept.h')
-rw-r--r--libsolidity/ast/AST_accept.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/libsolidity/ast/AST_accept.h b/libsolidity/ast/AST_accept.h
index 99d1bf6a..f65595b8 100644
--- a/libsolidity/ast/AST_accept.h
+++ b/libsolidity/ast/AST_accept.h
@@ -62,12 +62,7 @@ void ContractDefinition::accept(ASTVisitor& _visitor)
if (_visitor.visit(*this))
{
listAccept(m_baseContracts, _visitor);
- listAccept(m_definedStructs, _visitor);
- listAccept(m_definedEnums, _visitor);
- listAccept(m_stateVariables, _visitor);
- listAccept(m_events, _visitor);
- listAccept(m_functionModifiers, _visitor);
- listAccept(m_definedFunctions, _visitor);
+ listAccept(m_subNodes, _visitor);
}
_visitor.endVisit(*this);
}
@@ -77,12 +72,7 @@ void ContractDefinition::accept(ASTConstVisitor& _visitor) const
if (_visitor.visit(*this))
{
listAccept(m_baseContracts, _visitor);
- listAccept(m_definedStructs, _visitor);
- listAccept(m_definedEnums, _visitor);
- listAccept(m_stateVariables, _visitor);
- listAccept(m_events, _visitor);
- listAccept(m_functionModifiers, _visitor);
- listAccept(m_definedFunctions, _visitor);
+ listAccept(m_subNodes, _visitor);
}
_visitor.endVisit(*this);
}