Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Unified Diff: pkg/analyzer/lib/src/task/inputs.dart

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/task/inputs.dart
diff --git a/pkg/analyzer/lib/src/task/inputs.dart b/pkg/analyzer/lib/src/task/inputs.dart
index 7553e15453bce7b8bc59342e90bca33fd46c8e1d..cb497b6b194a8bb64eb05ed2528de00e7d136ebb 100644
--- a/pkg/analyzer/lib/src/task/inputs.dart
+++ b/pkg/analyzer/lib/src/task/inputs.dart
@@ -39,7 +39,7 @@ class ConstantTaskInput<V> extends TaskInputImpl<V> {
* A [TaskInputBuilder] used to build an input based on a [ConstantTaskInput].
*/
class ConstantTaskInputBuilder<V> implements TaskInputBuilder<V> {
- final ConstantTaskInput input;
+ final ConstantTaskInput<V> input;
ConstantTaskInputBuilder(this.input);
@@ -159,7 +159,7 @@ class ListToFlattenListTaskInputBuilder<B, E>
@override
void _addResultElement(B baseElement, E resultElement) {
- _resultValue.addAll(resultElement as Iterable);
+ _resultValue.addAll(resultElement as Iterable<E>);
}
@override
@@ -418,6 +418,8 @@ class MapToFlattenListTaskInputBuilder<K, V, E>
class ObjectToListTaskInput<E> extends TaskInputImpl<List<E>>
with ListTaskInputMixin<E>
implements ListTaskInput<E> {
+ // TODO(brianwilkerson) Add another type parameter to this class that can be
+ // used as the type of the keys of [mapper].
/**
* The input used to compute the value to be mapped.
*/

Powered by Google App Engine
This is Rietveld 408576698