mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Fix some analyzer error codes that have gotten out of sync with their declarations.
Change-Id: Ifa803f6fd86db7aa6f73abf83e85bee1f83ee6b9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214074 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
032738141e
commit
1042903683
|
@ -80,7 +80,7 @@ import 'package:meta/meta.dart';
|
|||
/// TODO(scheglov) Clean up the list of implicitly analyzed files.
|
||||
class AnalysisDriver implements AnalysisDriverGeneric {
|
||||
/// The version of data format, should be incremented on every format change.
|
||||
static const int DATA_VERSION = 178;
|
||||
static const int DATA_VERSION = 179;
|
||||
|
||||
/// The number of exception contexts allowed to write. Once this field is
|
||||
/// zero, we stop writing any new exception contexts in this process.
|
||||
|
|
|
@ -252,7 +252,7 @@ class FfiCode extends AnalyzerErrorCode {
|
|||
* No parameters.
|
||||
*/
|
||||
static const FfiCode NON_POSITIVE_ARRAY_DIMENSION = FfiCode(
|
||||
name: 'NON_POSITIVE_INPUT_ON_ARRAY',
|
||||
name: 'NON_POSITIVE_ARRAY_DIMENSION',
|
||||
message: "Array dimensions must be positive numbers.",
|
||||
correction: "Try changing the input to a positive number.");
|
||||
|
||||
|
|
|
@ -5088,7 +5088,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
|
|||
"others aren't.",
|
||||
correction: "Try adding initializers for the fields.",
|
||||
hasPublishedDocs: true,
|
||||
uniqueName: 'FINAL_NOT_INITIALIZED_CONSTRUCTOR_3',
|
||||
uniqueName: 'FINAL_NOT_INITIALIZED_CONSTRUCTOR_3_PLUS',
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -9069,7 +9069,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
|
|||
*/
|
||||
static const CompileTimeErrorCode NO_GENERATIVE_CONSTRUCTORS_IN_SUPERCLASS =
|
||||
CompileTimeErrorCode(
|
||||
'NO_GENERATIVE_CONSTRUCTOR_IN_SUPERCLASS',
|
||||
'NO_GENERATIVE_CONSTRUCTORS_IN_SUPERCLASS',
|
||||
"The class '{0}' cannot extend '{1}' because '{1}' only has factory "
|
||||
"constructors (no generative constructors), and '{0}' has at "
|
||||
"least one generative constructor.",
|
||||
|
|
Loading…
Reference in a new issue