You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hovering over a for loop variable does not show its type #4627
Ah, these DeclaredIdentifier's ... 🥲
Recently discovered that several rules in DCM were not covering them at all. Honestly, I'm really surprised it's a separate type of node (and not a variable declaration or it's variance).
I don't know all the details, but there seem to be some differences between the classes (for ex. VariableDeclaration has things like an initializer and is documented as always being a child of VariableDeclarationList, so it doesn't have keyword because that's on the list).
I don't know if something changed here recently though, I feel like I've seen a few issues related to this recently (such as the one you linked above - which had a similar fix) - although for loops are definitely not new!
Activity
incendial commentedon Jul 4, 2023
Feels like it's related to #4626
DanTup commentedon Jul 5, 2023
I suspect same cause, but different code. Opened a fix for this one at https://dart-review.googlesource.com/c/sdk/+/312441
incendial commentedon Jul 5, 2023
Ah, these
DeclaredIdentifier's ... 🥲Recently discovered that several rules in DCM were not covering them at all. Honestly, I'm really surprised it's a separate type of node (and not a variable declaration or it's variance).
DanTup commentedon Jul 5, 2023
I don't know all the details, but there seem to be some differences between the classes (for ex.
VariableDeclarationhas things like an initializer and is documented as always being a child ofVariableDeclarationList, so it doesn't havekeywordbecause that's on the list).I don't know if something changed here recently though, I feel like I've seen a few issues related to this recently (such as the one you linked above - which had a similar fix) - although for loops are definitely not new!
[analysis_server] Handle hovers for identifiers declared in for loops
DanTup commentedon Jul 5, 2023
This is fixed by dart-lang/sdk@28ea45c. It's in the server so will show up in a future SDK release.