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

Unified Diff: lib/compiler/implementation/enqueue.dart

Issue 10916002: Change switch to give errors when cases don't follow the newest syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: use .compileType on elements. Created 8 years, 3 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
Index: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index 01c89e456aee25f16d35b08a46c1ba77b5b15660..e4dfc8d7ff32d979c5367fc3c980676b51b5b72e 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -168,14 +168,14 @@ class Enqueuer {
if (member.kind === ElementKind.FIELD) {
universe.instantiatedClassInstanceFields.add(member.name);
if (compiler.enableTypeAssertions) {
- Type type = member.computeType(compiler);
+ DartType type = member.computeType(compiler);
registerIsCheck(type.element);
SourceString helper = compiler.backend.getCheckedModeHelper(type);
if (helper != null) {
Element helperElement = compiler.findHelper(helper);
registerStaticUse(helperElement);
}
- }
+ }
return;
}

Powered by Google App Engine
This is Rietveld 408576698