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

Remove IllegalOperationException.

This commit is contained in:
John Camelon 2005-02-02 18:54:44 +00:00
parent e269c537e6
commit 9801ce2900

View file

@ -471,6 +471,8 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
((ASTNode) p).getLength());
p.setParent(ps);
p.setPropertyInParent(IASTProblemHolder.PROBLEM);
if (statements == Collections.EMPTY_LIST)
statements = new ArrayList(DEFAULT_COMPOUNDSTATEMENT_LIST_SIZE);
statements.add(ps);
if (LA(1).hashCode() == checkToken)
failParseWithErrorHandling();