From: <net...@us...> - 2003-09-15 09:19:39
|
Update of /cvsroot/cpptool/rfta/src/rfta In directory sc8-pr-cvs1:/tmp/cvs-serv6600/rfta Modified Files: IdentifierResolverContext.h IdentifierResolverContext.cpp Log Message: -- changed interface for variable declaration Index: IdentifierResolverContext.h =================================================================== RCS file: /cvsroot/cpptool/rfta/src/rfta/IdentifierResolverContext.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** IdentifierResolverContext.h 7 Sep 2003 13:29:39 -0000 1.7 --- IdentifierResolverContext.h 15 Sep 2003 09:19:35 -0000 1.8 *************** *** 8,11 **** --- 8,12 ---- #include "IdentifierResolverStrategy.h" #include "IdentifierScope.h" + #include "IdentifierAttributes.h" #include <boost/utility.hpp> #include <rfta/parser/SourceASTNode.h> *************** *** 53,64 **** void leaveUnnamedSubScope(); ! void declareLocalVariable( const ASTNodePtr &localVariableDeclNode ); void resolveUnqualifiedIdentifier( const ASTNodePtr &identifierNode ); void enterNamedSubScope(std::string name); ! void leaveNamedSubScope(); ! ! void declareClass( const ASTNodePtr &specifierNode); void addScopeLookup(std::string qualifiedName); --- 54,64 ---- void leaveUnnamedSubScope(); ! //void declareLocalVariable( const ASTNodePtr &localVariableDeclNode ); ! void declareIdentifier( const ASTNodePtr &identifierDeclNode, const IdentifierAttributes::type attr ); void resolveUnqualifiedIdentifier( const ASTNodePtr &identifierNode ); void enterNamedSubScope(std::string name); ! void leaveNamedSubScope(); void addScopeLookup(std::string qualifiedName); Index: IdentifierResolverContext.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/rfta/IdentifierResolverContext.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** IdentifierResolverContext.cpp 8 Sep 2003 19:12:07 -0000 1.11 --- IdentifierResolverContext.cpp 15 Sep 2003 09:19:35 -0000 1.12 *************** *** 49,60 **** void ! IdentifierResolverContext::declareLocalVariable( ! const ASTNodePtr &localVariableDeclNode ) { ! const std::string name = getLocalVariableName( localVariableDeclNode ); ! identifierCurrentScope_->registerIdentifier(name, localVariableDeclNode); ! ASTNodePtr variableNameNode = getLocalVariableNameNode( localVariableDeclNode ); ! resolvedIdentifiers_[ variableNameNode ] = localVariableDeclNode; } --- 49,61 ---- void ! IdentifierResolverContext::declareIdentifier( ! const ASTNodePtr &identifierDeclNode, ! const IdentifierAttributes::type attr ) { ! const std::string name = getLocalVariableName( identifierDeclNode ); ! identifierCurrentScope_->registerAttributedIdentifier(name, attr, identifierDeclNode); ! ASTNodePtr variableNameNode = getLocalVariableNameNode( identifierDeclNode ); ! resolvedIdentifiers_[ variableNameNode ] = identifierDeclNode; } *************** *** 150,159 **** it--; } - } - - void - IdentifierResolverContext::declareClass( const ASTNodePtr &specifierNode) - { - //TODO: Implement this... } --- 151,154 ---- |