Changeset 570 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/VariableOpe.cpp
- Timestamp:
- May 6, 2008, 8:31:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/VariableOpe.cpp
r564 r570 565 565 ///////////////// 566 566 567 pVar = compiler.GetCompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 567 pVar = compiler.GetCompilingUserProc().GetLocalVars().BackSearch( 568 LexicalAnalyzer::FullNameToSymbol( VarName ), 569 compiler.codeGenerator.lexicalScopes.GetNowLevel() 570 ); 568 571 if( pVar ){ 569 572 goto ok; … … 669 672 //////////////////// 670 673 671 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 674 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( 675 LexicalAnalyzer::FullNameToSymbol( VarName ), 676 compiler.codeGenerator.lexicalScopes.GetNowLevel() 677 ); 672 678 if( pVar ){ 673 679 goto ok; … … 943 949 ///////////////////////// 944 950 945 if( compiler.GetObjectModule().meta.GetGlobalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( name ) ) ){951 if( compiler.GetObjectModule().meta.GetGlobalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( name ), compiler.codeGenerator.lexicalScopes.GetNowLevel() ) ){ 946 952 //2重定義のエラー 947 953 compiler.errorMessenger.Output(15,name,cp);
Note:
See TracChangeset
for help on using the changeset viewer.