From: <net...@us...> - 2003-04-14 19:31:32
|
Update of /cvsroot/cpptool/rfta/src/rftaparser In directory sc8-pr-cvs1:/tmp/cvs-serv26454/rfta/src/rftaparser Modified Files: DeclarationParserTest.cpp Log Message: -- additional nodes created by the namespace parser Index: DeclarationParserTest.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/rftaparser/DeclarationParserTest.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DeclarationParserTest.cpp 12 Apr 2003 19:08:40 -0000 1.1 --- DeclarationParserTest.cpp 14 Apr 2003 19:31:28 -0000 1.2 *************** *** 8,12 **** #include "DeclarationParserTest.h" #include <rfta/parser/ASTNodes.h> ! #include "DeclarationParser.h" --- 8,12 ---- #include "DeclarationParserTest.h" #include <rfta/parser/ASTNodes.h> ! #include <rfta/parser/DeclarationParser.h> *************** *** 49,56 **** source, source.length()-1 ); ! RFTA_ASSERT_NODE_HAS( sourceAST->getChildAt(0), ASTNodeTypes::unparsedNamespace, startIndex, endIndex-startIndex ); } --- 49,61 ---- source, source.length()-1 ); ! ASTNodePtr namespaceDecl = sourceAST->getChildAt(0); ! RFTA_ASSERT_NODE_HAS( namespaceDecl, ASTNodeTypes::unparsedNamespace, startIndex, endIndex-startIndex ); + RFTA_ASSERT_NODE_HAS( namespaceDecl->getProperty(ASTNodeProperties::namespaceBodyProperty), + ASTNodeTypes::unparsedSourcePart, + 14, + 3 ); } *************** *** 65,69 **** source.length()-1 ); RFTA_ASSERT_NODE_HAS( sourceAST->getChildAt(0), ! ASTNodeTypes::unparsedNamespace, startIndex, endIndex-startIndex ); --- 70,74 ---- source.length()-1 ); RFTA_ASSERT_NODE_HAS( sourceAST->getChildAt(0), ! ASTNodeTypes::namespaceAlias, startIndex, endIndex-startIndex ); *************** *** 94,101 **** source, source.length()-2 ); ! RFTA_ASSERT_NODE_HAS( sourceAST->getChildAt(0), ASTNodeTypes::usingNamespace, startIndex, ! endIndex-startIndex ); } --- 99,108 ---- source, source.length()-2 ); ! ! ASTNodePtr namespaceDecl = sourceAST->getChildAt(0); ! RFTA_ASSERT_NODE_HAS( namespaceDecl, ASTNodeTypes::usingNamespace, startIndex, ! endIndex-startIndex ); } *************** *** 170,174 **** source.length()-1 ); RFTA_ASSERT_NODE_HAS( sourceAST->getChildAt(0), ! ASTNodeTypes::unparsedSourcePart, startIndex, endIndex-startIndex ); --- 177,181 ---- source.length()-1 ); RFTA_ASSERT_NODE_HAS( sourceAST->getChildAt(0), ! ASTNodeTypes::unparsedfunctionImplementation, startIndex, endIndex-startIndex ); |