Update of /cvsroot/cpptool/rfta/src/rfta
In directory sc8-pr-cvs1:/tmp/cvs-serv1852/src/rfta
Modified Files:
IdentifierResolver.cpp
Log Message:
-- preparations for global identifier resolver (global do not work yet)
Index: IdentifierResolver.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rfta/IdentifierResolver.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** IdentifierResolver.cpp 21 Dec 2002 14:39:53 -0000 1.11
--- IdentifierResolver.cpp 6 Sep 2003 21:53:16 -0000 1.12
***************
*** 28,37 ****
IdentifierResolver::visitConditionStatement( const ASTNodePtr &node )
{
! context_.enterNewLocalVariableScope();
visitCondition( node );
visitSubStatements( node );
! context_.exitLocalVariableScope();
}
--- 28,37 ----
IdentifierResolver::visitConditionStatement( const ASTNodePtr &node )
{
! context_.enterUnnamedSubScope();
visitCondition( node );
visitSubStatements( node );
! context_.leaveUnnamedSubScope();
}
***************
*** 40,46 ****
IdentifierResolver::visitSubStatement( const ASTNodePtr &subStatementNode )
{
! context_.enterNewLocalVariableScope();
visitNode( subStatementNode );
! context_.exitLocalVariableScope();
}
--- 40,46 ----
IdentifierResolver::visitSubStatement( const ASTNodePtr &subStatementNode )
{
! context_.enterUnnamedSubScope();
visitNode( subStatementNode );
! context_.leaveUnnamedSubScope();
}
***************
*** 49,53 ****
IdentifierResolver::visitForStatement( const ASTNodePtr &node )
{
! context_.enterNewLocalVariableScope();
ASTNodePtr iterationExpression = node->getProperty(ASTNodeProperties::iterationProperty);
--- 49,53 ----
IdentifierResolver::visitForStatement( const ASTNodePtr &node )
{
! context_.enterUnnamedSubScope();
ASTNodePtr iterationExpression = node->getProperty(ASTNodeProperties::iterationProperty);
***************
*** 55,59 ****
visitSubStatements( node );
! context_.exitLocalVariableScope();
}
--- 55,59 ----
visitSubStatements( node );
! context_.leaveUnnamedSubScope();
}
***************
*** 62,68 ****
IdentifierResolver::visitCompoundStatement( const ASTNodePtr &node )
{
! context_.enterNewLocalVariableScope();
node->visitChildNodes( *this );
! context_.exitLocalVariableScope();
}
--- 62,68 ----
IdentifierResolver::visitCompoundStatement( const ASTNodePtr &node )
{
! context_.enterUnnamedSubScope();
node->visitChildNodes( *this );
! context_.leaveUnnamedSubScope();
}
|