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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart

Issue 1637843002: typeInformation in CreateInstance is a kind of TypeExpression (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/compiler/lib/src/cps_ir/cps_ir_builder.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
index 9777a243b92204a0657e1e6bc27c671829134800..e7bd8e7f41902de1e78bdb62969833a4ee5080a9 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
@@ -2412,7 +2412,7 @@ class IrBuilder {
arguments.add(value);
}
return addPrimitive(new ir.CreateInstance(
- classElement, arguments, const <ir.Primitive>[], sourceInformation));
+ classElement, arguments, null, sourceInformation));
}
/// Create a read access of [local] function, variable, or parameter.
@@ -2578,7 +2578,8 @@ class IrBuilder {
ir.Primitive value = buildTypeVariableAccess(variable);
arguments.add(value);
});
- return addPrimitive(new ir.TypeExpression(type, arguments));
+ return addPrimitive(new ir.TypeExpression(ir.TypeExpressionKind.COMPLETE,
+ type, arguments));
} else if (type.treatAsDynamic) {
return buildNullConstant();
} else {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698