Version 2.12.0-94.0.dev
Merge commit '6ca2c409dcc26352e3c4e1946260235b100c53f3' into 'dev'
diff --git a/pkg/_fe_analyzer_shared/lib/src/base/errors.dart b/pkg/_fe_analyzer_shared/lib/src/base/errors.dart
index bd8e297..322861f 100644
--- a/pkg/_fe_analyzer_shared/lib/src/base/errors.dart
+++ b/pkg/_fe_analyzer_shared/lib/src/base/errors.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'package:meta/meta.dart';
+
import 'customized_codes.dart';
/// An error code associated with an [AnalysisError].
@@ -49,11 +51,21 @@
*/
const ErrorCode.temporary(this.name, String message,
{String correction,
- this.isUnresolvedIdentifier: false,
+ this.isUnresolvedIdentifier = false,
this.hasPublishedDocs = false})
: _message = message,
_correction = correction;
+ const ErrorCode.temporary2({
+ String correction,
+ this.hasPublishedDocs = false,
+ this.isUnresolvedIdentifier = false,
+ @required String message,
+ @required this.name,
+ @required String uniqueName,
+ }) : _correction = correction,
+ _message = message;
+
/**
* The template used to create the correction to be displayed for this error,
* or `null` if there is no correction information for this error. The
diff --git a/pkg/analyzer/CHANGELOG.md b/pkg/analyzer/CHANGELOG.md
index 2a8a2f0..4355654 100644
--- a/pkg/analyzer/CHANGELOG.md
+++ b/pkg/analyzer/CHANGELOG.md
@@ -2,6 +2,8 @@
* Updated `PackageBuildWorkspace` that supports `package:build` to stop
at the first directory with `pubspec.yaml`, and don't try to go up
and find another one with both `pubspec.yaml` and `.dart_tool/build`.
+* Added a new constructor for non-API `ErrorCode` class. It will be used to
+ migrate existing `ErrorCode` subclasses, and then deprecated and removed.
## 0.41.0
* Replaced `Scope.lookup({id, setter})` with `lookup(id)`.
diff --git a/tools/VERSION b/tools/VERSION
index 4cf7961..514a37f 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -27,5 +27,5 @@
MAJOR 2
MINOR 12
PATCH 0
-PRERELEASE 93
+PRERELEASE 94
PRERELEASE_PATCH 0
\ No newline at end of file