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

Unified Diff: pkg/compiler/lib/src/compile_time_constants.dart

Issue 2809603002: Introduce ParameterStructure (Closed)
Patch Set: Fix. Created 3 years, 8 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 | « no previous file | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compile_time_constants.dart
diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart
index cfb0005640d1602b8c953e2734ac956768c549a6..3c4fc5e93732a1bb132861ee6a84ad6584a819fb 100644
--- a/pkg/compiler/lib/src/compile_time_constants.dart
+++ b/pkg/compiler/lib/src/compile_time_constants.dart
@@ -867,7 +867,7 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> {
target.computeType(resolution);
- if (!callStructure.signatureApplies(target.type)) {
+ if (!callStructure.signatureApplies(target.parameterStructure)) {
String name = Elements.constructorNameForDiagnostics(
target.enclosingClass.name, target.name);
reporter.reportErrorMessage(node,
@@ -1114,7 +1114,7 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> {
}
assert(invariant(
node,
- callStructure.signatureApplies(constructor.type) ||
+ callStructure.signatureApplies(constructor.parameterStructure) ||
compiler.compilationFailed,
message: "Call structure $callStructure does not apply to constructor "
"$constructor."));
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698