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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js/nodes.dart

Issue 11536004: Remove all warnings from dart2js and add a test to prevent introduction of new. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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: dart/sdk/lib/_internal/compiler/implementation/js/nodes.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js/nodes.dart b/dart/sdk/lib/_internal/compiler/implementation/js/nodes.dart
index ec1469c9a815ae3635b52702d42fb8f60ee0b52e..f206c0e68d850896c56762ce999b6331b34390dc 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js/nodes.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js/nodes.dart
@@ -149,6 +149,8 @@ abstract class Node {
accept(NodeVisitor visitor);
void visitChildren(NodeVisitor visitor);
+
+ VariableUse asVariableUse() => null;
}
class Program extends Node {
@@ -657,6 +659,8 @@ class VariableUse extends VariableReference {
VariableUse(String name) : super(name);
accept(NodeVisitor visitor) => visitor.visitVariableUse(this);
+
+ VariableUse asVariableUse() => this;
}
class VariableDeclaration extends VariableReference {

Powered by Google App Engine
This is Rietveld 408576698