Skip to content
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

Migrate most of debugging/metadata and loaders directories to null safety #1659

Merged
merged 11 commits into from
Jun 22, 2022

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Jun 17, 2022

Migrate most of debugging/metadata and loaders directories to null safety.

Towards: #1327

@annagrin annagrin requested review from elliette and grouma June 18, 2022 00:22
return e.value;
}
}
_logger.warning('No module for server path $serverPath');
Copy link
Member

Choose a reason for hiding this comment

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

Should we be throwing or returning a null value here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added throwing instead, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, throwing breaks our flow (some non-module paths are passed to those API), changed to allowing null instead.

dwds/lib/src/loaders/frontend_server_require.dart Outdated Show resolved Hide resolved
@annagrin annagrin merged commit 5efb563 into dart-lang:master Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants