Fix typos

Fixes #50184

Change-Id: If17f838d932171e30ef92d1bda8d4918e7e08a8f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/263622
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Ahmed Ashour 2022-10-12 14:12:42 +00:00 committed by Commit Queue
parent aa7fb9e9e8
commit 10e7e478a2
9 changed files with 14 additions and 14 deletions

View file

@ -1,5 +1,5 @@
// Copyright (c) 2022, the Dart project authors. Please see the FooUTHORS file // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. Fooll rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
import 'package:analysis_server/lsp_protocol/protocol_generated.dart'; import 'package:analysis_server/lsp_protocol/protocol_generated.dart';

View file

@ -772,7 +772,7 @@
`CompileTimeErrorCode.NOT_ENOUGH_POSITIONAL_ARGUMENTS`. `CompileTimeErrorCode.NOT_ENOUGH_POSITIONAL_ARGUMENTS`.
## 0.38.1 ## 0.38.1
* LinterVistor support for extension method AST nodes. * LinterVisitor support for extension method AST nodes.
## 0.38.0 ## 0.38.0
* The deprecated method `AstFactory.compilationUnit2` has been removed. Clients * The deprecated method `AstFactory.compilationUnit2` has been removed. Clients
@ -834,7 +834,7 @@
* Removed methods `AstVisitor.ForStatement2`, `ListLiteral.elements2`, * Removed methods `AstVisitor.ForStatement2`, `ListLiteral.elements2`,
`SetOrMapLiteral.elements2`, `AstFactory.forStatement2`, and `SetOrMapLiteral.elements2`, `AstFactory.forStatement2`, and
`NodeLintRegistry.addForStatement2`, as well as class `ForStatement2`. Use `NodeLintRegistry.addForStatement2`, as well as class `ForStatement2`. Use
the variants with out the "2" suffix instead. the variants without the "2" suffix instead.
* Changed the signature and behavior of `parseFile` to match `parseFile2`. * Changed the signature and behavior of `parseFile` to match `parseFile2`.
Clients that switched to using `parseFile2` when `parseFile` was deprecated Clients that switched to using `parseFile2` when `parseFile` was deprecated
should now switch back to `parseFile`. should now switch back to `parseFile`.

View file

@ -41,7 +41,7 @@ class DocumentationValidator {
// The mock SDK doesn't define any internal libraries. // The mock SDK doesn't define any internal libraries.
'CompileTimeErrorCode.EXPORT_INTERNAL_LIBRARY', 'CompileTimeErrorCode.EXPORT_INTERNAL_LIBRARY',
// Has code in the example section that needs to be skipped (because it's // Has code in the example section that needs to be skipped (because it's
// part of the explanitory text not part of the example), but there's // part of the explanatory text not part of the example), but there's
// currently no way to do that. // currently no way to do that.
'CompileTimeErrorCode.INVALID_IMPLEMENTATION_OVERRIDE', 'CompileTimeErrorCode.INVALID_IMPLEMENTATION_OVERRIDE',
// Produces two diagnostics when it should only produce one. We could get // Produces two diagnostics when it should only produce one. We could get

View file

@ -1056,13 +1056,13 @@ class Printer extends Visitor<void> with VisitorVoidMixin {
startHighlight(node); startHighlight(node);
} }
if (showOffsets) writeWord("[${node.fileOffset}]"); if (showOffsets) writeWord("[${node.fileOffset}]");
bool needsParenteses = false; bool needsParentheses = false;
if (minimumPrecedence != null && getPrecedence(node) < minimumPrecedence) { if (minimumPrecedence != null && getPrecedence(node) < minimumPrecedence) {
needsParenteses = true; needsParentheses = true;
writeSymbol('('); writeSymbol('(');
} }
writeNode(node); writeNode(node);
if (needsParenteses) { if (needsParentheses) {
writeSymbol(')'); writeSymbol(')');
} }
if (highlight) { if (highlight) {

View file

@ -17,13 +17,13 @@ problem-texts as reported by the compiler.
`severity`: An integer representing severity. This should match the index in `severity`: An integer representing severity. This should match the index in
`package:_fe_analyzer_shared/src/messages/severity.dart`. `package:_fe_analyzer_shared/src/messages/severity.dart`.
`uri`: A possibly null uri that this problems relates to. This is the main uri. `uri`: A possibly null uri that this problem relates to. This is the main uri.
Normally this is not null (but it can be). Normally this is not null (but it can be).
`involvedFiles`: A possibly null list of uris involved in this message. `involvedFiles`: A possibly null list of uris involved in this message.
Normally this is null. Normally this is null.
`codeName`: A string identifing the specific error message. `codeName`: A string identifying the specific error message.
These values are subject to change, but this file will be updated along with any These values are subject to change, but this file will be updated along with any
such changes. On the code-side these are defined in such changes. On the code-side these are defined in

View file

@ -47,5 +47,5 @@ main() {
} }
``` ```
Crash reports will only be sent if the cooresponding [Analytics] object is Crash reports will only be sent if the corresponding [Analytics] object is
configured to send analytics. configured to send analytics.

View file

@ -195,7 +195,7 @@ The `Dart` suite makes certain assumptions about the tests it runs.
* An asynchronous test returns a `Future` from its `main`. * An asynchronous test returns a `Future` from its `main`.
* Tests manages global state. * Tests manage global state.
All tests are imported into the same program as individual libraries, which is why they all must use the same `.packages` file. The tests aren't concatenated, so they have the lexical scope you'd normally expect from a Dart library. All tests are imported into the same program as individual libraries, which is why they all must use the same `.packages` file. The tests aren't concatenated, so they have the lexical scope you'd normally expect from a Dart library.

View file

@ -342,7 +342,7 @@ abstract class Step<I, O, C extends ChainContext> {
/// the next step is executed by the now-ending step. /// the next step is executed by the now-ending step.
/// ///
/// When isAsync is false each step returns a future which is awaited, /// When isAsync is false each step returns a future which is awaited,
/// effectivly meaning that only a single test is run at a time. /// effectively meaning that only a single test is run at a time.
/// ///
/// When isAsync is true that step doesn't return a future (but adds it's /// When isAsync is true that step doesn't return a future (but adds it's
/// future to a list which is awaited before sending an 'entire suite done' /// future to a list which is awaited before sending an 'entire suite done'

View file

@ -98,7 +98,7 @@ class ExpectationSet {
break; break;
default: default:
throw "Unrecoginized key: '$key' in '$map'."; throw "Unrecognized key: '$key' in '$map'.";
} }
}); });
if (name == null) { if (name == null) {