Skip to content

Commit 1427a21

Browse files
danrubelcommit-bot@chromium.org
authored andcommitted
update DecoratedType asserts
Once https://dart-review.googlesource.com/c/sdk/+/107901 lands to implement FunctionTypes in conditional expressions, this CL can land to updates the DecoratedType asserts Change-Id: Ia9924859243e6621dcbbd61ac471bd013069e5a5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107920 Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Dan Rubel <[email protected]>
1 parent f4dc001 commit 1427a21

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎pkg/nnbd_migration/lib/src/decorated_type.dart‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,9 @@ class DecoratedType {
6060
assert(namedParameters[parameter.name].type == parameter.type);
6161
namedParameterCount++;
6262
} else {
63-
if (positionalParameters.length <= positionalParameterCount) {
64-
// TODO(danrubel): Track down why this happens
65-
// and remove this if statement
66-
} else {
67-
assert(positionalParameters[positionalParameterCount].type ==
68-
parameter.type);
69-
positionalParameterCount++;
70-
}
63+
assert(positionalParameters[positionalParameterCount].type ==
64+
parameter.type);
65+
positionalParameterCount++;
7166
}
7267
}
7368
assert(positionalParameters.length == positionalParameterCount);

0 commit comments

Comments
 (0)