1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

better problem reporting when DeclarationWrapper.createASTNodes fails

This commit is contained in:
Andrew Niefer 2004-06-18 19:51:20 +00:00
parent 79f7c5e3ae
commit 57bc1229ab

View file

@ -1165,8 +1165,19 @@ public abstract class Parser extends ExpressionParser implements IParser
}
catch (ASTSemanticException e)
{
if( e.getProblem() == null )
{
IProblem p = problemFactory.createProblem( IProblem.SYNTAX_ERROR,
sdw.getStartingOffset(),
lastToken != null ? lastToken.getEndOffset() : 0,
sdw.getStartingLine(),
scanner.getCurrentFilename(),
EMPTY_STRING, false, true );
throwBacktrack( p );
} else {
throwBacktrack(e.getProblem());
}
}
catch( Exception e )
{
logException( "simpleDecl", e ); //$NON-NLS-1$