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

Unified Diff: dart/tests/language/super_operator_index7_test.dart

Issue 14066019: Change memberName and namedArguments in Invocation to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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: dart/tests/language/super_operator_index7_test.dart
diff --git a/dart/tests/language/super_operator_index7_test.dart b/dart/tests/language/super_operator_index7_test.dart
index fb0b78ae537ac06e11e93a843a7b2c4bd63adc2b..261163ddcc7ee7620a0f755ef52b5c11d734c0b6 100644
--- a/dart/tests/language/super_operator_index7_test.dart
+++ b/dart/tests/language/super_operator_index7_test.dart
@@ -10,10 +10,10 @@ class A {
var indexField = new List(2);
noSuchMethod(Invocation im) {
- if (im.memberName == '[]=') {
+ if (im.memberName == const Symbol('[]=')) {
Expect.equals(2, im.positionalArguments.length);
indexField[im.positionalArguments[0]] = im.positionalArguments[1];
- } else if (im.memberName == '[]') {
+ } else if (im.memberName == const Symbol('[]')) {
Expect.equals(1, im.positionalArguments.length);
return indexField[im.positionalArguments[0]];
} else {
« dart/sdk/lib/core/invocation.dart ('K') | « dart/tests/language/super_operator_index6_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698