| Index: pkg/analyzer/lib/src/generated/error.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
|
| index 4b67db5b8425f37577c1b45addc2506cf5d2e356..3345a6168a5fb54e461b070db2214c4e7e876a3a 100644
|
| --- a/pkg/analyzer/lib/src/generated/error.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error.dart
|
| @@ -177,7 +177,7 @@ class AnalysisError {
|
| * Return the value of the given [property], or `null` if the given property
|
| * is not defined for this error.
|
| */
|
| - Object getProperty(ErrorProperty property) => null;
|
| + Object/*=V*/ getProperty/*<V>*/(ErrorProperty/*<V>*/ property) => null;
|
|
|
| @override
|
| String toString() {
|
| @@ -256,13 +256,14 @@ class AnalysisErrorWithProperties extends AnalysisError {
|
| : super(source, offset, length, errorCode, arguments);
|
|
|
| @override
|
| - Object getProperty(ErrorProperty property) => _propertyMap[property];
|
| + Object/*=V*/ getProperty/*<V>*/(ErrorProperty/*<V>*/ property) =>
|
| + _propertyMap[property] as Object/*=V*/;
|
|
|
| /**
|
| * Set the value of the given [property] to the given [value]. Using a value
|
| * of `null` will effectively remove the property from this error.
|
| */
|
| - void setProperty(ErrorProperty property, Object value) {
|
| + void setProperty/*<V>*/(ErrorProperty/*<V>*/ property, Object/*=V*/ value) {
|
| _propertyMap[property] = value;
|
| }
|
| }
|
| @@ -3068,28 +3069,28 @@ abstract class ErrorCode {
|
| /**
|
| * The properties that can be associated with an [AnalysisError].
|
| */
|
| -class ErrorProperty extends Enum<ErrorProperty> {
|
| +class ErrorProperty<V> extends Enum<ErrorProperty> {
|
| /**
|
| * A property whose value is a list of [FieldElement]s that are final, but
|
| * not initialized by a constructor.
|
| */
|
| - static const ErrorProperty NOT_INITIALIZED_FIELDS =
|
| - const ErrorProperty('NOT_INITIALIZED_FIELDS', 0);
|
| + static const ErrorProperty<List<FieldElement>> NOT_INITIALIZED_FIELDS =
|
| + const ErrorProperty<List<FieldElement>>('NOT_INITIALIZED_FIELDS', 0);
|
|
|
| /**
|
| * A property whose value is the name of the library that is used by all
|
| * of the "part of" directives, so should be used in the "library" directive.
|
| * Is `null` if there is no a single name used by all of the parts.
|
| */
|
| - static const ErrorProperty PARTS_LIBRARY_NAME =
|
| - const ErrorProperty('PARTS_LIBRARY_NAME', 1);
|
| + static const ErrorProperty<String> PARTS_LIBRARY_NAME =
|
| + const ErrorProperty<String>('PARTS_LIBRARY_NAME', 1);
|
|
|
| /**
|
| * A property whose value is a list of [ExecutableElement] that should
|
| * be but are not implemented by a concrete class.
|
| */
|
| - static const ErrorProperty UNIMPLEMENTED_METHODS =
|
| - const ErrorProperty('UNIMPLEMENTED_METHODS', 2);
|
| + static const ErrorProperty<List<ExecutableElement>> UNIMPLEMENTED_METHODS =
|
| + const ErrorProperty<List<ExecutableElement>>('UNIMPLEMENTED_METHODS', 2);
|
|
|
| static const List<ErrorProperty> values = const [
|
| NOT_INITIALIZED_FIELDS,
|
|
|