Fix typos

Fixes #49228

TEST=ci

Change-Id: Idcc625554bcf07807bae9791ea37b73ae9394b87
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247960
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Ahmed Ashour 2022-06-10 15:48:54 +00:00 committed by Commit Bot
parent 6970e0907b
commit 8bb3a10e40
11 changed files with 25 additions and 26 deletions

View file

@ -151,10 +151,10 @@ List<N> _getSortedUnique<N extends LspEntity>(List<N> items) {
final nameTypeKey = '${item.name}|${item.runtimeType}';
if (uniqueByName.containsKey(nameTypeKey)) {
// At the time of writing, there were two duplicated types:
// - TextDocumentSyncKind (same defintion in both places)
// - TextDocumentSyncKind (same definition in both places)
// - TextDocumentSyncOptions (first definition is just a subset)
// If this list grows, consider handling this better - or try to have the
// spec updated to be unambigious.
// spec updated to be unambiguous.
print('WARN: More than one definition for $nameTypeKey.');
}

View file

@ -334,7 +334,7 @@ Future sendAndWaitDebugDidSendFirstFrameEvent(Process _server) async {
/* expression */ 'WidgetsBinding.instance.debugDidSendFirstFrameEvent',
/* no definitions */
/* <boundarykey> */ inputKey,
/* no type-defintions */
/* no type-definitions */
/* <boundarykey> */ inputKey,
/* libraryUri */ 'package:flutter/src/widgets/binding.dart',
/* class */ '',
@ -350,7 +350,7 @@ Future sendAndWaitSetSelection(Process _server) async {
'arg1, "dummy_68")',
/* definition #1 */ 'arg1',
/* <boundarykey> */ inputKey,
/* no type-defintions */
/* no type-definitions */
/* <boundarykey> */ inputKey,
/* libraryUri */ 'package:flutter/src/widgets/widget_inspector.dart',
/* class */ '',
@ -366,7 +366,7 @@ Future sendAndWaitToObject(Process _server) async {
'"inspector-836", "tree_112")',
/* no definitions */
/* <boundarykey> */ inputKey,
/* no type-defintions */
/* no type-definitions */
/* <boundarykey> */ inputKey,
/* libraryUri */ 'package:flutter/src/widgets/widget_inspector.dart',
/* class */ '',
@ -382,7 +382,7 @@ Future sendAndWaitToObjectForSourceLocation(Process _server) async {
'toObjectForSourceLocation("inspector-607", "tree_112")',
/* no definitions */
/* <boundarykey> */ inputKey,
/* no type-defintions */
/* no type-definitions */
/* <boundarykey> */ inputKey,
/* libraryUri */ 'package:flutter/src/widgets/widget_inspector.dart',
/* class */ '',

View file

@ -182,7 +182,6 @@ declarative
decrease
decrements
dectcem
defintions
deleting
denylist
depended

View file

@ -1242,7 +1242,7 @@ StreamSubscription<String> listenAndCompile(CompilerInterface compiler,
// definitions (one per line)
// ...
// <boundarykey>
// type-defintions (one per line)
// type-definitions (one per line)
// ...
// <boundarykey>
// <libraryUri: String>

View file

@ -554,7 +554,7 @@ void main() async {
// definitions (one per line)
// ...
// <boundarykey>
// type-defintions (one per line)
// type-definitions (one per line)
// ...
// <boundarykey>
// <libraryUri: String>
@ -644,7 +644,7 @@ void main() async {
// definitions (one per line)
// ...
// <boundarykey>
// type-defintions (one per line)
// type-definitions (one per line)
// ...
// <boundarykey>
// <libraryUri: String>
@ -871,7 +871,7 @@ void main() async {
// definitions (one per line)
// ...
// <boundarykey>
// type-defintions (one per line)
// type-definitions (one per line)
// ...
// <boundarykey>
// <libraryUri: String>
@ -2799,7 +2799,7 @@ void main(List<String> arguments, SendPort sendPort) {
// definitions (one per line)
// ...
// <boundarykey>
// type-defintions (one per line)
// type-definitions (one per line)
// ...
// <boundarykey>
// <libraryUri: String>

View file

@ -147,7 +147,7 @@ static void AssertArgumentsInEnv(FlowGraph* flow_graph, Definition* call) {
->definition(),
call);
} else {
// Redefintion instructions and boxing/unboxing are inserted
// Redefinition instructions and boxing/unboxing are inserted
// without updating environment uses (FlowGraph::RenameDominatedUses,
// FlowGraph::InsertConversionsFor).
// Also, constants may belong to different blocks (e.g. function entry

View file

@ -182,7 +182,7 @@ DART_EXPORT Dart_Handle Dart_EvaluateStaticExpr(Dart_Handle lib_handle,
expr.ToCString(),
/* definitions= */ Array::empty_array(),
/* definition_types= */ Array::empty_array(),
/* type_defintions= */ Array::empty_array(),
/* type_definitions= */ Array::empty_array(),
/* type_bounds= */ Array::empty_array(),
/* type_defaults= */ Array::empty_array(),
String::Handle(lib.url()).ToCString(),

View file

@ -118,7 +118,7 @@ extension MyExt on A {
// No errors: see static_extension_internal_resolution_4_test.dart
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
bool t0 = this.fieldInExtensionScope;
// ^^^^^^^^^^^^^^^^^^^^^
@ -180,7 +180,7 @@ extension MyExt on A {
// No errors: see static_extension_internal_resolution_4_test.dart
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
bool t0 = self.fieldInExtensionScope;
// ^^^^^^^^^^^^^^^^^^^^^

View file

@ -130,7 +130,7 @@ extension MyExt on A {
checkInstanceValue(t0);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}
@ -168,7 +168,7 @@ extension MyExt on A {
checkInstanceValue(t0);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}
@ -219,7 +219,7 @@ class B extends A {
checkInstanceValue(t0);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}
@ -263,7 +263,7 @@ void main() {
checkInstanceValue(t2);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}

View file

@ -120,7 +120,7 @@ extension MyExt on A {
// No errors: see static_extension_internal_resolution_4_test.dart
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
bool t0 = this.fieldInExtensionScope;
// ^^^^^^^^^^^^^^^^^^^^^
@ -182,7 +182,7 @@ extension MyExt on A {
// No errors: see static_extension_internal_resolution_4_test.dart
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
bool t0 = self.fieldInExtensionScope;
// ^^^^^^^^^^^^^^^^^^^^^

View file

@ -132,7 +132,7 @@ extension MyExt on A {
checkInstanceValue(t0);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}
@ -170,7 +170,7 @@ extension MyExt on A {
checkInstanceValue(t0);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}
@ -221,7 +221,7 @@ class B extends A {
checkInstanceValue(t0);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}
@ -265,7 +265,7 @@ void main() {
checkInstanceValue(t2);
}
// Extension members are ambigious.
// Extension members are ambiguous.
{
// Error cases tested in static_extension_internal_resolution_4_error_test.dart
}