Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

cbracken
Copy link
Member

No description provided.

@cbracken cbracken requested a review from yjbanov May 21, 2020 07:45
@auto-assign auto-assign bot requested a review from gaaclarke May 21, 2020 07:46
@@ -269,7 +269,7 @@ void _invoke(void callback(), Zone zone) {
}

/// Invokes [callback] inside the given [zone] passing it [arg].
void _invoke1<A>(void callback(A a), Zone zone, A arg) {
void _invoke1<A>(void callback(A a)/*?*/, Zone/*!*/ zone, A arg) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on whether we should mark the callback params one way or another? Not entirely sure I trust the migration tool's judgement on the _invoke* calls.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I think we should. These are basically anonymous typedefs, and I would definitely annotate a typedef.

@@ -65,11 +65,11 @@ String _localeClosure() {

@pragma('vm:entry-point')
// ignore: unused_element
_LocaleClosure _getLocaleClosure() => _localeClosure;
_LocaleClosure/*?*/ _getLocaleClosure() => _localeClosure;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is safe to be non-null. _localeClosure is just a tear-off of a top-level function.


@pragma('vm:entry-point')
// ignore: unused_element
void _updateLocales(List<String> locales) {
void _updateLocales(List<String/*!*/>/*!*/ locales) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elzar approves

@yjbanov yjbanov merged commit 90eb489 into flutter:master Jun 2, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 2, 2020
@cbracken cbracken deleted the nnbd-hooks branch June 24, 2020 04:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants