File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
pkg/dev_compiler/lib/src/kernel Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 44
55import 'dart:collection' ;
66
7+ import 'package:_js_interop_checks/src/transformations/static_interop_class_eraser.dart'
8+ show eraseStaticInteropTypesForJSCompilers;
79import 'package:js_shared/synced/recipe_syntax.dart' show Recipe;
810import 'package:kernel/ast.dart' ;
911import 'package:kernel/class_hierarchy.dart' ;
@@ -244,6 +246,10 @@ class _TypeRecipeVisitor extends DartTypeVisitor<String> {
244246 @override
245247 String visitInterfaceType (InterfaceType node) {
246248 var cls = node.classNode;
249+ if (isStaticInteropType (cls)) {
250+ return eraseStaticInteropTypesForJSCompilers (_coreTypes, node)
251+ .accept (this );
252+ }
247253 addLiveType (node);
248254 // Generate the interface type recipe.
249255 var recipeBuffer = StringBuffer (interfaceTypeRecipe (cls));
@@ -338,6 +344,10 @@ class _TypeRecipeVisitor extends DartTypeVisitor<String> {
338344 return recipeBuffer.toString ();
339345 }
340346
347+ @override
348+ String visitInlineType (InlineType node) =>
349+ node.instantiatedRepresentationType.accept (this );
350+
341351 @override
342352 String visitRecordType (RecordType node) {
343353 var recipeBuffer = StringBuffer (Recipe .startRecordString);
You can’t perform that action at this time.
0 commit comments