mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 17:24:54 +00:00
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:
parent
b6d20fa975
commit
2911f1f107
|
@ -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)
|
||||
});
|
||||
|
|
|
@ -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());
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue