Skip to content

Commit 6697075

Browse files
nshahanCommit Queue
authored andcommitted
[ddc] Fix spelling typos
Change-Id: Iafcf14be1fd3032381b4ced2610230538100ce52 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/433080 Reviewed-by: Mark Zhou <[email protected]>
1 parent e76fcda commit 6697075

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

pkg/dev_compiler/lib/src/compiler/rewrite_async.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ abstract class AsyncRewriterBase extends js_ast.NodeVisitor<Object?> {
17851785
_localVariables.add(valueWrapperVar);
17861786
_localVariables.add(iteratorVar);
17871787

1788-
// Get the iterator object for the iterable expresion.
1788+
// Get the iterator object for the iterable expression.
17891789
_withExpression(node.iterable, (js_ast.Expression iterable) {
17901790
_addExpressionStatement(js_ast.Assignment(
17911791
iteratorVar,
@@ -2134,7 +2134,7 @@ class SyncStarRewriter extends AsyncRewriterBase {
21342134
/// Property of the iterator that contains the current value.
21352135
final js_ast.Expression iteratorCurrentValueProperty;
21362136

2137-
/// Property of the iterator that contains the uncaught exeception.
2137+
/// Property of the iterator that contains the uncaught exception.
21382138
final js_ast.Expression iteratorDatumProperty;
21392139

21402140
/// Property of the iterator that is bound to the `_yieldStar` method.

pkg/dev_compiler/lib/src/kernel/compiler.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
122122
@override
123123
final variableIdentifiers = <VariableDeclaration, js_ast.Identifier>{};
124124

125-
/// Identifiers for kernel variables with an analgous identifier in JS.
125+
/// Identifiers for kernel variables with an analogous identifier in JS.
126126
///
127127
/// [VariableDeclaration.name] is not necessarily a safe identifier for JS
128128
/// transpiled code. The same name can be used in shadowing contexts. We map
@@ -4395,13 +4395,13 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
43954395
}
43964396

43974397
/// Rewrites a `for(;;)` style loop as a while loop to produce the correct
4398-
/// semantics when loop variable initialziers contain function expressions
4398+
/// semantics when loop variable initializers contain function expressions
43994399
/// that close over other loop variables.
44004400
///
44014401
/// The Dart semantics expect that every loop iteration gets fresh loop
44024402
/// variables that can be closed over. The initialization is only executed
44034403
/// for the first iteration. In later iterations, the fresh loop variables are
4404-
/// initalized to the values from the end of the previous iteration.
4404+
/// initialized to the values from the end of the previous iteration.
44054405
///
44064406
/// These semantics differ from JavaScript when there are closures capturing
44074407
/// loop variables so the simple lowering doesn't work as expected.
@@ -4455,7 +4455,7 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
44554455
]),
44564456
]);
44574457
var prevInits = js_ast.Block([
4458-
// Intialize fresh loop variables with the value from the previous
4458+
// Initialize fresh loop variables with the value from the previous
44594459
// iteration.
44604460
for (var variable in node.variables)
44614461
js.statement('# = #;',
@@ -4464,7 +4464,7 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
44644464
for (var update in node.updates) _visitExpression(update).toStatement(),
44654465
]);
44664466
return js_ast.Block([
4467-
// Create temporary variables for the intialization flag and previous
4467+
// Create temporary variables for the initialization flag and previous
44684468
// loop variables.
44694469
js_ast.VariableDeclarationList('let', [
44704470
js_ast.VariableInitialization(initFlagTempId, js_ast.LiteralBool(true)),
@@ -4499,7 +4499,7 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
44994499
// stepping.
45004500
..sourceInformation = _nodeStart(variable),
45014501
]))
4502-
// The while loop gets mapped to the orginal for loop location.
4502+
// The while loop gets mapped to the original for loop location.
45034503
..sourceInformation = _nodeStart(node),
45044504
])
45054505
// Clear the source mapping on the outer block so it doesn't automatically

pkg/dev_compiler/lib/src/kernel/compiler_new.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class LibraryCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
274274
Map<VariableDeclaration, js_ast.Identifier> get variableIdentifiers =>
275275
_symbolData.variableIdentifiers;
276276

277-
/// Identifiers for kernel variables with an analgous identifier in JS.
277+
/// Identifiers for kernel variables with an analogous identifier in JS.
278278
///
279279
/// [VariableDeclaration.name] is not necessarily a safe identifier for JS
280280
/// transpiled code. The same name can be used in shadowing contexts. We map
@@ -1082,7 +1082,7 @@ class LibraryCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
10821082
..._defineExtensionMemberLinks,
10831083
..._nativeExtensionLinks,
10841084
..._typeRuleLinks,
1085-
// Enum extensions must be emitted after type hierachies have stabilized.
1085+
// Enum extensions must be emitted after type hierarchies have stabilized.
10861086
..._enumExtensions
10871087
]);
10881088
var function =
@@ -4907,13 +4907,13 @@ class LibraryCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
49074907
}
49084908

49094909
/// Rewrites a `for(;;)` style loop as a while loop to produce the correct
4910-
/// semantics when loop variable initialziers contain function expressions
4910+
/// semantics when loop variable initializers contain function expressions
49114911
/// that close over other loop variables.
49124912
///
49134913
/// The Dart semantics expect that every loop iteration gets fresh loop
49144914
/// variables that can be closed over. The initialization is only executed
49154915
/// for the first iteration. In later iterations, the fresh loop variables are
4916-
/// initalized to the values from the end of the previous iteration.
4916+
/// initialized to the values from the end of the previous iteration.
49174917
///
49184918
/// These semantics differ from JavaScript when there are closures capturing
49194919
/// loop variables so the simple lowering doesn't work as expected.
@@ -4976,7 +4976,7 @@ class LibraryCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
49764976
for (var update in node.updates) _visitExpression(update).toStatement(),
49774977
]);
49784978
return js_ast.Block([
4979-
// Create temporary variables for the intialization flag and previous
4979+
// Create temporary variables for the initialization flag and previous
49804980
// loop variables.
49814981
js_ast.VariableDeclarationList('let', [
49824982
js_ast.VariableInitialization(initFlagTempId, js_ast.LiteralBool(true)),
@@ -5011,7 +5011,7 @@ class LibraryCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
50115011
// stepping.
50125012
..sourceInformation = _nodeStart(variable),
50135013
]))
5014-
// The while loop gets mapped to the orginal for loop location.
5014+
// The while loop gets mapped to the original for loop location.
50155015
..sourceInformation = _nodeStart(node),
50165016
])
50175017
// Clear the source mapping on the outer block so it doesn't automatically

pkg/dev_compiler/test/expression_compiler/expression_compiler_e2e_suite.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class ExpressionEvaluationTestDriver {
423423
///
424424
/// Internally, this navigates to the bootstrapper page or ensures that the
425425
/// bootstrapper page has already been loaded. The page only loads code
426-
/// without running the DDC app main method. Once the resouces are loaded we
426+
/// without running the DDC app main method. Once the resources are loaded we
427427
/// wait until after the breakpoint is registered before scheduling a call to
428428
/// the app's main method.
429429
Future<T> _onBreakpoint<T>(String breakpointId,
@@ -629,7 +629,7 @@ class ExpressionEvaluationTestDriver {
629629
/// Evaluates a dart [expression] under the scope of [libraryUri] without
630630
/// a breakpoint and validates the result.
631631
///
632-
/// When [libraryUri] is ommitted, the expression is evaluated in the [input]
632+
/// When [libraryUri] is omitted, the expression is evaluated in the [input]
633633
/// library.
634634
///
635635
/// [expectedResult] is the JSON for the returned remote object.
@@ -1067,7 +1067,7 @@ final _ddcTemporaryTypeVariableRegExp = RegExp(r'^__t[\$\w*]+$');
10671067
///
10681068
/// A few steps in the test driver need to wait for a response from the browser.
10691069
/// These are set up with a timeout of usually 5 seconds, but the total time may
1070-
/// vary by machine and architecture. Occationally tests fail with flaky
1070+
/// vary by machine and architecture. Occasionally tests fail with flaky
10711071
/// failures due to a timeout that is too short.
10721072
///
10731073
/// We use this class to help log information from flaky failures that can
@@ -1091,7 +1091,7 @@ class TimeoutTracker {
10911091

10921092
/// Record under [key] a single event that took [milliseconds].
10931093
///
1094-
/// This makes an incremental update to the aggreagate average, max, and count
1094+
/// This makes an incremental update to the aggregate average, max, and count
10951095
/// values in [_data].
10961096
void _addOneRecord(String key, int milliseconds) {
10971097
(_data[key] ??= []).add(milliseconds);

pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ extension Baz on Bar {
10571057
});
10581058

10591059
group('part files expression compilations |', () {
1060-
// WARNING: The (main) source and the part source have been constructred
1060+
// WARNING: The (main) source and the part source have been constructed
10611061
// so that the same offset (71) is valid on both, and both have an 'x'
10621062
// variable, where one is a String and the other is an int. The 4 dots after
10631063
// 'padding' for instance is not a mistake.

pkg/dev_compiler/tool/hotreload/hot_reload_helper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class HotReloadHelper {
9898
return HotReloadHelper._(vmService, id);
9999
}
100100

101-
/// Triggter a hot-reload on the current isolate.
101+
/// Trigger a hot-reload on the current isolate.
102102
Future<ReloadReport> reload() => _vmService.reloadSources(_id);
103103
}
104104

0 commit comments

Comments
 (0)