| Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileEvent.java
|
| ===================================================================
|
| --- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileEvent.java (revision 7495)
|
| +++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileEvent.java (working copy)
|
| @@ -24,14 +24,16 @@
|
| public class ParseLibraryFileEvent {
|
|
|
| private final Library library;
|
| + private final DartUnit unit;
|
|
|
| /**
|
| * Construct a new instance
|
| *
|
| * @param library the library (not <code>null</code>)
|
| */
|
| - ParseLibraryFileEvent(Library library) {
|
| + ParseLibraryFileEvent(Library library, DartUnit unit) {
|
| this.library = library;
|
| + this.unit = unit;
|
| }
|
|
|
| /**
|
| @@ -61,6 +63,6 @@
|
| * does not exist)
|
| */
|
| public DartUnit getUnit() {
|
| - return library.getCachedUnit(library.getFile());
|
| + return unit;
|
| }
|
| }
|
|
|