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

Unified Diff: pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart

Issue 2371113004: Use .packages instead of pubspec.yaml (Closed)
Patch Set: Mark clang as passing Created 4 years, 3 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/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart b/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
index b43692d09b699aff46e20be3de8e47248b99a06f..28bb62697f891131c661f9ce32f210817f4a1133 100644
--- a/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
+++ b/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
@@ -52,8 +52,10 @@ abstract class JsTypeRefCodegen {
for (var param in type.parameters) {
if (param.parameterKind == ParameterKind.NAMED) break;
var type = emitTypeRef(param.type);
- args[new JS.Identifier(param.name)] = param.parameterKind ==
- ParameterKind.POSITIONAL ? type.toOptional() : type;
+ args[new JS.Identifier(param.name)] =
+ param.parameterKind == ParameterKind.POSITIONAL
+ ? type.toOptional()
+ : type;
}
var namedParamType = emitNamedParamsArgType(type.parameters);
if (namedParamType != null) {
« no previous file with comments | « pkg/dev_compiler/lib/src/analyzer/context.dart ('k') | pkg/dev_compiler/lib/src/compiler/nullable_type_inference.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698