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

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

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove test again. Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js/nodes.dart b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
index 18139b29fd32709ad4cf4a49af5f6e378f4e878b..b076162bbf99dfe10456cfe7ebbe3c31e50e6d6e 100644
--- a/sdk/lib/_internal/compiler/implementation/js/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
@@ -713,6 +713,8 @@ class PropertyAccess extends Expression {
PropertyAccess(this.receiver, this.selector);
PropertyAccess.field(this.receiver, String fieldName)
: selector = new LiteralString("'$fieldName'");
+ PropertyAccess.indexed(this.receiver, int index)
+ : selector = new LiteralString('$index');
ngeoffray 2012/11/15 08:58:09 Should it be a LiteralInt instead?
karlklose 2012/11/16 13:37:19 i used LiteralNumber.
accept(NodeVisitor visitor) => visitor.visitAccess(this);

Powered by Google App Engine
This is Rietveld 408576698