| Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java
|
| ===================================================================
|
| --- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java (revision 1198)
|
| +++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java (working copy)
|
| @@ -1446,7 +1446,13 @@
|
| if (unit == null) {
|
| return false;
|
| }
|
| - unit.accept(new CompilationUnitStructureBuilder(this, newElements));
|
| + try {
|
| + unit.accept(new CompilationUnitStructureBuilder(this, newElements));
|
| + } catch (Exception exception) {
|
| + DartCore.logInformation("Failed to build the structure for the compilation unit "
|
| + + getCorrespondingResource().getLocation(), exception);
|
| + return false;
|
| + }
|
| //
|
| // Update the time stamp (might be IResource.NULL_STAMP if original does not
|
| // exist).
|
|
|