diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-02-06 03:06:07 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-02-06 03:06:07 +0000 |
commit | c991b73b95734fb306badeafb5f387623c7fb790 (patch) | |
tree | b26b5acf84d3097ada23e0680a0388259304866e /src/parser/symbol_table.h | |
parent | 7554158b42c89fcadedd019c360df30e152ef85e (diff) |
Preliminary support for types in parser
Diffstat (limited to 'src/parser/symbol_table.h')
-rw-r--r-- | src/parser/symbol_table.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/parser/symbol_table.h b/src/parser/symbol_table.h index e4aec930e..d790a1c84 100644 --- a/src/parser/symbol_table.h +++ b/src/parser/symbol_table.h @@ -78,14 +78,12 @@ public: /** * Returns the last binding expression of the name. + * Requires the name to have a binding in the table. */ ObjectType getObject(const std::string name) throw () { - ObjectType result; table_iterator find = d_nameBindings.find(name); - if(find != d_nameBindings.end()) { - result = find->second.top(); - } - return result; + Assert(find != d_nameBindings.end()); + return find->second.top(); } /** |