Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 4201fe7

Browse files
authored
tidy up spelling (#4640)
1 parent b63967a commit 4201fe7

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

doc/lint-lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Reasons a lint might be marked experimental include a lint
2727
### Stable
2828

2929
Stable lints are lints whose semantics and implementation are considered complete. False
30-
positives (that are not known, accepted and documentted limitations of lint semantics) are
30+
positives (that are not known, accepted and documented limitations of lint semantics) are
3131
considered bugs and fixing them should be prioritized. False negatives may be bugs or
3232
enhancements (depending on semantics).
3333

doc/use_build_context_synchronously.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ This calculation is based on a few simple properties:
9292
it occurs _before_ **child**. Examples:
9393
* YieldStatement - this node has one child. If **child** is that child, then
9494
the async state is "uninteresting" (`null`). Otherwise, **child** follows
95-
the YieldStatement, and any await expressions occuring in the
95+
the YieldStatement, and any await expressions occurring in the
9696
YieldStatement's expression result in `AsyncState.asynchronous`.
9797
* Block - this node has a list of child Statements. If **child** is one of
9898
those, then we compute the async state between each Statement that precedes
@@ -102,7 +102,7 @@ This calculation is based on a few simple properties:
102102
starting with the Statement that immediately precedes **child**. In this way
103103
we can correctly identify that a Statement which acts as a mounted guard for
104104
**child**. If **child** is not one of the Statements, then it follows the
105-
Block, and any await expressions occuring in the Block's expressions result
105+
Block, and any await expressions occurring in the Block's expressions result
106106
in `AsyncState.asynchronous`.
107107
* MethodInvocation - this node has a target Expression and an argument list of
108108
Expressions. At runtime, the target is evaluated before the argument list,

lib/src/rules/avoid_redundant_argument_values.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class _Visitor extends SimpleAstVisitor {
146146

147147
// If the constructor being called is a redirecting factory constructor, an
148148
// argument is redundant if it is equal to the default value of the
149-
// corresponding parameter on the _redirectied constructor_, not this
149+
// corresponding parameter on the _redirected constructor_, not this
150150
// constructor, which may be different.
151151

152152
var arguments = node.argumentList.arguments;

lib/src/rules/prefer_final_fields.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class _Visitor extends SimpleAstVisitor<void> {
184184
for (var MapEntry(key: field, value: variable) in fields.entries) {
185185
// TODO(srawlins): We could look at the constructors once and store a set
186186
// of which fields are initialized by any, and a set of which fields are
187-
// initialized by all. This would concievably improve performance.
187+
// initialized by all. This would conceivably improve performance.
188188
var classDeclaration = variable.parent?.parent?.parent;
189189
var constructors = classDeclaration is ClassDeclaration
190190
? classDeclaration.members.whereType<ConstructorDeclaration>()

lib/src/rules/use_build_context_synchronously.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class AsyncStateVisitor extends SimpleAstVisitor<AsyncState> {
252252
(_, null) => leftGuardState,
253253
// Anything on the left followed by async on the right is async.
254254
(_, AsyncState.asynchronous) => AsyncState.asynchronous,
255-
// An async state on the left is superceded by the state on the right.
255+
// An async state on the left is superseded by the state on the right.
256256
(AsyncState.asynchronous, _) => rightGuardState,
257257
// Otherwise just use the state on the left.
258258
(AsyncState.mountedCheck, _) => AsyncState.mountedCheck,

test/rules/unnecessary_string_interpolations_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class UnnecessaryStringInterpolationsTest extends LintRuleTest {
1717
@override
1818
String get lintRule => 'unnecessary_string_interpolations';
1919

20-
test_necessaryInterpolation_adjascentStrings() async {
20+
test_necessaryInterpolation_adjacentStrings() async {
2121
await assertNoDiagnostics(r'''
2222
var a = '';
2323
var b = 'x' '$a';

test/rules/void_checks_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void m({required void p}) {}
105105
]);
106106
}
107107

108-
test_functionArgument_voidParamter_optional() async {
108+
test_functionArgument_voidParameter_optional() async {
109109
await assertDiagnostics(r'''
110110
void f(dynamic p) {
111111
m(p);

test_data/mock_packages/meta/lib/meta.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
library meta;
2020

2121
/// Used to annotate a function `f`. Indicates that `f` always throws an
22-
/// exception. Any functions that override `f`, in class inheritence, are also
22+
/// exception. Any functions that override `f`, in class inheritance, are also
2323
/// expected to conform to this contract.
2424
///
2525
/// Tools, such as the analyzer, can use this to understand whether a block of

0 commit comments

Comments
 (0)