Skip to content

Commit 40e1890

Browse files
anisalibegicCommit Bot
authored and
Commit Bot
committed
Fixed various typos in a lot of files
Closes #49478 TEST=Manual GitOrigin-RevId: f4c9c68 Change-Id: I134a97caed4eec59d70e9cbca16b7e9a472cf2c1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251902 Reviewed-by: Michael Thomsen <[email protected]> Commit-Queue: Alexander Thomas <[email protected]> Reviewed-by: Aske Simon Christensen <[email protected]> Reviewed-by: Kevin Chisholm <[email protected]> Reviewed-by: Alexander Thomas <[email protected]>
1 parent 286326f commit 40e1890

File tree

116 files changed

+140
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+140
-140
lines changed

.github/ISSUE_TEMPLATE/1_cherry_pick.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ body:
2727
id: issue_description
2828
attributes:
2929
label: Issue Description
30-
description: Brief description of the issue. What is the issue? What platforms are the problems occuring on?
30+
description: Brief description of the issue. What is the issue? What platforms are the problems occurring on?
3131
validations:
3232
required: true
3333
- type: textarea

.mailmap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file contains name to mail address mappings that are usefull
1+
# This file contains name to mail address mappings that are useful
22
# for old svn based commits (to get nice names instead of mail in blame and
33
# other tools)
44
Adam Klein <[email protected]>

benchmarks/BigIntParsePrint/dart/BigIntParsePrint.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:fixnum/fixnum.dart';
1212
import 'native_version_dummy.dart'
1313
if (dart.library.js) 'native_version_javascript.dart';
1414

15-
// Benckmark BigInt and Int64 formatting and parsing.
15+
// Benchmark BigInt and Int64 formatting and parsing.
1616

1717
// A global sink that is used in the [check] method ensures that the results are
1818
// not optimized.
@@ -49,7 +49,7 @@ class Benchmark extends BenchmarkBase {
4949
if (b.bitLength < bits) {
5050
restartDelta += seed >> 20;
5151
restartDelta += BigInt.one;
52-
// Restart from a slighly reduced seed to generate different numbers.
52+
// Restart from a slightly reduced seed to generate different numbers.
5353
b = seed - restartDelta;
5454
}
5555
var string = b.toString();
@@ -310,7 +310,7 @@ void main() {
310310
selectFormatNativeBigIntBenchmark('JsBigInt.toString.4096.bits', 4096),
311311
];
312312

313-
// Warm up all benchmarks to ensure consistent behavious of shared code.
313+
// Warm up all benchmarks to ensure consistent behavior of shared code.
314314
benchmarks.forEach((bm) => bm()
315315
..setup()
316316
..run()

benchmarks/Richards/dart/Richards.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ class HandlerTask extends Task {
414414
}
415415

416416
/// A simple package of data that is manipulated by the tasks. The exact layout
417-
/// of the payload data carried by a packet is not importaint, and neither is
417+
/// of the payload data carried by a packet is not important, and neither is
418418
/// the nature of the work performed on packets by the tasks. Besides carrying
419419
/// data, packets form linked lists and are hence used both as data and
420420
/// worklists.

benchmarks/Richards/dart2/Richards.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class HandlerTask extends Task {
418418
}
419419

420420
/// A simple package of data that is manipulated by the tasks. The exact layout
421-
/// of the payload data carried by a packet is not importaint, and neither is
421+
/// of the payload data carried by a packet is not important, and neither is
422422
/// the nature of the work performed on packets by the tasks. Besides carrying
423423
/// data, packets form linked lists and are hence used both as data and
424424
/// worklists.

benchmarks/Richards/javascript/Richards.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ var DATA_SIZE = 4;
497497

498498
/**
499499
* A simple package of data that is manipulated by the tasks. The exact layout
500-
* of the payload data carried by a packet is not importaint, and neither is the
500+
* of the payload data carried by a packet is not important, and neither is the
501501
* nature of the work performed on packets by the tasks.
502502
*
503503
* Besides carrying data, packets form linked lists and are hence used both as

build/mac/change_mach_o_flags.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def CheckedRead(file, count):
121121

122122

123123
def ReadUInt32(file, endian):
124-
"""Reads an unsinged 32-bit integer from the file-like |file| object,
124+
"""Reads an unsigned 32-bit integer from the file-like |file| object,
125125
treating it as having endianness specified by |endian| (per the |struct|
126126
module), and returns it as a number. Raises a MachOError if the proper
127127
length of data can't be read from |file|."""
@@ -160,7 +160,7 @@ def ReadFatArch(file):
160160

161161

162162
def WriteUInt32(file, uint32, endian):
163-
"""Writes |uint32| as an unsinged 32-bit integer to the file-like |file|
163+
"""Writes |uint32| as an unsigned 32-bit integer to the file-like |file|
164164
object, treating it as having endianness specified by |endian| (per the
165165
|struct| module)."""
166166

pkg/_fe_analyzer_shared/test/macros/executor/simple_macro.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:_fe_analyzer_shared/src/macros/api.dart';
88

99
/// A very simple macro that augments any declaration it is given, usually
1010
/// adding print statements and inlining values from the declaration object
11-
/// for comparision with expected values in tests.
11+
/// for comparison with expected values in tests.
1212
///
1313
/// When applied to [MethodDeclaration]s there is some extra work that happens
1414
/// to validate the introspection APIs work as expected.

pkg/analysis_server/lib/lsp_protocol/protocol_generated.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ typedef TextDocumentSignatureHelpResult = SignatureHelp?;
306306

307307
/// Result for a request to resolve the type definition locations of a symbol at
308308
/// a given text document position. The request's parameter is of type
309-
/// TextDocumentPositioParams the response is of type Definition or a Thenable
309+
/// TextDocumentPositionParams the response is of type Definition or a Thenable
310310
/// that resolves to such.
311311
typedef TextDocumentTypeDefinitionResult
312312
= Either2<Definition, List<DefinitionLink>>?;
@@ -21955,7 +21955,7 @@ class PreviousResultId implements ToJsonable {
2195521955
);
2195621956
}
2195721957

21958-
/// The URI for which the client knowns a result id.
21958+
/// The URI for which the client knows a result id.
2195921959
final DocumentUri uri;
2196021960

2196121961
/// The value of the previous result id.

pkg/analyzer/lib/src/summary2/ast_binary_writer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class AstBinaryWriter extends ThrowingAstVisitor<void> {
434434
}
435435
}
436436

437-
// TODO(scheglov) Dont write type, AKA separate true `int` and `double`?
437+
// TODO(scheglov) Don't write type, AKA separate true `int` and `double`?
438438
_storeExpression(node);
439439
}
440440

pkg/analyzer/lib/src/workspace/bazel_watcher.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ abstract class PollTrigger {
432432
///
433433
/// The idea here is to detect when Bazel finished running and use that to
434434
/// trigger polling. To detect that we use the `command.log` file that bazel
435-
/// contiuously updates as the build progresses. We find that file based on [1]:
435+
/// continuously updates as the build progresses. We find that file based on [1]:
436436
///
437437
/// - In the workspace directory there should be a `bazel-out` symlink whose
438438
/// target should be of the form:

pkg/async_helper/lib/async_helper.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Future<void> asyncTest(f()) {
8989
return f().then(asyncSuccess);
9090
}
9191

92-
/// Verifies that the asyncronous [result] throws a [T].
92+
/// Verifies that the asynchronous [result] throws a [T].
9393
///
9494
/// Fails if [result] completes with a value, or it completes with
9595
/// an error which is not a [T].

pkg/compiler/lib/src/elements/types.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ abstract class DartTypes {
22692269
type is FunctionTypeVariable && canAssignGenericFunctionTo(type.bound);
22702270
}
22712271

2272-
/// Returns `true` if [type] occuring in a program with no sound null safety
2272+
/// Returns `true` if [type] occurring in a program with no sound null safety
22732273
/// cannot accept `null` under sound rules.
22742274
bool isNonNullableIfSound(DartType type) {
22752275
if (type is DynamicType ||

pkg/compiler/lib/src/inferrer/powersets/powerset_bits.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ class PowersetBitsDomain {
523523
// type and is maximal (i.e. instantiated to bounds), the typemask,
524524
// which is based on the class element, is still precise. We check
525525
// against Top for the parameter arguments since we don't have a
526-
// convenient check for instantation to bounds.
526+
// convenient check for instantiation to bounds.
527527
//
528528
// TODO(sra): Check arguments against bounds.
529529
// TODO(sra): Handle other variances.

pkg/compiler/lib/src/inferrer/type_system.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ class TypeSystem {
569569
return _addPhi(node, variable, inputType, isTry);
570570
}
571571

572-
/// Simplies the phi representing [element] and of the type
572+
/// Simplifies the phi representing [element] and of the type
573573
/// [phiType]. For example, if this phi has one incoming input, an
574574
/// implementation of this method could just return that incoming
575575
/// input type.

pkg/compiler/lib/src/inferrer/typemasks/masks.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class CommonMasks implements AbstractValueDomain {
352352
// type and is maximal (i.e. instantiated to bounds), the typemask,
353353
// which is based on the class element, is still precise. We check
354354
// against Top for the parameter arguments since we don't have a
355-
// convenient check for instantation to bounds.
355+
// convenient check for instantiation to bounds.
356356
//
357357
// TODO(sra): Check arguments against bounds.
358358
// TODO(sra): Handle other variances.

pkg/compiler/lib/src/io/position_information.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -841,10 +841,10 @@ enum StepKind {
841841

842842
/// Listener for the [JavaScriptTracer].
843843
abstract class TraceListener {
844-
/// Called before [root] node is procesed by the [JavaScriptTracer].
844+
/// Called before [root] node is processed by the [JavaScriptTracer].
845845
void onStart(js.Node root) {}
846846

847-
/// Called after [root] node has been procesed by the [JavaScriptTracer].
847+
/// Called after [root] node has been processed by the [JavaScriptTracer].
848848
void onEnd(js.Node root) {}
849849

850850
/// Called when a branch of the given [kind] is started. [value] is provided

pkg/compiler/lib/src/io/source_information.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract class SourceInformation extends JavaScriptNodeSourceInformation {
6666
/// Context information about inlined calls.
6767
///
6868
/// This is associated with SourceInformation objects to be able to emit
69-
/// precise data about inlining that can then be used by defobuscation tools
69+
/// precise data about inlining that can then be used by deobfuscation tools
7070
/// when reconstructing a source stack from a production stack trace.
7171
class FrameContext {
7272
static const String tag = 'frame-context';

pkg/compiler/lib/src/ir/scope_visitor.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class ScopeModelBuilder extends ir.Visitor<EvaluationComplexity>
118118
assert(node is ir.Procedure || node is ir.Constructor);
119119
if (!(node is ir.Procedure && node.isRedirectingFactory)) {
120120
// Skip redirecting factories: they contain invalid expressions only
121-
// used to suppport internal CFE modular compilation.
121+
// used to support internal CFE modular compilation.
122122
node.accept(this);
123123
}
124124
}

pkg/compiler/lib/src/js/placeholder_safety.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ typedef PositionPredicate = bool Function(int position);
1010

1111
/// PlaceholderSafetyAnalysis determines which placeholders in a JavaScript
1212
/// template may be replaced with an arbitrary expression. Placeholders may be
13-
/// replaced with an arbitrary expression providied the template ensures the
13+
/// replaced with an arbitrary expression provided the template ensures the
1414
/// placeholders are evaluated in the same left-to-right order with no
1515
/// additional effects interleaved.
1616
///

pkg/compiler/lib/src/js_backend/frequency_assignment.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class _Pool {
176176
/// entities are identified by integers.
177177
class _Cohort {
178178
_Cohort? next; // Next cohort in decreasing frequency.
179-
final int count; // This is the cohort of items occuring [count] times.
179+
final int count; // This is the cohort of items occurring [count] times.
180180
Set<int> unassigned = Set();
181181

182182
_Cohort(this.count);

pkg/compiler/lib/src/js_backend/string_reference.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/// foo1() => 'A very long string';
1111
///
1212
/// might be compiled to something like the following, where StringReference1 is
13-
/// assocatied with the string `'A very long string'`.
13+
/// associated with the string `'A very long string'`.
1414
///
1515
/// foo1: function() {
1616
/// return StringReference1;
@@ -77,7 +77,7 @@ class StringReferencePolicy {
7777
// (hot, cold, execute-once, etc).
7878
static const int shortestSharedLength = 40;
7979

80-
// TODO(sra): Add policy for huge non-shared strings, strings occuring in
80+
// TODO(sra): Add policy for huge non-shared strings, strings occurring in
8181
// run-once code, etc. Maybe make policy settings assignable for testing or
8282
// command-line configuration.
8383
}

pkg/compiler/lib/src/js_backend/type_reference.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class TypeReferenceFinalizerImpl implements TypeReferenceFinalizer {
390390
}
391391

392392
// TODO(sra): There are other contexts that would be beneficial, e.g. a
393-
// type reference occuring only in a throw expression.
393+
// type reference occurring only in a throw expression.
394394

395395
String suggestedName = _RecipeToIdentifier().run(referenceSet.recipe);
396396
if (usedNames.contains(suggestedName)) {

pkg/compiler/lib/src/js_model/type_recipe.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ class _Substitution extends DartTypeSubstitutionVisitor<Null> {
559559
int count = _counts[variable] = (_counts[variable] ?? 0) + 1;
560560
if (count > 1) {
561561
// If the replacement is 'big', duplicating it can grow the term, perhaps
562-
// exponentially given a sufficently pathological input.
562+
// exponentially given a sufficiently pathological input.
563563
// TODO(sra): Fix exponential terms by encoding a DAG in recipes to avoid
564564
// linearization.
565565
if (replacement is FunctionType ||

pkg/compiler/tool/kernel_visitor/dart_html_metrics_visitor.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MetricsVisitor extends RecursiveVisitor {
6969

7070
@override
7171
void visitClass(Class node) {
72-
// Dont want to add duplicate info.
72+
// Don't want to add duplicate info.
7373
// When mixed, anonymous mixin class generated so we want to ignore.
7474
if (!node.isAnonymousMixin) {
7575
currentClass = node.name;

pkg/dartdev/lib/src/sdk.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Runtime {
114114

115115
static Runtime _createSingleton() {
116116
var versionString = Platform.version;
117-
// Exepcted format: "version (channel) ..."
117+
// Expected format: "version (channel) ..."
118118
var version = versionString;
119119
String? channel;
120120
var versionEnd = versionString.indexOf(' ');

pkg/frontend_server/lib/src/strong_components.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class StrongComponents {
3434
/// The Component that is being compiled.
3535
///
3636
/// On incremental compiles, this will only contain the invalidated
37-
/// lbraries.
37+
/// libraries.
3838
final Component component;
3939

4040
/// The libraries loaded from a dill file that should not be processed.

pkg/js/proposal.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ class MyDartClass extends TheirJSClass {
13701370
final int x = 1;
13711371
int y, z;
13721372
factory MyDartClass(int y, int z) {
1373-
// super constructpr parameters passed here?
1373+
// super constructor parameters passed here?
13741374
var self = createJS<MyDartClass>();
13751375
self.y = y;
13761376
self.z = z;

pkg/kernel/lib/transformations/track_widget_constructor_locations.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class WidgetCreatorTracker {
433433
///
434434
/// Upon transformation the [changedStructureNotifier] (if provided) is used
435435
/// to notify the listener that that class hierarchy of certain classes has
436-
/// changed. This is neccesary for instance when doing an incremental
436+
/// changed. This is necessary for instance when doing an incremental
437437
/// compilation where the class hierarchy is kept between compiles and thus
438438
/// has to be kept up to date.
439439
void transform(Component module, List<Library> libraries,

pkg/modular_test/lib/src/pipeline.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/// Abstraction for a compilation pipeline.
66
///
7-
/// A pipeline defines how modular steps are excuted and ensures that a step
7+
/// A pipeline defines how modular steps are executed and ensures that a step
88
/// only has access to the data it declares.
99
///
1010
/// The abstract implementation validates how the data is declared, and the
@@ -42,7 +42,7 @@ class ModularStep {
4242
/// Whether this step is only executed on the main module.
4343
final bool onlyOnMain;
4444

45-
/// Whether this step is only exceuted on the SDK.
45+
/// Whether this step is only executed on the SDK.
4646
final bool onlyOnSdk;
4747

4848
/// Whether this step is not executed on the SDK.

pkg/nnbd_migration/test/api_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ abstract class _ProvisionalApiTestBase extends AbstractContextTest {
111111
}
112112
}
113113

114-
/// Verifies that migraiton of the single file with the given [content]
114+
/// Verifies that migration of the single file with the given [content]
115115
/// produces the [expected] output.
116116
///
117117
/// Optional parameter [removeViaComments] indicates whether dead code should

pkg/test_runner/lib/src/process_queue.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class ProcessQueue {
149149

150150
eventFinishedTestCase(finishedTestCase);
151151
}, onDone: () {
152-
// Wait until the commandQueue/exectutor is done (it may need to stop
152+
// Wait until the commandQueue/executor is done (it may need to stop
153153
// batch runners, browser controllers, ....)
154154
commandQueue.done.then((_) {
155155
cancelDebugTimer();

pkg/test_runner/test/skipping_dart2js_compilations_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import 'package:test_runner/src/test_case.dart';
2929

3030
import 'utils.dart';
3131

32-
/// This class is reponsible for setting up the files necessary for this test
32+
/// This class is responsible for setting up the files necessary for this test
3333
/// as well as touching a file.
3434
class FileUtils {
3535
late Directory tempDir;

pkg/vm_service/lib/src/vm_service.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ class RPCError implements Exception {
24422442

24432443
String? get details => data == null ? null : data!['details'];
24442444

2445-
/// Return a map representation of this error suitable for converstion to
2445+
/// Return a map representation of this error suitable for conversion to
24462446
/// json.
24472447
Map<String, dynamic> toMap() {
24482448
Map<String, dynamic> map = {

pkg/vm_service/tool/dart/generate_dart.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class RPCError implements Exception {
292292
293293
String? get details => data == null ? null : data!['details'];
294294
295-
/// Return a map representation of this error suitable for converstion to
295+
/// Return a map representation of this error suitable for conversion to
296296
/// json.
297297
Map<String, dynamic> toMap() {
298298
Map<String, dynamic> map = {

runtime/include/dart_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_RunLoop(void);
16151615
* \param error A non-NULL pointer which will hold an error message if the call
16161616
* fails. The error has to be free()ed by the caller.
16171617
*
1618-
* \return If successfull the VM takes owernship of the isolate and takes care
1618+
* \return If successful the VM takes owernship of the isolate and takes care
16191619
* of its message loop. If not successful the caller retains owernship of the
16201620
* isolate.
16211621
*/

runtime/observatory/lib/src/elements/heap_snapshot.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class MergedDominatorDiff {
418418
for (var i = 0; i < worklist.length; i++) {
419419
worklist[i]._computeChildren(worklist);
420420
}
421-
// Compute area botton-up.
421+
// Compute area bottom-up.
422422
for (var i = worklist.length - 1; i >= 0; i--) {
423423
worklist[i]._computeArea();
424424
}

runtime/observatory/lib/src/elements/process_snapshot.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class ProcessItemDiff {
113113
for (var i = 0; i < worklist.length; i++) {
114114
worklist[i]._computeChildren(worklist);
115115
}
116-
// Compute area botton-up.
116+
// Compute area bottom-up.
117117
for (var i = worklist.length - 1; i >= 0; i--) {
118118
worklist[i]._computeArea();
119119
}

0 commit comments

Comments
 (0)