@@ -808,7 +808,7 @@ CompileTimeErrorCode:
808
808
}
809
809
```
810
810
ASSIGNMENT_TO_FINAL_NO_SETTER:
811
- problemMessage: "There isn’ t a setter named '{0}' in class '{1}'."
811
+ problemMessage: "There isn' t a setter named '{0}' in class '{1}'."
812
812
correctionMessage: Try correcting the name to reference an existing setter, or declare the setter.
813
813
hasPublishedDocs: true
814
814
comment: |-
@@ -1262,7 +1262,7 @@ CompileTimeErrorCode:
1262
1262
1263
1263
The analyzer produces this diagnostic when the name used in the declaration
1264
1264
of a class, extension, mixin, typedef, type parameter, or import prefix is
1265
- a built-in identifier. Built-in identifiers can’ t be used to name any of
1265
+ a built-in identifier. Built-in identifiers can' t be used to name any of
1266
1266
these kinds of declarations.
1267
1267
1268
1268
#### Example
@@ -5652,7 +5652,7 @@ CompileTimeErrorCode:
5652
5652
the name doesn't shadow the imported name.
5653
5653
5654
5654
If the name is the name of an existing class or mixin that isn't being
5655
- imported, then add an import, with a prefix, for the library in which it’ s
5655
+ imported, then add an import, with a prefix, for the library in which it' s
5656
5656
declared.
5657
5657
5658
5658
Otherwise, either replace the name in the `implements` clause with the name
@@ -6284,7 +6284,7 @@ CompileTimeErrorCode:
6284
6284
#### Example
6285
6285
6286
6286
The following code produces this diagnostic because `zero` is a static
6287
- field, but it’ s being accessed as if it were an instance field:
6287
+ field, but it' s being accessed as if it were an instance field:
6288
6288
6289
6289
```dart
6290
6290
void f(C c) {
@@ -6492,7 +6492,7 @@ CompileTimeErrorCode:
6492
6492
6493
6493
The analyzer produces this diagnostic when a constructor invocation is
6494
6494
found where the type being instantiated is a type alias for one of the type
6495
- parameters of the type alias. This isn’ t allowed because the value of the
6495
+ parameters of the type alias. This isn' t allowed because the value of the
6496
6496
type parameter is a type rather than a class.
6497
6497
6498
6498
#### Example
@@ -6806,7 +6806,7 @@ CompileTimeErrorCode:
6806
6806
String s = i.toString();
6807
6807
```
6808
6808
6809
- If you can’ t change the value, then change the type of the variable to be
6809
+ If you can' t change the value, then change the type of the variable to be
6810
6810
compatible with the type of the value being assigned:
6811
6811
6812
6812
```dart
@@ -8269,7 +8269,7 @@ CompileTimeErrorCode:
8269
8269
#### Description
8270
8270
8271
8271
The analyzer produces this diagnostic when either the Dart or Flutter SDK
8272
- isn’ t installed correctly, and, as a result, one of the `dart:` libraries
8272
+ isn' t installed correctly, and, as a result, one of the `dart:` libraries
8273
8273
can't be found.
8274
8274
8275
8275
#### Common fixes
@@ -8911,7 +8911,7 @@ CompileTimeErrorCode:
8911
8911
#### Example
8912
8912
8913
8913
The following code produces this diagnostic because the initializer list
8914
- for `B`’ s constructor invokes both the constructor `one` and the
8914
+ for `B`' s constructor invokes both the constructor `one` and the
8915
8915
constructor `two` from the superclass `A`:
8916
8916
8917
8917
```dart
@@ -9012,7 +9012,7 @@ CompileTimeErrorCode:
9012
9012
#### Description
9013
9013
9014
9014
The analyzer produces this diagnostic when an unnamed constructor is
9015
- invoked on a class that defines named constructors but the class doesn’ t
9015
+ invoked on a class that defines named constructors but the class doesn' t
9016
9016
have an unnamed constructor.
9017
9017
9018
9018
#### Example
@@ -10176,7 +10176,7 @@ CompileTimeErrorCode:
10176
10176
}
10177
10177
```
10178
10178
10179
- If `null` isn’ t a valid value, and there's a reasonable default value, then
10179
+ If `null` isn' t a valid value, and there's a reasonable default value, then
10180
10180
add an initializer:
10181
10181
10182
10182
```dart
@@ -10381,7 +10381,7 @@ CompileTimeErrorCode:
10381
10381
10382
10382
#### Common fixes
10383
10383
10384
- If there's a reasonable default value for the field that’ s the same for all
10384
+ If there's a reasonable default value for the field that' s the same for all
10385
10385
instances, then add an initializer expression:
10386
10386
10387
10387
```dart
@@ -12099,7 +12099,7 @@ CompileTimeErrorCode:
12099
12099
12100
12100
The analyzer produces this diagnostic when a redirecting factory
12101
12101
constructor redirects to a type alias, and the type alias expands to one of
12102
- the type parameters of the type alias. This isn’ t allowed because the value
12102
+ the type parameters of the type alias. This isn' t allowed because the value
12103
12103
of the type parameter is a type rather than a class.
12104
12104
12105
12105
#### Example
@@ -12141,7 +12141,7 @@ CompileTimeErrorCode:
12141
12141
#### Description
12142
12142
12143
12143
The analyzer produces this diagnostic when a variable is referenced before
12144
- it’ s declared. In Dart, variables are visible everywhere in the block in
12144
+ it' s declared. In Dart, variables are visible everywhere in the block in
12145
12145
which they are declared, but can only be referenced after they are
12146
12146
declared.
12147
12147
@@ -13548,7 +13548,7 @@ CompileTimeErrorCode:
13548
13548
}
13549
13549
```
13550
13550
13551
- Note, however, that there isn’ t a relationship between `T` and `S`, so this
13551
+ Note, however, that there isn' t a relationship between `T` and `S`, so this
13552
13552
second option changes the semantics from what was likely to be intended.
13553
13553
TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND:
13554
13554
problemMessage: "'{0}' can't be a supertype of its upper bound."
@@ -13822,7 +13822,7 @@ CompileTimeErrorCode:
13822
13822
13823
13823
#### Common fixes
13824
13824
13825
- If the name is correct, but it isn’ t declared yet, then declare the name as
13825
+ If the name is correct, but it isn' t declared yet, then declare the name as
13826
13826
a constant value:
13827
13827
13828
13828
```dart
@@ -14865,7 +14865,7 @@ CompileTimeErrorCode:
14865
14865
#### Description
14866
14866
14867
14867
The analyzer produces this diagnostic when an inherited member (method,
14868
- getter, setter, or operator) is referenced using `super`, but there’ s no
14868
+ getter, setter, or operator) is referenced using `super`, but there' s no
14869
14869
member with that name in the superclass chain.
14870
14870
14871
14871
#### Examples
@@ -14900,7 +14900,7 @@ CompileTimeErrorCode:
14900
14900
If the member you intend to invoke is defined in the same class, then
14901
14901
remove the `super.`.
14902
14902
14903
- If the member isn’ t defined, then either add the member to one of the
14903
+ If the member isn' t defined, then either add the member to one of the
14904
14904
superclasses or remove the invocation.
14905
14905
UNDEFINED_SUPER_OPERATOR:
14906
14906
sharedName: UNDEFINED_SUPER_MEMBER
@@ -15106,7 +15106,7 @@ CompileTimeErrorCode:
15106
15106
The analyzer produces this diagnostic when the string literal in an
15107
15107
`import`, `export`, or `part` directive contains an interpolation. The
15108
15108
resolution of the URIs in directives must happen before the declarations
15109
- are compiled, so expressions can’ t be evaluated while determining the
15109
+ are compiled, so expressions can' t be evaluated while determining the
15110
15110
values of the URIs.
15111
15111
15112
15112
#### Example
@@ -15130,7 +15130,7 @@ CompileTimeErrorCode:
15130
15130
var zero = min(0, 0);
15131
15131
```
15132
15132
USE_OF_NATIVE_EXTENSION:
15133
- problemMessage: Dart native extensions are deprecated and aren’ t available in Dart 2.15.
15133
+ problemMessage: Dart native extensions are deprecated and aren' t available in Dart 2.15.
15134
15134
correctionMessage: "Try using dart:ffi for C interop."
15135
15135
hasPublishedDocs: true
15136
15136
comment: No parameters.
@@ -17717,7 +17717,7 @@ HintCode:
17717
17717
#### Description
17718
17718
17719
17719
The analyzer produces this diagnostic when a `catch` clause is found that
17720
- can't be executed because it’ s after a `catch` clause of the form
17720
+ can't be executed because it' s after a `catch` clause of the form
17721
17721
`catch (e)` or `on Object catch (e)`. The first `catch` clause that matches
17722
17722
the thrown object is selected, and both of those forms will match any
17723
17723
object, so no `catch` clauses that follow them will be selected.
@@ -17759,7 +17759,7 @@ HintCode:
17759
17759
}
17760
17760
```
17761
17761
DEAD_CODE_ON_CATCH_SUBTYPE:
17762
- 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."
17762
+ 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."
17763
17763
correctionMessage: Try reordering the catch clauses so that this block can be reached, or removing the unreachable catch clause.
17764
17764
hasPublishedDocs: true
17765
17765
comment: |-
@@ -18133,7 +18133,7 @@ HintCode:
18133
18133
18134
18134
The analyzer produces this diagnostic when an import directive is found
18135
18135
that is the same as an import before it in the file. The second import
18136
- doesn’ t add value and should be removed.
18136
+ doesn' t add value and should be removed.
18137
18137
18138
18138
#### Example
18139
18139
@@ -19933,7 +19933,7 @@ HintCode:
19933
19933
#### Description
19934
19934
19935
19935
The analyzer produces this diagnostic when a class member is annotated with
19936
- the `@override` annotation, but the member isn’ t declared in any of the
19936
+ the `@override` annotation, but the member isn' t declared in any of the
19937
19937
supertypes of the class.
19938
19938
19939
19939
#### Example
@@ -21725,7 +21725,7 @@ HintCode:
21725
21725
0: the name of the annotated method, property or function
21726
21726
1: message details
21727
21727
UNUSED_SHOWN_NAME:
21728
- problemMessage: "The name {0} is shown, but isn’ t used."
21728
+ problemMessage: "The name {0} is shown, but isn' t used."
21729
21729
correctionMessage: Try removing the name from the list of shown members.
21730
21730
hasPublishedDocs: true
21731
21731
comment: |-
0 commit comments