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

Fixed compile error in CCompletionProcessor

This commit is contained in:
John Camelon 2003-12-09 16:41:47 +00:00
parent b363b30e27
commit 7742dab0b8

View file

@ -28,6 +28,7 @@ import org.eclipse.cdt.core.parser.ParserFactory;
import org.eclipse.cdt.core.parser.ParserFactoryException;
import org.eclipse.cdt.core.parser.ParserLanguage;
import org.eclipse.cdt.core.parser.ParserMode;
import org.eclipse.cdt.core.parser.ParserNotImplementedException;
import org.eclipse.cdt.core.parser.ParserUtil;
import org.eclipse.cdt.core.parser.ScannerInfo;
import org.eclipse.cdt.core.parser.ast.ASTClassKind;
@ -175,7 +176,13 @@ public class CompletionEngine implements RelevanceConstants{
}
if(parser != null){
IASTCompletionNode result = parser.parse(completionOffset);
IASTCompletionNode result = null;
try {
result = parser.parse(completionOffset);
} catch (ParserNotImplementedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return result;
} else {
return null;