sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
I've upgraded flutter to 3.38.1 and now I have a many deprecation warnings for RegExp. `RegExp is deprecated and shouldn't be used. This class will become 'final' in a future...
dart->flutter roller failed once https://github.com/flutter/flutter/pull/179502, then succeeded on the next roll seemingly without any actual fixes landing. When troubleshooting this locally, I saw reported analyzer finding ``` /p/f/f1/flutter/packages/flutter $ ~/p/f/f1/flutter/bin/flutter...
The analyzer accepts the following code, but the CFE rejects it: ```dart test(Function f) { f.call = 0; } ``` The CFE is correct in rejecting the code; there is...
Cf. https://github.com/dart-lang/language/pull/1616. The analyzer should now report an error for the following program: ```dart void foo(X x) {} void main() { var f = foo; // Create a function object...
Dart does not infer the generic type of a callable class from the context, even when the type is unambiguous. For example: ```dart class Validator { String? call(T? value) =>...
Analyzer doesn't report the following error (CFE does) ```dart class C { int operator *({required int other}) => 42; // ^^^^^^^^^^^^^^^^^^ // [analyzer] unspecified // [cfe] unspecified } main() {...
The `unused_field` lint and its variants are very useful. But they have a flaw: They work only for private members. Consider: ```dart class _A { int unused; } ``` Where...
It seems dart2js fine granular splitting of code for deferred loading will not ensure that a `await deferred.loadLibrary()` is actually loading code for that library. Here's a reproduction ```dart //...
This opens up the possibility to share arbitrary objects. Example: ```dart import 'package:dart_internal/isolate_group.dart' show IsolateGroup; import 'dart:isolate'; @pragma('vm:shared') List Function()? getList; void main(List args) { final list = []; getList...
Using the new Analyzer plugins, I found a scenario where `// ignore` doesn't work This appears to be tied to the fact that I have multiple `analysis_options.yaml` in my project....