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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/body_builder.dart

Issue 2691953002: Fix crash in DillClassBuilder.isAbstract. (Closed)
Patch Set: Created 3 years, 10 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/front_end/lib/src/fasta/dill/dill_class_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
index d7fe478b01bd6dbc9bac3bb471cc3810bc164a1c..23f3a13d4882092cdbe9fa865752b00fe7df9590 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -1646,7 +1646,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
if (b == null) {
// Not found. Reported below.
} else if (b.isConstructor) {
- if (type.cls.isAbstract) {
+ if (type.isAbstract) {
// TODO(ahe): Generate abstract instantiation error.
} else {
target = b.target;
@@ -1666,7 +1666,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
target, arguments, isConst: optional("const", token)));
return;
} else {
- errorName = debugName(type.cls.name, name);
+ errorName = debugName(type.name, name);
}
} else {
errorName = debugName(getNodeName(type), name);
« no previous file with comments | « pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698