File tree 1 file changed +10
-0
lines changed
pkg/dev_compiler/lib/src/kernel
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import 'dart:collection' ;
6
6
7
+ import 'package:_js_interop_checks/src/transformations/static_interop_class_eraser.dart'
8
+ show eraseStaticInteropTypesForJSCompilers;
7
9
import 'package:js_shared/synced/recipe_syntax.dart' show Recipe;
8
10
import 'package:kernel/ast.dart' ;
9
11
import 'package:kernel/class_hierarchy.dart' ;
@@ -244,6 +246,10 @@ class _TypeRecipeVisitor extends DartTypeVisitor<String> {
244
246
@override
245
247
String visitInterfaceType (InterfaceType node) {
246
248
var cls = node.classNode;
249
+ if (isStaticInteropType (cls)) {
250
+ return eraseStaticInteropTypesForJSCompilers (_coreTypes, node)
251
+ .accept (this );
252
+ }
247
253
addLiveType (node);
248
254
// Generate the interface type recipe.
249
255
var recipeBuffer = StringBuffer (interfaceTypeRecipe (cls));
@@ -338,6 +344,10 @@ class _TypeRecipeVisitor extends DartTypeVisitor<String> {
338
344
return recipeBuffer.toString ();
339
345
}
340
346
347
+ @override
348
+ String visitInlineType (InlineType node) =>
349
+ node.instantiatedRepresentationType.accept (this );
350
+
341
351
@override
342
352
String visitRecordType (RecordType node) {
343
353
var recipeBuffer = StringBuffer (Recipe .startRecordString);
You can’t perform that action at this time.
0 commit comments