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

Unified Diff: pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart

Issue 2466393002: Change to <- for types.
Patch Set: Fixes. Created 4 years, 1 month 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/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);
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart ('k') | pkg/compiler/lib/src/kernel/kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698