mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:11:19 +00:00
Eliminate uses of fuzzy arrows in pkg/testing (fix bots).
The analyzer now issues hints on uses of the deprecated behavior in which dynamic is treated as bottom in certain positions. These changes eliminate cases from pkg/testing that were relying on the deprecated behavior. TBR=ahe@google.com BUG= Review-Url: https://codereview.chromium.org/3010803002 .
This commit is contained in:
parent
9bc8e5932a
commit
3124001cc7
|
@ -181,7 +181,8 @@ abstract class ChainContext {
|
|||
} else {
|
||||
future = new Future.value(null);
|
||||
}
|
||||
future = future.then((Result currentResult) {
|
||||
future = future.then((_currentResult) {
|
||||
Result currentResult = _currentResult;
|
||||
if (currentResult != null) {
|
||||
logStepComplete(completed, unexpectedResults.length,
|
||||
descriptions.length, suite, description, lastStepRun);
|
||||
|
|
|
@ -89,7 +89,9 @@ class ExpectationSet {
|
|||
for (Map map in data) {
|
||||
String name;
|
||||
String group;
|
||||
map.forEach((String key, String value) {
|
||||
map.forEach((_key, _value) {
|
||||
String key = _key;
|
||||
String value = _value;
|
||||
switch (key) {
|
||||
case "name":
|
||||
name = value;
|
||||
|
|
|
@ -48,7 +48,8 @@ Future runGuarded(Future f(),
|
|||
ZoneSpecification specification = new ZoneSpecification(print: printWrapper);
|
||||
|
||||
ReceivePort errorPort = new ReceivePort();
|
||||
Future errorFuture = errorPort.listen((List errors) {
|
||||
Future errorFuture = errorPort.listen((_errors) {
|
||||
List errors = _errors;
|
||||
Isolate.current.removeErrorListener(errorPort.sendPort);
|
||||
errorPort.close();
|
||||
var error = errors[0];
|
||||
|
|
Loading…
Reference in a new issue