Clean up quotes in messages.yaml

Change-Id: If09b1b35830c659f3c5bd5615e9966190e5d4b48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/263560
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Brian Wilkerson 2022-10-18 15:00:58 +00:00 committed by Commit Queue
parent 4768317f2b
commit b6d278be10
4 changed files with 52 additions and 52 deletions

View file

@ -100,7 +100,7 @@ class HintCode extends AnalyzerErrorCode {
/// 1: name of the supertype /// 1: name of the supertype
static const HintCode DEAD_CODE_ON_CATCH_SUBTYPE = HintCode( static const HintCode DEAD_CODE_ON_CATCH_SUBTYPE = HintCode(
'DEAD_CODE_ON_CATCH_SUBTYPE', 'DEAD_CODE_ON_CATCH_SUBTYPE',
"Dead code: This on-catch block wont be executed because '{0}' is a " "Dead code: This on-catch block won't be executed because '{0}' is a "
"subtype of '{1}' and hence will have been caught already.", "subtype of '{1}' and hence will have been caught already.",
correctionMessage: correctionMessage:
"Try reordering the catch clauses so that this block can be reached, " "Try reordering the catch clauses so that this block can be reached, "
@ -1460,7 +1460,7 @@ class HintCode extends AnalyzerErrorCode {
/// 0: the name that is shown but not used /// 0: the name that is shown but not used
static const HintCode UNUSED_SHOWN_NAME = HintCode( static const HintCode UNUSED_SHOWN_NAME = HintCode(
'UNUSED_SHOWN_NAME', 'UNUSED_SHOWN_NAME',
"The name {0} is shown, but isnt used.", "The name {0} is shown, but isn't used.",
correctionMessage: "Try removing the name from the list of shown members.", correctionMessage: "Try removing the name from the list of shown members.",
hasPublishedDocs: true, hasPublishedDocs: true,
); );

View file

@ -164,7 +164,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
static const CompileTimeErrorCode ASSIGNMENT_TO_FINAL_NO_SETTER = static const CompileTimeErrorCode ASSIGNMENT_TO_FINAL_NO_SETTER =
CompileTimeErrorCode( CompileTimeErrorCode(
'ASSIGNMENT_TO_FINAL_NO_SETTER', 'ASSIGNMENT_TO_FINAL_NO_SETTER',
"There isnt a setter named '{0}' in class '{1}'.", "There isn't a setter named '{0}' in class '{1}'.",
correctionMessage: correctionMessage:
"Try correcting the name to reference an existing setter, or declare " "Try correcting the name to reference an existing setter, or declare "
"the setter.", "the setter.",
@ -4825,7 +4825,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
static const CompileTimeErrorCode USE_OF_NATIVE_EXTENSION = static const CompileTimeErrorCode USE_OF_NATIVE_EXTENSION =
CompileTimeErrorCode( CompileTimeErrorCode(
'USE_OF_NATIVE_EXTENSION', 'USE_OF_NATIVE_EXTENSION',
"Dart native extensions are deprecated and arent available in Dart 2.15.", "Dart native extensions are deprecated and aren't available in Dart 2.15.",
correctionMessage: "Try using dart:ffi for C interop.", correctionMessage: "Try using dart:ffi for C interop.",
hasPublishedDocs: true, hasPublishedDocs: true,
); );

View file

@ -808,7 +808,7 @@ CompileTimeErrorCode:
} }
``` ```
ASSIGNMENT_TO_FINAL_NO_SETTER: ASSIGNMENT_TO_FINAL_NO_SETTER:
problemMessage: "There isnt a setter named '{0}' in class '{1}'." problemMessage: "There isn't a setter named '{0}' in class '{1}'."
correctionMessage: Try correcting the name to reference an existing setter, or declare the setter. correctionMessage: Try correcting the name to reference an existing setter, or declare the setter.
hasPublishedDocs: true hasPublishedDocs: true
comment: |- comment: |-
@ -1262,7 +1262,7 @@ CompileTimeErrorCode:
The analyzer produces this diagnostic when the name used in the declaration The analyzer produces this diagnostic when the name used in the declaration
of a class, extension, mixin, typedef, type parameter, or import prefix is of a class, extension, mixin, typedef, type parameter, or import prefix is
a built-in identifier. Built-in identifiers cant be used to name any of a built-in identifier. Built-in identifiers can't be used to name any of
these kinds of declarations. these kinds of declarations.
#### Example #### Example
@ -5652,7 +5652,7 @@ CompileTimeErrorCode:
the name doesn't shadow the imported name. the name doesn't shadow the imported name.
If the name is the name of an existing class or mixin that isn't being If the name is the name of an existing class or mixin that isn't being
imported, then add an import, with a prefix, for the library in which its imported, then add an import, with a prefix, for the library in which it's
declared. declared.
Otherwise, either replace the name in the `implements` clause with the name Otherwise, either replace the name in the `implements` clause with the name
@ -6284,7 +6284,7 @@ CompileTimeErrorCode:
#### Example #### Example
The following code produces this diagnostic because `zero` is a static The following code produces this diagnostic because `zero` is a static
field, but its being accessed as if it were an instance field: field, but it's being accessed as if it were an instance field:
```dart ```dart
void f(C c) { void f(C c) {
@ -6492,7 +6492,7 @@ CompileTimeErrorCode:
The analyzer produces this diagnostic when a constructor invocation is The analyzer produces this diagnostic when a constructor invocation is
found where the type being instantiated is a type alias for one of the type found where the type being instantiated is a type alias for one of the type
parameters of the type alias. This isnt allowed because the value of the parameters of the type alias. This isn't allowed because the value of the
type parameter is a type rather than a class. type parameter is a type rather than a class.
#### Example #### Example
@ -6806,7 +6806,7 @@ CompileTimeErrorCode:
String s = i.toString(); String s = i.toString();
``` ```
If you cant change the value, then change the type of the variable to be If you can't change the value, then change the type of the variable to be
compatible with the type of the value being assigned: compatible with the type of the value being assigned:
```dart ```dart
@ -8269,7 +8269,7 @@ CompileTimeErrorCode:
#### Description #### Description
The analyzer produces this diagnostic when either the Dart or Flutter SDK The analyzer produces this diagnostic when either the Dart or Flutter SDK
isnt installed correctly, and, as a result, one of the `dart:` libraries isn't installed correctly, and, as a result, one of the `dart:` libraries
can't be found. can't be found.
#### Common fixes #### Common fixes
@ -8911,7 +8911,7 @@ CompileTimeErrorCode:
#### Example #### Example
The following code produces this diagnostic because the initializer list The following code produces this diagnostic because the initializer list
for `B`s constructor invokes both the constructor `one` and the for `B`'s constructor invokes both the constructor `one` and the
constructor `two` from the superclass `A`: constructor `two` from the superclass `A`:
```dart ```dart
@ -9012,7 +9012,7 @@ CompileTimeErrorCode:
#### Description #### Description
The analyzer produces this diagnostic when an unnamed constructor is The analyzer produces this diagnostic when an unnamed constructor is
invoked on a class that defines named constructors but the class doesnt invoked on a class that defines named constructors but the class doesn't
have an unnamed constructor. have an unnamed constructor.
#### Example #### Example
@ -10176,7 +10176,7 @@ CompileTimeErrorCode:
} }
``` ```
If `null` isnt a valid value, and there's a reasonable default value, then If `null` isn't a valid value, and there's a reasonable default value, then
add an initializer: add an initializer:
```dart ```dart
@ -10381,7 +10381,7 @@ CompileTimeErrorCode:
#### Common fixes #### Common fixes
If there's a reasonable default value for the field thats the same for all If there's a reasonable default value for the field that's the same for all
instances, then add an initializer expression: instances, then add an initializer expression:
```dart ```dart
@ -12099,7 +12099,7 @@ CompileTimeErrorCode:
The analyzer produces this diagnostic when a redirecting factory The analyzer produces this diagnostic when a redirecting factory
constructor redirects to a type alias, and the type alias expands to one of constructor redirects to a type alias, and the type alias expands to one of
the type parameters of the type alias. This isnt allowed because the value the type parameters of the type alias. This isn't allowed because the value
of the type parameter is a type rather than a class. of the type parameter is a type rather than a class.
#### Example #### Example
@ -12141,7 +12141,7 @@ CompileTimeErrorCode:
#### Description #### Description
The analyzer produces this diagnostic when a variable is referenced before The analyzer produces this diagnostic when a variable is referenced before
its declared. In Dart, variables are visible everywhere in the block in it's declared. In Dart, variables are visible everywhere in the block in
which they are declared, but can only be referenced after they are which they are declared, but can only be referenced after they are
declared. declared.
@ -13548,7 +13548,7 @@ CompileTimeErrorCode:
} }
``` ```
Note, however, that there isnt a relationship between `T` and `S`, so this Note, however, that there isn't a relationship between `T` and `S`, so this
second option changes the semantics from what was likely to be intended. second option changes the semantics from what was likely to be intended.
TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND: TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND:
problemMessage: "'{0}' can't be a supertype of its upper bound." problemMessage: "'{0}' can't be a supertype of its upper bound."
@ -13822,7 +13822,7 @@ CompileTimeErrorCode:
#### Common fixes #### Common fixes
If the name is correct, but it isnt declared yet, then declare the name as If the name is correct, but it isn't declared yet, then declare the name as
a constant value: a constant value:
```dart ```dart
@ -14865,7 +14865,7 @@ CompileTimeErrorCode:
#### Description #### Description
The analyzer produces this diagnostic when an inherited member (method, The analyzer produces this diagnostic when an inherited member (method,
getter, setter, or operator) is referenced using `super`, but theres no getter, setter, or operator) is referenced using `super`, but there's no
member with that name in the superclass chain. member with that name in the superclass chain.
#### Examples #### Examples
@ -14900,7 +14900,7 @@ CompileTimeErrorCode:
If the member you intend to invoke is defined in the same class, then If the member you intend to invoke is defined in the same class, then
remove the `super.`. remove the `super.`.
If the member isnt defined, then either add the member to one of the If the member isn't defined, then either add the member to one of the
superclasses or remove the invocation. superclasses or remove the invocation.
UNDEFINED_SUPER_OPERATOR: UNDEFINED_SUPER_OPERATOR:
sharedName: UNDEFINED_SUPER_MEMBER sharedName: UNDEFINED_SUPER_MEMBER
@ -15106,7 +15106,7 @@ CompileTimeErrorCode:
The analyzer produces this diagnostic when the string literal in an The analyzer produces this diagnostic when the string literal in an
`import`, `export`, or `part` directive contains an interpolation. The `import`, `export`, or `part` directive contains an interpolation. The
resolution of the URIs in directives must happen before the declarations resolution of the URIs in directives must happen before the declarations
are compiled, so expressions cant be evaluated while determining the are compiled, so expressions can't be evaluated while determining the
values of the URIs. values of the URIs.
#### Example #### Example
@ -15130,7 +15130,7 @@ CompileTimeErrorCode:
var zero = min(0, 0); var zero = min(0, 0);
``` ```
USE_OF_NATIVE_EXTENSION: USE_OF_NATIVE_EXTENSION:
problemMessage: Dart native extensions are deprecated and arent available in Dart 2.15. problemMessage: Dart native extensions are deprecated and aren't available in Dart 2.15.
correctionMessage: "Try using dart:ffi for C interop." correctionMessage: "Try using dart:ffi for C interop."
hasPublishedDocs: true hasPublishedDocs: true
comment: No parameters. comment: No parameters.
@ -17717,7 +17717,7 @@ HintCode:
#### Description #### Description
The analyzer produces this diagnostic when a `catch` clause is found that The analyzer produces this diagnostic when a `catch` clause is found that
can't be executed because its after a `catch` clause of the form can't be executed because it's after a `catch` clause of the form
`catch (e)` or `on Object catch (e)`. The first `catch` clause that matches `catch (e)` or `on Object catch (e)`. The first `catch` clause that matches
the thrown object is selected, and both of those forms will match any the thrown object is selected, and both of those forms will match any
object, so no `catch` clauses that follow them will be selected. object, so no `catch` clauses that follow them will be selected.
@ -17759,7 +17759,7 @@ HintCode:
} }
``` ```
DEAD_CODE_ON_CATCH_SUBTYPE: DEAD_CODE_ON_CATCH_SUBTYPE:
problemMessage: "Dead code: This on-catch block wont be executed because '{0}' is a subtype of '{1}' and hence will have been caught already." problemMessage: "Dead code: This on-catch block won't be executed because '{0}' is a subtype of '{1}' and hence will have been caught already."
correctionMessage: Try reordering the catch clauses so that this block can be reached, or removing the unreachable catch clause. correctionMessage: Try reordering the catch clauses so that this block can be reached, or removing the unreachable catch clause.
hasPublishedDocs: true hasPublishedDocs: true
comment: |- comment: |-
@ -18133,7 +18133,7 @@ HintCode:
The analyzer produces this diagnostic when an import directive is found The analyzer produces this diagnostic when an import directive is found
that is the same as an import before it in the file. The second import that is the same as an import before it in the file. The second import
doesnt add value and should be removed. doesn't add value and should be removed.
#### Example #### Example
@ -19933,7 +19933,7 @@ HintCode:
#### Description #### Description
The analyzer produces this diagnostic when a class member is annotated with The analyzer produces this diagnostic when a class member is annotated with
the `@override` annotation, but the member isnt declared in any of the the `@override` annotation, but the member isn't declared in any of the
supertypes of the class. supertypes of the class.
#### Example #### Example
@ -21725,7 +21725,7 @@ HintCode:
0: the name of the annotated method, property or function 0: the name of the annotated method, property or function
1: message details 1: message details
UNUSED_SHOWN_NAME: UNUSED_SHOWN_NAME:
problemMessage: "The name {0} is shown, but isnt used." problemMessage: "The name {0} is shown, but isn't used."
correctionMessage: Try removing the name from the list of shown members. correctionMessage: Try removing the name from the list of shown members.
hasPublishedDocs: true hasPublishedDocs: true
comment: |- comment: |-

View file

@ -1424,7 +1424,7 @@ void f() {
### assignment_to_final_no_setter ### assignment_to_final_no_setter
_There isnt a setter named '{0}' in class '{1}'._ _There isn't a setter named '{0}' in class '{1}'._
#### Description #### Description
@ -1901,7 +1901,7 @@ _The built-in identifier '{0}' can't be used as an extension name._
The analyzer produces this diagnostic when the name used in the declaration The analyzer produces this diagnostic when the name used in the declaration
of a class, extension, mixin, typedef, type parameter, or import prefix is of a class, extension, mixin, typedef, type parameter, or import prefix is
a built-in identifier. Built-in identifiers cant be used to name any of a built-in identifier. Built-in identifiers can't be used to name any of
these kinds of declarations. these kinds of declarations.
#### Example #### Example
@ -3382,7 +3382,7 @@ never reached._
#### Description #### Description
The analyzer produces this diagnostic when a `catch` clause is found that The analyzer produces this diagnostic when a `catch` clause is found that
can't be executed because its after a `catch` clause of the form can't be executed because it's after a `catch` clause of the form
`catch (e)` or `on Object catch (e)`. The first `catch` clause that matches `catch (e)` or `on Object catch (e)`. The first `catch` clause that matches
the thrown object is selected, and both of those forms will match any the thrown object is selected, and both of those forms will match any
object, so no `catch` clauses that follow them will be selected. object, so no `catch` clauses that follow them will be selected.
@ -3426,7 +3426,7 @@ void f() {
### dead_code_on_catch_subtype ### dead_code_on_catch_subtype
_Dead code: This on-catch block wont be executed because '{0}' is a subtype of _Dead code: This on-catch block won't be executed because '{0}' is a subtype of
'{1}' and hence will have been caught already._ '{1}' and hence will have been caught already._
#### Description #### Description
@ -4327,7 +4327,7 @@ _Duplicate import._
The analyzer produces this diagnostic when an import directive is found The analyzer produces this diagnostic when an import directive is found
that is the same as an import before it in the file. The second import that is the same as an import before it in the file. The second import
doesnt add value and should be removed. doesn't add value and should be removed.
#### Example #### Example
@ -6937,7 +6937,7 @@ imported, then add a prefix to the import so that the local definition of
the name doesn't shadow the imported name. the name doesn't shadow the imported name.
If the name is the name of an existing class or mixin that isn't being If the name is the name of an existing class or mixin that isn't being
imported, then add an import, with a prefix, for the library in which its imported, then add an import, with a prefix, for the library in which it's
declared. declared.
Otherwise, either replace the name in the `implements` clause with the name Otherwise, either replace the name in the `implements` clause with the name
@ -7602,7 +7602,7 @@ access a static member through an instance of the class.
#### Example #### Example
The following code produces this diagnostic because `zero` is a static The following code produces this diagnostic because `zero` is a static
field, but its being accessed as if it were an instance field: field, but it's being accessed as if it were an instance field:
{% prettify dart tag=pre+code %} {% prettify dart tag=pre+code %}
void f(C c) { void f(C c) {
@ -7794,7 +7794,7 @@ _Type aliases that expand to a type parameter can't be instantiated._
The analyzer produces this diagnostic when a constructor invocation is The analyzer produces this diagnostic when a constructor invocation is
found where the type being instantiated is a type alias for one of the type found where the type being instantiated is a type alias for one of the type
parameters of the type alias. This isnt allowed because the value of the parameters of the type alias. This isn't allowed because the value of the
type parameter is a type rather than a class. type parameter is a type rather than a class.
#### Example #### Example
@ -8122,7 +8122,7 @@ int i = 0;
String s = i.toString(); String s = i.toString();
{% endprettify %} {% endprettify %}
If you cant change the value, then change the type of the variable to be If you can't change the value, then change the type of the variable to be
compatible with the type of the value being assigned: compatible with the type of the value being assigned:
{% prettify dart tag=pre+code %} {% prettify dart tag=pre+code %}
@ -10615,7 +10615,7 @@ _Required library '{0}' is missing._
#### Description #### Description
The analyzer produces this diagnostic when either the Dart or Flutter SDK The analyzer produces this diagnostic when either the Dart or Flutter SDK
isnt installed correctly, and, as a result, one of the `dart:` libraries isn't installed correctly, and, as a result, one of the `dart:` libraries
can't be found. can't be found.
#### Common fixes #### Common fixes
@ -11529,7 +11529,7 @@ which can either be explicit or implicit.
#### Example #### Example
The following code produces this diagnostic because the initializer list The following code produces this diagnostic because the initializer list
for `B`s constructor invokes both the constructor `one` and the for `B`'s constructor invokes both the constructor `one` and the
constructor `two` from the superclass `A`: constructor `two` from the superclass `A`:
{% prettify dart tag=pre+code %} {% prettify dart tag=pre+code %}
@ -11850,7 +11850,7 @@ _The class '{0}' doesn't have an unnamed constructor._
#### Description #### Description
The analyzer produces this diagnostic when an unnamed constructor is The analyzer produces this diagnostic when an unnamed constructor is
invoked on a class that defines named constructors but the class doesnt invoked on a class that defines named constructors but the class doesn't
have an unnamed constructor. have an unnamed constructor.
#### Example #### Example
@ -13183,7 +13183,7 @@ String f() {
} }
{% endprettify %} {% endprettify %}
If `null` isnt a valid value, and there's a reasonable default value, then If `null` isn't a valid value, and there's a reasonable default value, then
add an initializer: add an initializer:
{% prettify dart tag=pre+code %} {% prettify dart tag=pre+code %}
@ -13357,7 +13357,7 @@ class C {
#### Common fixes #### Common fixes
If there's a reasonable default value for the field thats the same for all If there's a reasonable default value for the field that's the same for all
instances, then add an initializer expression: instances, then add an initializer expression:
{% prettify dart tag=pre+code %} {% prettify dart tag=pre+code %}
@ -14010,7 +14010,7 @@ _The setter doesn't override an inherited setter._
#### Description #### Description
The analyzer produces this diagnostic when a class member is annotated with The analyzer produces this diagnostic when a class member is annotated with
the `@override` annotation, but the member isnt declared in any of the the `@override` annotation, but the member isn't declared in any of the
supertypes of the class. supertypes of the class.
#### Example #### Example
@ -15223,7 +15223,7 @@ parameter._
The analyzer produces this diagnostic when a redirecting factory The analyzer produces this diagnostic when a redirecting factory
constructor redirects to a type alias, and the type alias expands to one of constructor redirects to a type alias, and the type alias expands to one of
the type parameters of the type alias. This isnt allowed because the value the type parameters of the type alias. This isn't allowed because the value
of the type parameter is a type rather than a class. of the type parameter is a type rather than a class.
#### Example #### Example
@ -15262,7 +15262,7 @@ _Local variable '{0}' can't be referenced before it is declared._
#### Description #### Description
The analyzer produces this diagnostic when a variable is referenced before The analyzer produces this diagnostic when a variable is referenced before
its declared. In Dart, variables are visible everywhere in the block in it's declared. In Dart, variables are visible everywhere in the block in
which they are declared, but can only be referenced after they are which they are declared, but can only be referenced after they are
declared. declared.
@ -17555,7 +17555,7 @@ class C<T> {
} }
{% endprettify %} {% endprettify %}
Note, however, that there isnt a relationship between `T` and `S`, so this Note, however, that there isn't a relationship between `T` and `S`, so this
second option changes the semantics from what was likely to be intended. second option changes the semantics from what was likely to be intended.
### type_parameter_supertype_of_its_bound ### type_parameter_supertype_of_its_bound
@ -17785,7 +17785,7 @@ void f() {}
#### Common fixes #### Common fixes
If the name is correct, but it isnt declared yet, then declare the name as If the name is correct, but it isn't declared yet, then declare the name as
a constant value: a constant value:
{% prettify dart tag=pre+code %} {% prettify dart tag=pre+code %}
@ -18808,7 +18808,7 @@ _The setter '{0}' isn't defined in a superclass of '{1}'._
#### Description #### Description
The analyzer produces this diagnostic when an inherited member (method, The analyzer produces this diagnostic when an inherited member (method,
getter, setter, or operator) is referenced using `super`, but theres no getter, setter, or operator) is referenced using `super`, but there's no
member with that name in the superclass chain. member with that name in the superclass chain.
#### Examples #### Examples
@ -18843,7 +18843,7 @@ make the name of the invoked member match the inherited member.
If the member you intend to invoke is defined in the same class, then If the member you intend to invoke is defined in the same class, then
remove the `super.`. remove the `super.`.
If the member isnt defined, then either add the member to one of the If the member isn't defined, then either add the member to one of the
superclasses or remove the invocation. superclasses or remove the invocation.
### unnecessary_cast ### unnecessary_cast
@ -19661,7 +19661,7 @@ void f(C c) {
### unused_shown_name ### unused_shown_name
_The name {0} is shown, but isnt used._ _The name {0} is shown, but isn't used._
#### Description #### Description
@ -19757,7 +19757,7 @@ _URIs can't use string interpolation._
The analyzer produces this diagnostic when the string literal in an The analyzer produces this diagnostic when the string literal in an
`import`, `export`, or `part` directive contains an interpolation. The `import`, `export`, or `part` directive contains an interpolation. The
resolution of the URIs in directives must happen before the declarations resolution of the URIs in directives must happen before the declarations
are compiled, so expressions cant be evaluated while determining the are compiled, so expressions can't be evaluated while determining the
values of the URIs. values of the URIs.
#### Example #### Example
@ -19783,7 +19783,7 @@ var zero = min(0, 0);
### use_of_native_extension ### use_of_native_extension
_Dart native extensions are deprecated and arent available in Dart 2.15._ _Dart native extensions are deprecated and aren't available in Dart 2.15._
#### Description #### Description