sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
If you have the following code, in both inner `if` there is a `Join if statement` but when it does so, the case statements are broken. ```dart if (x case...
Given this code: ```dart import "dart:async" as x; main() { var a = new x.Future(); } ``` If you send a hover request for the `x` at the bottom you...
### Issue description As the title says the analysis of the `discarded_futures` and `unawaited_futures` does not work for tearoffs used as arguments. Futhermore, in closures, the reporting of issues is...
Fixes "Join if statement" assist for if-cases. Fixes #56715 --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Hello! This is similar to https://github.com/dart-lang/sdk/issues/56518, but for another core IDE functionality: Renaming. I am worried that the current macro proposal fails to solve the renaming issue. One way code-generators...
I'd like to request a new kind of "Wrap with Widget" assist. This would probably need to check for the parent to see if it is a `Flex` but since...
Repro: ```dart import 'dart:async'; void main() { var controller = StreamController(); var controller2 = StreamController(); controller2.stream.listen((v) => controller.add(v)); controller2.add(42); controller.close(); controller2.add(42); } ``` This code throws an error: ```console Connecting...
 when I comment out `hide` user  I get the "update import" option, but I think I should also get it when `hide User` is there.
It is unusual for a method to have thousands of indexing expression off the same list, but when it does, compilation can be very slow. The root cause is that...
Using `==` on two ints I get code like this: ``` 754839 v11