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

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

Issue 2977693002: Remove deprecated methods from ClassBuilder. (Closed)
Patch Set: Spelling of unnamed. Created 3 years, 5 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/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
index 515c1ed73b227e25cfc03b638707a5e70d77c5b1..178bb1b9bb8e0bcf342b7c1e6c653fe7cec7128e 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
@@ -28,6 +28,8 @@ import 'package:kernel/ast.dart'
ThisExpression,
VariableGet;
+import '../fasta_codes.dart' show messageNoUnnamedConstructorInObject;
+
import '../modifier.dart' show constMask, finalMask, staticMask;
import '../names.dart' show indexGetName;
@@ -259,8 +261,7 @@ class KernelEnumBuilder extends SourceClassBuilder
// unnamed constructor requires no arguments. But that information isn't
// always available at this point, and it's not really a situation that
// can happen unless you start modifying the SDK sources.
- deprecated_addCompileTimeError(
- -1, "'Object' has no unnamed constructor.");
+ addCompileTimeError(messageNoUnnamedConstructorInObject, -1);
} else {
constructor.initializers.add(
new SuperInitializer(superConstructor.target, new Arguments.empty())

Powered by Google App Engine
This is Rietveld 408576698