More dart2js strong mode cleanup.

Change-Id: Id54951ebac50e465a31914c78d1ce859e8599229
Reviewed-on: https://dart-review.googlesource.com/57484
Commit-Queue: Emily Fortuna <efortuna@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
Emily Fortuna 2018-05-30 22:26:01 +00:00 committed by commit-bot@chromium.org
parent b6d20fa975
commit 2911f1f107
2 changed files with 3 additions and 2 deletions

View file

@ -211,7 +211,8 @@ class ClassStubGenerator {
js.quoteName(enableMinification ? internalName : methodName),
'internalName': js.quoteName(internalName),
'type': js.number(type),
'arguments': new jsAst.ArrayInitializer(parameterNames.map(js).toList()),
'arguments': new jsAst.ArrayInitializer(
parameterNames.map<jsAst.Expression>(js).toList()),
'namedArguments': new jsAst.ArrayInitializer(argNames),
'typeArgumentCount': js.number(selector.typeArgumentCount)
});

View file

@ -486,7 +486,7 @@ class InstantiatorGeneratorVisitor implements NodeVisitor<Instantiator> {
return new Switch(
makeKey(arguments),
makeCases
.map((Instantiator makeCase) => makeCase(arguments))
.map<SwitchClause>((Instantiator makeCase) => makeCase(arguments))
.toList());
};
}