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

Unified Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2791993002: Fix dart2js warnings and add test to ensure it stays clean. (Closed)
Patch Set: Address comments and fix duplicated library names. Created 3 years, 9 months 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/graph_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index db3d6eefb43f861c1039acf7b2bd56cbbe33378e..553f028e76e11b41917f79bb377d5c975e5a7de5 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -28,10 +28,9 @@ import '../resolution/tree_elements.dart';
import '../tree/dartstring.dart';
import '../tree/nodes.dart' show Node;
import '../types/masks.dart';
-import '../universe/call_structure.dart' show CallStructure;
import '../universe/selector.dart';
import '../universe/side_effects.dart' show SideEffects;
-import '../universe/use.dart' show DynamicUse, StaticUse;
+import '../universe/use.dart' show DynamicUse;
import '../world.dart';
import 'graph_builder.dart';
import 'jump_handler.dart';
@@ -2895,11 +2894,10 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
}
return type is ir.InterfaceType &&
- (type as ir.InterfaceType).typeArguments.any(
- (ir.DartType typeArgType) =>
- typeArgType is! ir.DynamicType &&
- typeArgType is! ir.InvalidType &&
- !isMethodTypeVariableType(type));
+ type.typeArguments.any((ir.DartType typeArgType) =>
+ typeArgType is! ir.DynamicType &&
+ typeArgType is! ir.InvalidType &&
+ !isMethodTypeVariableType(type));
}
@override
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/graph_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698