Index: pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
index 7cffc44de5b73cf6b1b931433b9aa6870d4f312e..e17147e7c3384bc7757b8d5c1b555df978a0d201 100644 |
--- a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
+++ b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart |
@@ -4,12 +4,6 @@ |
part of dart2js.js_emitter; |
-// Function signatures used in the generation of runtime type information. |
-typedef void FunctionTypeSignatureEmitter( |
- Element method, FunctionType methodType); |
- |
-typedef void SubstitutionEmitter(Element element, {bool emitNull}); |
- |
class TypeTestProperties { |
/// The index of the function type into the metadata. |
/// |
@@ -159,9 +153,10 @@ class RuntimeTypeGenerator { |
*/ |
void _generateIsTestsOn( |
ClassElement cls, |
- void generateIsTest(Element element), |
- FunctionTypeSignatureEmitter generateFunctionTypeSignature, |
- SubstitutionEmitter generateSubstitution, |
+ void <- (Element) generateIsTest, |
+ void <- (Element method, FunctionType methodType) |
+ generateFunctionTypeSignature, |
+ void <- (Element, {bool emitNull}) generateSubstitution, |
void emitTypeCheck(TypeCheck check)) { |
Setlet<Element> generated = new Setlet<Element>(); |
@@ -269,9 +264,10 @@ class RuntimeTypeGenerator { |
*/ |
void _generateInterfacesIsTests( |
ClassElement cls, |
- void generateIsTest(ClassElement element), |
- SubstitutionEmitter generateSubstitution, |
+ void <- ClassElement generateIsTest, |
+ void <- (Element, {bool emitNull}) generateSubstitution, |
Set<Element> alreadyGenerated) { |
+ |
void tryEmitTest(ClassElement check) { |
if (!alreadyGenerated.contains(check) && checkedClasses.contains(check)) { |
alreadyGenerated.add(check); |