Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: pkg/compiler/lib/src/patch_parser.dart

Issue 1172693003: Move computeType to TypedElement and TypeDeclarationElement. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/resolution/class_members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/resolution/class_members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698