[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/codeimport
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Aug 6 00:32:48 UTC 2006
SVN commit 570175 by okellogg:
don't choke on the NYI discriminant handling
M +7 -1 adaimport.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codeimport/adaimport.cpp #570174:570175
@@ -147,7 +147,13 @@
if (advance() == "(") {
kdDebug() << "AdaImport::parseFile(" << name << "): "
<< "discriminant handling is not yet implemented" << endl;
- skipStmt(")");
+ skipStmt("end");
+ if (m_source[++m_srcIndex] == "case")
+ m_srcIndex += 2; // skip "case" ";"
+ // we are now positioned on "end"
+ m_srcIndex += 2; // skip "end" "record"
+ // we are now positioned on ";"
+ return true;
}
if (m_source[m_srcIndex] == ";") {
// forward declaration
More information about the umbrello-devel
mailing list