Index: pkg/compiler/lib/src/patch_parser.dart |
diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart |
index 6957cecf4280d219768b4d5dac82dbeb65d9b4cb..ac4b753d8b81693bf3344c8609d2c8961694f534 100644 |
--- a/pkg/compiler/lib/src/patch_parser.dart |
+++ b/pkg/compiler/lib/src/patch_parser.dart |
@@ -125,10 +125,12 @@ import 'dart2jslib.dart' |
Script; |
import 'elements/elements.dart'; |
import 'elements/modelx.dart' |
- show LibraryElementX, |
- MetadataAnnotationX, |
+ show BaseFunctionElementX, |
ClassElementX, |
- BaseFunctionElementX; |
+ GetterElementX, |
+ LibraryElementX, |
+ MetadataAnnotationX, |
+ SetterElementX; |
import 'helpers/helpers.dart'; // Included for debug helpers. |
import 'library_loader.dart' show LibraryLoader; |
import 'scanner/scannerlib.dart'; // Scanner, Parsers, Listeners |
@@ -484,7 +486,8 @@ void tryPatchGetter(DiagnosticListener listener, |
MessageKind.PATCH_POINT_TO_GETTER, {'getterName': patch.name}); |
return; |
} |
- patchFunction(listener, originField.getter, patch); |
+ GetterElementX getter = originField.getter; |
+ patchFunction(listener, getter, patch); |
} |
void tryPatchSetter(DiagnosticListener listener, |
@@ -507,7 +510,8 @@ void tryPatchSetter(DiagnosticListener listener, |
MessageKind.PATCH_POINT_TO_SETTER, {'setterName': patch.name}); |
return; |
} |
- patchFunction(listener, originField.setter, patch); |
+ SetterElementX setter = originField.setter; |
+ patchFunction(listener, setter, patch); |
} |
void tryPatchConstructor(DiagnosticListener listener, |