mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Remove IllegalOperationException.
This commit is contained in:
parent
e269c537e6
commit
9801ce2900
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue