[DAS] Fixes values suggestion without enum name
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Future<void> assertNoCompletionItem(String label) async {WDYT about this method @da...@tuppeny.com? I couldn't find anything similar but maybe I missed something.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (name == 'values' &&This could just be `return name == ...`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
This could just be `return name == ...`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Future<void> assertNoCompletionItem(String label) async {WDYT about this method @da...@tuppeny.com? I couldn't find anything similar but maybe I missed something.
Looks fair to me, although I think the failure message might be slightly better if you did something like:
```
expect(completions.where((c) => c.label == label), isEmpty);
```
Because I think your current code would fail with "Expected true, got false" whereas using `isEmpty` I think would give something like "Expected empty, but got <toString version of the results>". If the completion items have useful toStrings() (not a guarantee), this might be a slightly more useful message.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Friendly ping @sraw...@google.com. Could you please give me a new review here? Thanks a lot!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
Friendly ping @sraw...@google.com. Could you please give me a new review here? Thanks a lot!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[DAS] Fixes values suggestion without enum name
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |