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

Unified Diff: pkg/kernel/lib/transformations/reify/transformation/builder.dart

Issue 2713163002: Pass type arguments as a list in generic methods invocations (Closed)
Patch Set: Simplify 'isGenericMethod' procedure 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
Index: pkg/kernel/lib/transformations/reify/transformation/builder.dart
diff --git a/pkg/kernel/lib/transformations/reify/transformation/builder.dart b/pkg/kernel/lib/transformations/reify/transformation/builder.dart
index db46b96e814974efc4192db6ad3760183d9bd31b..13af0edbfe825333f52e9265042a0a73b4090c9e 100644
--- a/pkg/kernel/lib/transformations/reify/transformation/builder.dart
+++ b/pkg/kernel/lib/transformations/reify/transformation/builder.dart
@@ -238,12 +238,8 @@ class RuntimeTypeSupportBuilder {
}
if (type is InterfaceType || type is Supertype) {
- InterfaceType interfaceType = null;
- if (type is InterfaceType) {
- interfaceType = type;
- } else {
- interfaceType = (type as Supertype).asInterfaceType;
- }
+ InterfaceType interfaceType =
+ (type is InterfaceType) ? type : (type as Supertype).asInterfaceType;
Class cls = interfaceType.classNode;
Expression declaration = createReference(cls);
List<DartType> typeArguments = interfaceType.typeArguments;

Powered by Google App Engine
This is Rietveld 408576698