1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 22:25:25 +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;
}
public List nameList = new ArrayList();
public int visit( IASTName name ){
nameList.add( name );
public List<IASTName> nameList = new ArrayList<IASTName>();
public int visit(IASTName name) {
nameList.add(name);
return PROCESS_CONTINUE;
}
public IASTName getName( int idx ){
if( idx < 0 || idx >= nameList.size() )
public IASTName getName(int idx) {
if (idx < 0 || idx >= nameList.size())
return null;
return (IASTName) nameList.get( idx );
return nameList.get(idx);
}
public int size() { return nameList.size(); }
}