Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Fix doc comment references among other new lints #253

Merged
merged 6 commits into from
Oct 19, 2022
Merged

Conversation

kevmoo
Copy link
Contributor

@kevmoo kevmoo commented Oct 18, 2022

Bump min SDK to 2.18

@@ -231,12 +233,12 @@ void mergeSort<E>(List<E> elements,
var secondLength = end - middle;
// secondLength is always the same as firstLength, or one greater.
var scratchSpace = List<E>.filled(secondLength, elements[start]);
E Function(E) id = identity;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a fun one!

@@ -17,7 +17,7 @@ class CombinedIterableView<T> extends IterableBase<T> {
/// The iterables that this combines.
final Iterable<Iterable<T>> _iterables;

/// Creates a combined view of [iterables].
/// Creates a combined view of [_iterables].
Copy link
Contributor Author

Choose a reason for hiding this comment

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

type is not public anyway, but the lint flags this reference, for obvious reasons

lib/src/algorithms.dart Outdated Show resolved Hide resolved
lib/src/iterable_extensions.dart Outdated Show resolved Hide resolved
test/functions_test.dart Show resolved Hide resolved
kevmoo and others added 3 commits October 18, 2022 15:30
Co-authored-by: Nate Bosch <nbosch@google.com>
Co-authored-by: Nate Bosch <nbosch@google.com>
@kevmoo
Copy link
Contributor Author

kevmoo commented Oct 18, 2022

PTAL @natebosch

lib/src/algorithms.dart Outdated Show resolved Hide resolved
kevmoo and others added 2 commits October 18, 2022 17:54
Co-authored-by: Nate Bosch <nbosch@google.com>
@kevmoo
Copy link
Contributor Author

kevmoo commented Oct 19, 2022

@natebosch – PTAL 😄

@@ -169,7 +164,7 @@ bool boolFunc(dynamic x) => true;
Iterable<dynamic> expandFunc(dynamic x) => [x];
dynamic foldFunc(dynamic previous, dynamic next) => previous;
int compareFunc(dynamic x, dynamic y) => 0;
var val = 10;
int val = 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

why was this change necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Type instance variables lint.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah. I don't think we should be turning that one on.

@kevmoo kevmoo merged commit efd709f into master Oct 19, 2022
@kevmoo kevmoo deleted the fix_doc_comments branch October 19, 2022 01:36
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants