sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
```dart void foo(int value) { value.isEven; } ``` Here is the resolved AST: ``` CompilationUnitImpl [void foo(int value) {value.isEven;}] FunctionDeclarationImpl [void foo(int value) {value.isEven;}] NamedTypeImpl [void] FunctionExpressionImpl [(int value) {value.isEven;}]...
`pubspec.yaml` supports `resolution: workspace`, which is very useful for monorepos. But analyzer plugins do not appear to recognise this, and attempt to fetch dependencies of a plugin from `pub.dev` instead...
Similar to https://github.com/dart-lang/sdk/issues/57092, I'm proposing we add a way for the `ServerPlugin` to access the whole `ResolvedLibraryResult` and not just the unit. This would allow us to handle the parts...
The dartdoc on `FunctionReference` has this example: ``` /// An expression representing a reference to a function, possibly with type /// arguments applied to it, e.g. the expression `print` in...
From [log](https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8696428485160134257/+/u/test_results/ignored_flaky_test_failure_logs): ``` /=====================================================================================================\ | vm-linux-release-arm-qemu:vm/dart/isolates/fibonacci_call_test broke (Pass -> Crash, expected Pass) | \=====================================================================================================/ --- Command "vm_compile_to_kernel" (took 12.000518s): DART_CONFIGURATION=ReleaseXARM QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf/ /b/s/w/ir/cache/builder/sdk/pkg/vm/tool/gen_kernel --no-aot --platform=out/ReleaseXARM/vm_platform.dill -o /b/s/w/ir/cache/builder/sdk/out/ReleaseXARM/generated_compilations/vm-linux-release-arm-qemu/runtime_tests_vm_dart_isolates_fibonacci_call_test/out.dill /b/s/w/ir/cache/builder/sdk/runtime/tests/vm/dart/isolates/fibonacci_call_test.dart -Dtest_runner.configuration=vm-linux-release-arm-qemu --packages=/b/s/w/ir/cache/builder/sdk/.dart_tool/package_config.json -Ddart.vm.product=false...
I'm running into an issue with `NativeCallable` combined with `NativeFinalizer`s. In some C libraries, one can provide a cleanup function when registering a callback. That cleanup function would get called...
CI for the [Jaspr repository](https://github.com/schultek/jaspr) has been inconsistently experiencing a failure due to being unable to load the compiled analyzer_plugin AOT snapshot when running `dart analyze`. The error is understandable,...
I was tinkering with a new annotation that could enforce annotations and came across the following: ```dart @C([@reflectiveTest]) // ^ non_constant_list_element, const_with_non_constant_argument, missing_identifier, expected_token (']') class C { const C(List...
Private named parameters are being implemented concurrently with declaring parameters and the two features interact. A declaring parameter is allowed to be a private named parameter: ```dart class C({final int...
There's scenarios where developer tooling might want to compile code which contains platform specific core library imports for an unsupported platform (e.g, the web-based Flutter Widget Previewer should be able...