mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:30:32 +00:00
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:
parent
aa7fb9e9e8
commit
10e7e478a2
|
@ -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';
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue