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

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

Issue 48213002: Fix warnings in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update utils.status. Created 7 years, 2 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 | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index 4168c72fa3789a2d3b5b8ff48505b263ff1cc93c..836d99914405130d3f4ed6969d482983c22f1bcd 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -595,14 +595,17 @@ class ReferencedElementCollector extends Visitor {
final newTypedefElementCallback;
final newClassElementCallback;
- ReferencedElementCollector(
- this.compiler,
- Element rootElement, this.treeElements,
- this.newTypedefElementCallback, this.newClassElementCallback)
- : this.rootElement = (rootElement is VariableElement)
- ? (rootElement as VariableElement).variables : rootElement;
-
- visitNode(Node node) { node.visitChildren(this); }
+ ReferencedElementCollector(this.compiler,
+ Element rootElement,
+ this.treeElements,
+ this.newTypedefElementCallback,
+ this.newClassElementCallback)
+ : this.rootElement =
+ rootElement is VariableElement ? rootElement.variables : rootElement;
+
+ visitNode(Node node) {
+ node.visitChildren(this);
+ }
visitTypeAnnotation(TypeAnnotation typeAnnotation) {
// We call [resolveReturnType] to allow having 'void'.
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698