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
Would like a way to see the analyzer's inferred type. #472
Comments
"Quick Documentation" in WebStorm/IDEA seems to provide that information |
So that works for variables, but not for methods/accessors. Example:
If you highlight |
+1 Would be very useful, especially when reading through code you haven't written yourself. |
/cc @jwren and @leafpetersen, who've discussed something similar. |
This is something I'd really like us to support better in the IDE - I'm hoping we can spend some time on it next quarter. @eseidel I'm surprised that you don't see a type for
which is using the inferred type. This doesn't work for general expressions, but it should be working for any method calls. This is especially useful for generic methods. With this example: Map<String, String> foo;
var bar = foo.values.map((x) => x.length); Quick Documentation on
which tells me that |
@leafpetersen : what's the current thinking on support like this? |
I talked to @stevemessick about this a bit earlier this year. We're both keen to do something with this, but my guess is that there are a lot of higher priority things in the queue right now. |
Good deal. My thinking too. Thanks! |
I'm constantly fighting errors like:
From things like:
It would help if there was a key combination I could use to see what the inferred type was in each step of my call chain.
dynamic poisons your chained calls, as soon as you hit one, the rest of them end up dynamic, so figuring out which step in the chain ended up dynamic is what I'm trying to do. Maybe this is an analyzer issue?
The text was updated successfully, but these errors were encountered: