sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
*@ph55 commented on Jun 16, 2020, 1:18 PM UTC:* Feature request / improvement. Classes missing some inspections for * Unused class itself * Unused public properties * Unused public methods...
The followinng code produces an error in CFE but no issues in analyzer ```dart class V1 { int m() => 42; } class V2 { String get m => "42";...
Via https://github.com/dart-lang/sdk/issues/41793#issuecomment-1387269582 I found and checked out https://github.com/kodecocodes/rwf-materials.git and opened the entire directory (after running `flutter pub get` 500+ times --- I don't know if there's a helper command but...
Saving `analysis_options` restarts the analysis server completely making it hard to lint analysis options in general (shows stale issues on save), but also consumes resources. You can repro this when...
Hey! Just upgraded to Dart 3.0.0-417.4.beta and now see some strange reports for code inside the documentation comments https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/lib/src/dart/ast/ast.dart#L5528 is it supposed to be this way?
Hi to the team. Today I was writing a Flutter FFI library and it hit me: What if there was a way to annotate a class as holding native resources...
`a` is used here: ```dart main() { final a = foo(null); a!; } foo(x) => x; ``` ``` $ dart analyze ~/play1/bug1c8i.dart Analyzing bug1c8i.dart... 0.6s warning • bug1c8i.dart:2:9 • The...
Consider the following program: library dart.async; part 'dart:async/future.dart'; main() {} This program should be rejected, since `dart:async/future.dart` is not the URI of any file that can be validly used by...
All tools restrict the conditions to `dart.library.*`, but analyzer ignores them completely. It would be nice to get a hint when there is a typo.
See for example #35968, where it is not at all obvious from the stacktrace that the summary is empty.