Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@MirrorsUsed needs way to retain all instance methods with a certain name #15408

Closed
peter-ahe-google opened this issue Dec 2, 2013 · 2 comments
Assignees
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-mirrors type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@peter-ahe-google
Copy link
Contributor

Consider that you want to test if an object supports a given method but don't want to check for NoSuchMethodError.

In this case you cannot point to a specify instance method (if you could, you could just have used an "is" test).

In the current @­MirrorsUsed this could be:

@MirrorsUsed(instanceMethods: 'foo')
import 'dart:mirrors';

@peter-ahe-google
Copy link
Contributor Author

We discovered this need in pkg/observe/test/path_observer_test.dart.

The package uses reflection to see if an object provides a specialized implementation of noSuchMethod.

@peter-ahe-google peter-ahe-google self-assigned this Dec 2, 2013
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Mar 3, 2018
@matanlurey
Copy link
Contributor

Mirrors is no longer supported in Dart2JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-mirrors type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants