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

Unified Diff: dart/tests/language/super_getter_setter_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_getter_setter_test.dart
diff --git a/dart/tests/language/super_getter_setter_test.dart b/dart/tests/language/super_getter_setter_test.dart
index ac50bbb3a222b63a2f989f5b0e9b4d129d44ebca..551a96558bf7733eedb1e1d84aa20bb1b3cba140 100644
--- a/dart/tests/language/super_getter_setter_test.dart
+++ b/dart/tests/language/super_getter_setter_test.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'dart:mirrors';
+
import "package:expect/expect.dart";
class A {
@@ -31,15 +33,16 @@ class B extends A {
operator[]=(index, value) { indexField[index] = value; }
noSuchMethod(Invocation im) {
- if (im.memberName.startsWith('missingSetter')) {
+ String name = MirrorSystem.getName(im.memberName);
+ if (name.startsWith('missingSetter')) {
Expect.isTrue(im.isSetter);
missingSetterField = im.positionalArguments[0];
- } else if (im.memberName.startsWith('missingGetter')) {
+ } else if (name.startsWith('missingGetter')) {
Expect.isTrue(im.isGetter);
return missingGetterField;
- } else if (im.memberName.startsWith('missingAll') && im.isGetter) {
+ } else if (name.startsWith('missingAll') && im.isGetter) {
return missingAllField;
- } else if (im.memberName.startsWith('missingAll') && im.isSetter) {
+ } else if (name.startsWith('missingAll') && im.isSetter) {
missingAllField = im.positionalArguments[0];
} else {
Expect.fail('Should not reach here');

Powered by Google App Engine
This is Rietveld 408576698