Index: pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
index bccbce84ef88848779263eb1bbbe65b3250e7238..173f7c0ffa8a457956df059ab12b10a12d338ec9 100644 |
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
@@ -130,23 +130,20 @@ class ContainerBuilder extends CodeEmitterHelper { |
..add(js.number(requiredParameterCount)) |
..add(js.number(optionalParameterCount)) |
..add(memberTypeExpression == null ? js("null") : memberTypeExpression) |
- ..addAll(task.metadataCollector |
- .reifyDefaultArguments(member).map(js.number)); |
+ ..addAll(task.metadataCollector.reifyDefaultArguments(member)); |
if (canBeReflected || canBeApplied) { |
parameters.forEachParameter((Element parameter) { |
- expressions.add( |
- js.number(task.metadataCollector.reifyName(parameter.name))); |
+ expressions.add(task.metadataCollector.reifyName(parameter.name)); |
if (backend.mustRetainMetadata) { |
- Iterable<int> metadataIndices = |
+ Iterable<jsAst.Expression> metadataIndices = |
parameter.metadata.map((MetadataAnnotation annotation) { |
ConstantValue constant = |
backend.constants.getConstantValueForMetadata(annotation); |
backend.constants.addCompileTimeConstantForEmission(constant); |
return task.metadataCollector.reifyMetadata(annotation); |
}); |
- expressions.add(new jsAst.ArrayInitializer( |
- metadataIndices.map(js.number).toList())); |
+ expressions.add(new jsAst.ArrayInitializer(metadataIndices.toList())); |
} |
}); |
} |
@@ -163,8 +160,7 @@ class ContainerBuilder extends CodeEmitterHelper { |
} |
expressions |
..add(reflectionName) |
- ..addAll(task.metadataCollector |
- .computeMetadata(member).map(js.number)); |
+ ..addAll(task.metadataCollector.computeMetadata(member)); |
} else if (isClosure && canBeApplied) { |
expressions.add(js.string(namer.privateName(member.memberName))); |
} |