1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-11 11:05:24 +02:00

Added AST2TemplateTests._testRebindPattern_214447.

This commit is contained in:
Sergey Prigogin 2008-01-07 04:04:05 +00:00
parent 01959bfd25
commit cf2b2ce763
2 changed files with 447 additions and 402 deletions

View file

@ -289,15 +289,15 @@ public class AST2BaseTest extends BaseTestCase {
{ {
shouldVisitNames = true; shouldVisitNames = true;
} }
public List nameList = new ArrayList(); public List<IASTName> nameList = new ArrayList<IASTName>();
public int visit( IASTName name ){ public int visit(IASTName name) {
nameList.add( name ); nameList.add(name);
return PROCESS_CONTINUE; return PROCESS_CONTINUE;
} }
public IASTName getName( int idx ){ public IASTName getName(int idx) {
if( idx < 0 || idx >= nameList.size() ) if (idx < 0 || idx >= nameList.size())
return null; return null;
return (IASTName) nameList.get( idx ); return nameList.get(idx);
} }
public int size() { return nameList.size(); } public int size() { return nameList.size(); }
} }