From: <net...@us...> - 2003-09-06 21:39:53
|
Update of /cvsroot/cpptool/rfta/src/rftaparser In directory sc8-pr-cvs1:/tmp/cvs-serv31920 Modified Files: NamespaceParser.cpp Log Message: -- fixed namespace body node position/length (now inside) Index: NamespaceParser.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/rftaparser/NamespaceParser.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** NamespaceParser.cpp 30 Apr 2003 19:20:12 -0000 1.4 --- NamespaceParser.cpp 6 Sep 2003 21:39:49 -0000 1.5 *************** *** 103,109 **** { // this is a usual namespace definition: ! // "namespace x { }" ! int bodyStartIndex = getCurrentIndex(); expect('{'); findNextBalanced('{','}'); --- 103,109 ---- { // this is a usual namespace definition: ! // "namespace x { }" expect('{'); + int bodyStartIndex = getCurrentIndex(); findNextBalanced('{','}'); *************** *** 114,118 **** createASTNode( ASTNodeTypes::unparsedDeclarationList, namespaceNode, ! bodyStartIndex, getCurrentIndex() - bodyStartIndex ); context_.addNode(namespaceBody); --- 114,118 ---- createASTNode( ASTNodeTypes::unparsedDeclarationList, namespaceNode, ! bodyStartIndex, getCurrentIndex() - bodyStartIndex - 1 ); context_.addNode(namespaceBody); |