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

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

Issue 2977693002: Remove deprecated methods from ClassBuilder. (Closed)
Patch Set: 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..bef889cb9d9ab85ffad96dcfff84f88c94e6fa17 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 messageNoUnamedConstructorInObject;
+
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(messageNoUnamedConstructorInObject, -1);
Johnni Winther 2017/07/11 18:57:57 messageNoUnamedConstructorInObject -> messageNoUnn
ahe 2017/07/12 19:34:46 Done.
} else {
constructor.initializers.add(
new SuperInitializer(superConstructor.target, new Arguments.empty())

Powered by Google App Engine
This is Rietveld 408576698