Skip to content

Commit 1586ac8

Browse files
asashourCommit Bot
authored and
Commit Bot
committed
Fix typos
TEST=comment only change Fixes #48853 Change-Id: I1fd47b8f186514af95a49ef253170045c584f970 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241963 Reviewed-by: Lasse Nielsen <[email protected]> Reviewed-by: Johnni Winther <[email protected]> Reviewed-by: Slava Egorov <[email protected]> Commit-Queue: Lasse Nielsen <[email protected]>
1 parent ca52d23 commit 1586ac8

13 files changed

+46
-46
lines changed

pkg/dart2native/lib/macho.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ class MachODysymtabCommand extends IMachOLoadCommand<MachODysymtabCommand> {
11761176
* this requires the r_address field to be something other than a section
11771177
* offset to identify the item to be relocated. In this case r_address is
11781178
* set to the offset from the vmaddr of the first LC_SEGMENT command.
1179-
* For MH_SPLIT_SEGS images r_address is set to the the offset from the
1179+
* For MH_SPLIT_SEGS images r_address is set to the offset from the
11801180
* vmaddr of the first read-write LC_SEGMENT command.
11811181
*
11821182
* The relocation entries are grouped by module and the module table
@@ -1412,7 +1412,7 @@ class MachOTwolevelHintsCommand
14121412
* isub_image field is an index into the sub-images (sub-frameworks and
14131413
* sub-umbrellas list) that made up the two-level image that the undefined
14141414
* symbol was found in when it was built by the static link editor. If
1415-
* isub-image is 0 the the symbol is expected to be defined in library and not
1415+
* isub-image is 0 the symbol is expected to be defined in library and not
14161416
* in the sub-images. If isub-image is non-zero it is an index into the array
14171417
* of sub-images for the umbrella with the first index in the sub-images being
14181418
* 1. The array of sub-images is the ordered list of sub-images of the umbrella

pkg/front_end/testcases/regress/issue_36669.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
// @dart=2.9
5-
class NoUnnamedConstuctor {
6-
NoUnnamedConstuctor._();
5+
class NoUnnamedConstructor {
6+
NoUnnamedConstructor._();
77
}
88

99
class MixMeIn {}
1010

11-
class Foo extends NoUnnamedConstuctor with MixMeIn {}
11+
class Foo extends NoUnnamedConstructor with MixMeIn {}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @dart = 2.9
2-
class NoUnnamedConstuctor {
3-
NoUnnamedConstuctor._();
2+
class NoUnnamedConstructor {
3+
NoUnnamedConstructor._();
44
}
55

66
class MixMeIn {}
77

8-
class Foo extends NoUnnamedConstuctor with MixMeIn {}
8+
class Foo extends NoUnnamedConstructor with MixMeIn {}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @dart = 2.9
2-
class Foo extends NoUnnamedConstuctor with MixMeIn {}
2+
class Foo extends NoUnnamedConstructor with MixMeIn {}
33

44
class MixMeIn {}
55

6-
class NoUnnamedConstuctor {
7-
NoUnnamedConstuctor._();
6+
class NoUnnamedConstructor {
7+
NoUnnamedConstructor._();
88
}

pkg/front_end/testcases/regress/issue_36669.dart.weak.expect

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ library;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/regress/issue_36669.dart:11:7: Error: The superclass, 'NoUnnamedConstuctor with MixMeIn', has no unnamed constructor that takes no arguments.
6-
// class Foo extends NoUnnamedConstuctor with MixMeIn {}
5+
// pkg/front_end/testcases/regress/issue_36669.dart:11:7: Error: The superclass, 'NoUnnamedConstructor with MixMeIn', has no unnamed constructor that takes no arguments.
6+
// class Foo extends NoUnnamedConstructor with MixMeIn {}
77
// ^
88
//
99
import self as self;
1010
import "dart:core" as core;
1111

12-
class NoUnnamedConstuctor extends core::Object {
13-
constructor _() → self::NoUnnamedConstuctor*
12+
class NoUnnamedConstructor extends core::Object {
13+
constructor _() → self::NoUnnamedConstructor*
1414
: super core::Object::•()
1515
;
1616
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
@@ -39,12 +39,12 @@ class MixMeIn extends core::Object {
3939
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
4040
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
4141
}
42-
abstract class _Foo&NoUnnamedConstuctor&MixMeIn = self::NoUnnamedConstuctor with self::MixMeIn /*isAnonymousMixin*/ {
43-
synthetic constructor _() → self::_Foo&NoUnnamedConstuctor&MixMeIn*
44-
: super self::NoUnnamedConstuctor::_()
42+
abstract class _Foo&NoUnnamedConstructor&MixMeIn = self::NoUnnamedConstructor with self::MixMeIn /*isAnonymousMixin*/ {
43+
synthetic constructor _() → self::_Foo&NoUnnamedConstructor&MixMeIn*
44+
: super self::NoUnnamedConstructor::_()
4545
;
4646
}
47-
class Foo extends self::_Foo&NoUnnamedConstuctor&MixMeIn {
47+
class Foo extends self::_Foo&NoUnnamedConstructor&MixMeIn {
4848
synthetic constructor •() → self::Foo*
4949
: invalid-initializer
5050
;

pkg/front_end/testcases/regress/issue_36669.dart.weak.modular.expect

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ library;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/regress/issue_36669.dart:11:7: Error: The superclass, 'NoUnnamedConstuctor with MixMeIn', has no unnamed constructor that takes no arguments.
6-
// class Foo extends NoUnnamedConstuctor with MixMeIn {}
5+
// pkg/front_end/testcases/regress/issue_36669.dart:11:7: Error: The superclass, 'NoUnnamedConstructor with MixMeIn', has no unnamed constructor that takes no arguments.
6+
// class Foo extends NoUnnamedConstructor with MixMeIn {}
77
// ^
88
//
99
import self as self;
1010
import "dart:core" as core;
1111

12-
class NoUnnamedConstuctor extends core::Object {
13-
constructor _() → self::NoUnnamedConstuctor*
12+
class NoUnnamedConstructor extends core::Object {
13+
constructor _() → self::NoUnnamedConstructor*
1414
: super core::Object::•()
1515
;
1616
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
@@ -39,12 +39,12 @@ class MixMeIn extends core::Object {
3939
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
4040
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
4141
}
42-
abstract class _Foo&NoUnnamedConstuctor&MixMeIn = self::NoUnnamedConstuctor with self::MixMeIn /*isAnonymousMixin*/ {
43-
synthetic constructor _() → self::_Foo&NoUnnamedConstuctor&MixMeIn*
44-
: super self::NoUnnamedConstuctor::_()
42+
abstract class _Foo&NoUnnamedConstructor&MixMeIn = self::NoUnnamedConstructor with self::MixMeIn /*isAnonymousMixin*/ {
43+
synthetic constructor _() → self::_Foo&NoUnnamedConstructor&MixMeIn*
44+
: super self::NoUnnamedConstructor::_()
4545
;
4646
}
47-
class Foo extends self::_Foo&NoUnnamedConstuctor&MixMeIn {
47+
class Foo extends self::_Foo&NoUnnamedConstructor&MixMeIn {
4848
synthetic constructor •() → self::Foo*
4949
: invalid-initializer
5050
;

pkg/front_end/testcases/regress/issue_36669.dart.weak.outline.expect

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ library;
22
import self as self;
33
import "dart:core" as core;
44

5-
class NoUnnamedConstuctor extends core::Object {
6-
constructor _() → self::NoUnnamedConstuctor*
5+
class NoUnnamedConstructor extends core::Object {
6+
constructor _() → self::NoUnnamedConstructor*
77
;
88
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
99
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf
@@ -30,12 +30,12 @@ class MixMeIn extends core::Object {
3030
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
3131
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
3232
}
33-
abstract class _Foo&NoUnnamedConstuctor&MixMeIn = self::NoUnnamedConstuctor with self::MixMeIn /*isAnonymousMixin*/ {
34-
synthetic constructor _() → self::_Foo&NoUnnamedConstuctor&MixMeIn*
35-
: super self::NoUnnamedConstuctor::_()
33+
abstract class _Foo&NoUnnamedConstructor&MixMeIn = self::NoUnnamedConstructor with self::MixMeIn /*isAnonymousMixin*/ {
34+
synthetic constructor _() → self::_Foo&NoUnnamedConstructor&MixMeIn*
35+
: super self::NoUnnamedConstructor::_()
3636
;
3737
}
38-
class Foo extends self::_Foo&NoUnnamedConstuctor&MixMeIn {
38+
class Foo extends self::_Foo&NoUnnamedConstructor&MixMeIn {
3939
synthetic constructor •() → self::Foo*
4040
;
4141
}

pkg/front_end/testcases/regress/issue_36669.dart.weak.transformed.expect

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ library;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/regress/issue_36669.dart:11:7: Error: The superclass, 'NoUnnamedConstuctor with MixMeIn', has no unnamed constructor that takes no arguments.
6-
// class Foo extends NoUnnamedConstuctor with MixMeIn {}
5+
// pkg/front_end/testcases/regress/issue_36669.dart:11:7: Error: The superclass, 'NoUnnamedConstructor with MixMeIn', has no unnamed constructor that takes no arguments.
6+
// class Foo extends NoUnnamedConstructor with MixMeIn {}
77
// ^
88
//
99
import self as self;
1010
import "dart:core" as core;
1111

12-
class NoUnnamedConstuctor extends core::Object {
13-
constructor _() → self::NoUnnamedConstuctor*
12+
class NoUnnamedConstructor extends core::Object {
13+
constructor _() → self::NoUnnamedConstructor*
1414
: super core::Object::•()
1515
;
1616
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
@@ -39,12 +39,12 @@ class MixMeIn extends core::Object {
3939
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
4040
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
4141
}
42-
abstract class _Foo&NoUnnamedConstuctor&MixMeIn extends self::NoUnnamedConstuctor implements self::MixMeIn /*isAnonymousMixin,isEliminatedMixin*/ {
43-
synthetic constructor _() → self::_Foo&NoUnnamedConstuctor&MixMeIn*
44-
: super self::NoUnnamedConstuctor::_()
42+
abstract class _Foo&NoUnnamedConstructor&MixMeIn extends self::NoUnnamedConstructor implements self::MixMeIn /*isAnonymousMixin,isEliminatedMixin*/ {
43+
synthetic constructor _() → self::_Foo&NoUnnamedConstructor&MixMeIn*
44+
: super self::NoUnnamedConstructor::_()
4545
;
4646
}
47-
class Foo extends self::_Foo&NoUnnamedConstuctor&MixMeIn {
47+
class Foo extends self::_Foo&NoUnnamedConstructor&MixMeIn {
4848
synthetic constructor •() → self::Foo*
4949
: invalid-initializer
5050
;

runtime/vm/constants_ia32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ enum Register {
3131
kNoRegister = -1, // Signals an illegal register.
3232
};
3333

34-
// Low and high bytes registers of the the first four general purpose registers.
34+
// Low and high bytes registers of the first four general purpose registers.
3535
// The other four general purpose registers do not have byte registers.
3636
enum ByteRegister {
3737
AL = 0,

runtime/vm/source_report.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bool SourceReport::ShouldSkipFunction(const Function& func) {
118118
}
119119

120120
// There is an idiom where static utility classes are given a private
121-
// constructor to prevent the the class from being instantiated. Ignore these
121+
// constructor to prevent the class from being instantiated. Ignore these
122122
// constructors so that they don't lower the coverage rate. See #47021.
123123
SafepointReadRwLocker ml(thread_, thread_->isolate_group()->program_lock());
124124
if (func.kind() == UntaggedFunction::kConstructor &&

sdk/lib/_internal/vm/lib/finalizer_patch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _FinalizerImpl<T> extends FinalizerBase implements Finalizer<T> {
2424
///
2525
/// This is fine as a non-atomic operation, because the GC only looks at
2626
/// finalizer instances when it process their entries. By preventing inlining
27-
/// we ensure the the finalizer to have been fully initialized by the time
27+
/// we ensure the finalizer to have been fully initialized by the time
2828
/// any [attach] on it is called.
2929
///
3030
/// Alternatively, we could make it a recognized method and add a reachability

tests/language/implicit_creation/implicit_const_context_not_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class C {
2525
const C.c2() : v = const C();
2626
const C.c3() : v = const C(C());
2727

28-
// Expression in redirecting generative const constuctor.
28+
// Expression in redirecting generative const constructor.
2929
const C.r1() : this(C()); //# 3: compile-time error
3030
const C.r2() : this(const C());
3131
const C.r3() : this(const C(C()));

tests/language_2/implicit_creation/implicit_const_context_not_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class C {
2727
const C.c2() : v = const C();
2828
const C.c3() : v = const C(C());
2929

30-
// Expression in redirecting generative const constuctor.
30+
// Expression in redirecting generative const constructor.
3131
const C.r1() : this(C()); //# 3: compile-time error
3232
const C.r2() : this(const C());
3333
const C.r3() : this(const C(C()));

0 commit comments

Comments
 (0)