summaryrefslogtreecommitdiff
path: root/src/localscope.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-04-26 22:32:19 (GMT)
committerMarius Kintel <marius@kintel.net>2013-04-26 22:32:19 (GMT)
commitba20c0e800566c649a8e48937a71c849e5aba96a (patch)
treeebffea8366757b84d2bf422c781d1fb707a4e36a /src/localscope.cc
parent81266c34a121108e876577cf7dc7c4cf466c15a1 (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.cc6
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;
contact: Jan Huwald // Impressum