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

WIP: Migrate to nnbd #120

Merged
merged 13 commits into from Mar 1, 2021
Merged

WIP: Migrate to nnbd #120

merged 13 commits into from Mar 1, 2021

Conversation

passsy
Copy link
Collaborator

@passsy passsy commented Jan 3, 2021

Work in progress, open for discussion.


/// Returns an original collection containing all the non-null elements,
/// throwing an [StateError] if there are any null elements.
void requireNoNulls() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removal is fine, as this is now covered by the type system

@codecov
Copy link

codecov bot commented Jan 3, 2021

Codecov Report

Merging #120 (2399796) into master (d8fb660) will decrease coverage by 0.14%.
The diff coverage is 91.78%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   96.31%   96.16%   -0.15%     
==========================================
  Files          10       10              
  Lines         786      652     -134     
==========================================
- Hits          757      627     -130     
+ Misses         29       25       -4     
Impacted Files Coverage Δ
lib/src/list.dart 80.48% <20.00%> (-1.34%) ⬇️
lib/src/string.dart 85.96% <66.66%> (+4.29%) ⬆️
lib/src/comparable.dart 100.00% <100.00%> (ø)
lib/src/iterable.dart 99.54% <100.00%> (+0.14%) ⬆️
lib/src/iterable_num.dart 100.00% <100.00%> (ø)
lib/src/num.dart 100.00% <100.00%> (ø)
lib/src/range.dart 100.00% <100.00%> (ø)
lib/src/sorted_list.dart 95.89% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8fb660...2399796. Read the comment docs.

@TimWhiting
Copy link

TimWhiting commented Jan 14, 2021

@leisim
@passsy
This migration looks good to me, the changes make sense, any idea when you will merge / publish it?

@passsy passsy merged commit 8ada9ca into master Mar 1, 2021
@passsy passsy deleted the nnbd branch March 1, 2021 11:54
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.

None yet

3 participants