-
Notifications
You must be signed in to change notification settings - Fork 66
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
Allow (or always) prefix for dart:core elements #362
Comments
I'm not sure if it is feasible for us to handle this automatically. We can't tell if a I think we might need to use |
Thanks! I think an option to keep prefixes for |
I wish I could even hack around But it would be a big ole breaking change to always prefix. E.g. in mockito we have code like We could deal with that by adding an option on |
SGTM.
We could either try to clean all of those up, or we could add an unprefixed import of |
I am encountering code in mockito, generating code which includes a class which implements a method called
List
. I think this is a method defined in proto-generated services. In any case, when mockito generates this code, we get an error for other code which refers to the type,List
:78: List<String> get idFields => List isn't a type.
Boo. The only way to get around this is to import core with a prefix,
import 'dart:core' as core;
or whatever.I think this would make most code, er... very hard to read. But I'd also love this option for mockito 😄 .
The text was updated successfully, but these errors were encountered: