-
Notifications
You must be signed in to change notification settings - Fork 1.7k
NNBD support in Dart API #40176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is some notes from the discussion that @rmacnak-google and @a-siva had Dart_NewListOf - Need to figure out if an equivalent of the fill call is needed here. Should look at removing the following calls
Dart_GetType -needs an additional argument. Would we want to know if a library is opted in or opted out ? Dart_CompileToKernel/Dart_CompiledSourcesToKernel does it need a way to pass parameters to CFE (--enable-experiment). Does the C/Dart messaging API needs a change? |
…embedding API for dynamic, void and Never. Fix crash when create type errors involving Never. Bug: #12478 Bug: #40176 Change-Id: I8cff7042850717d02da36ad935cf0a49ace80c3d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134886 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Ben Konyi <[email protected]>
|
In order to be backwards-compatible existing Dart API should create lists using legacy types (instead of lists of non-nullable types). Issue: #40176 Change-Id: Ie5460b41b2c5e9ecfb124bce1ab43fd466930ea0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135531 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Alexander Markov <[email protected]>
Added support for nullable/non-nullable/legacy types in 06f86bf |
Are we ready to close this? |
Yes, we just need to remove the Dart_Allocate APIs described above. However, that's not directly related to NNBD so I'll close this issue. |
The Dart API needs to be updated to support nullability. For example, it should be possible to choose what kind of nullability you want when calling Dart_GetType.
The text was updated successfully, but these errors were encountered: