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

Correct bug 36624

The old parser was failing.
This commit is contained in:
Alain Magloire 2003-04-17 12:59:26 +00:00
parent cd0179f1f5
commit 1cc6bcf4d1

View file

@ -302,12 +302,14 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
TranslationUnitInfo unitInfo = (TranslationUnitInfo) info; TranslationUnitInfo unitInfo = (TranslationUnitInfo) info;
// generate structure // generate structure
newElements = null; Map mapping = this.parse();
newElements = this.parse();
// this is temporary until the New Model Builder is implemented // this is temporary until the New Model Builder is implemented
if(newElements == null) if(mapping == null) {
getNewElements(newElements, this); getNewElements(newElements, this);
} else {
newElements.putAll(mapping);
}
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
if (isWorkingCopy()) { if (isWorkingCopy()) {