diff options
author | Marius Kintel <marius@kintel.net> | 2013-04-26 22:32:19 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-04-26 22:32:19 (GMT) |
commit | ba20c0e800566c649a8e48937a71c849e5aba96a (patch) | |
tree | ebffea8366757b84d2bf422c781d1fb707a4e36a /src/localscope.cc | |
parent | 81266c34a121108e876577cf7dc7c4cf466c15a1 (diff) |
Modified parse to allow overloading of variables in local blocks. Also did some minor cleanups while at it. Test cases missing
Diffstat (limited to 'src/localscope.cc')
-rw-r--r-- | src/localscope.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localscope.cc b/src/localscope.cc index c4001f5..eecff91 100644 --- a/src/localscope.cc +++ b/src/localscope.cc @@ -19,6 +19,12 @@ LocalScope::~LocalScope() BOOST_FOREACH (AbstractModuleContainer::value_type &m, modules) delete m.second; } +void LocalScope::addChild(ModuleInstantiation *ch) +{ + assert(ch != NULL); + this->children.push_back(ch); +} + std::string LocalScope::dump(const std::string &indent) const { std::stringstream dump; |