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:
parent
cd0179f1f5
commit
1cc6bcf4d1
1 changed files with 6 additions and 4 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue