sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
Not all instructions at the inlining phase result in the same number of bytes of code. Inlining heuristics should do a better job of predicting code size. In particlar, -...
This is equivalent to #44023 , but for `dart fix` We just assumed it would return non zero when there are fixes to apply in our CI, and later realised...
The Dart Analyzer treats the presence of an `analysis_options.yaml` file as a signal to create an analysis context, a discrete, hermetic environment for analysis. In many cases this is unneeded...
My analyzer keeps getting terminated. It used to do that sometimes but it usually restarts itself and everything's fine. However, today, some hours into the shift, it started getting terminated...
This PR adds a new assist to add/update `hide` to imports when `ambiguous_import` is triggered. Related to https://github.com/dart-lang/sdk/issues/56830. --- - [x] I’ve reviewed the contributor guide and applied the relevant...
## Bug For some reason, this snippet of code works on **every platform** (including `dart2js`), but it just **breaks in DDC**: ```dart OpenSimplex2S(42); ``` The error thrown is: ``` Error:...
### Change Intent ### Use case log is defined in math and developer packages and has a completely different purpose. not the best development experience. let's say you have: ```...
I originally reported this for Dart-Code but Dan asked for the issue to be raised here: https://github.com/Dart-Code/Dart-Code/issues/4550 The following code generates a warning: `cascade_invocations` `Unnecessary duplication of receiver.\nTry using a...
```dart class Point { int? x; int? y; Point({this.x, this.y}); @override toString() { return {"x": x.toString(), "y": y.toString()}.toString(); } // This throws a Stack Overflow void operator []=(Object key, Object...
If you have the following code: ```dart import 'dart:core' show List show int hide String; // Notice the double `show` but no analyzer error void foo(List list, String str) {}...