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;
|
||||
|
||||
// generate structure
|
||||
newElements = null;
|
||||
newElements = this.parse();
|
||||
Map mapping = this.parse();
|
||||
|
||||
// this is temporary until the New Model Builder is implemented
|
||||
if(newElements == null)
|
||||
if(mapping == null) {
|
||||
getNewElements(newElements, this);
|
||||
} else {
|
||||
newElements.putAll(mapping);
|
||||
}
|
||||
///////////////////////////////////////////////////////////////
|
||||
|
||||
if (isWorkingCopy()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue