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

Unified Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 10916098: Fix dart2dart warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index 16c9b83ed345c3f7f38254341b4459ec31ab8c06..64d0e63f6fdd9e48d27d76ace0433744ae246013 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -33,7 +33,7 @@ class AggregatedTreeElements extends TreeElementMapping {
result : getFirstNotNullResult((e) => e.getType(annotation));
}
- getFirstNotNullResult(f(Element element)) {
+ getFirstNotNullResult(f(TreeElements element)) {
for (final element in treeElements) {
final result = f(element);
if (result !== null) return result;
@@ -176,7 +176,7 @@ class DartBackend extends Backend {
final list = (element as VariableElement).variables;
elementAst = elementAsts.putIfAbsent(
list, () => new VariableListAst(parse(list)));
- elementAst.add(element, treeElements);
+ (elementAst as VariableListAst).add(element, treeElements);
element = list;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698