Skip to content

Commit b48dc3a

Browse files
jsorefCommit Queue
authored and
Commit Queue
committed
Spelling tools
Closes #50773 GitOrigin-RevId: 8f729bf Change-Id: I5a07bf96a2f8920560983fda504000c39e598e05 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276560 Reviewed-by: Srujan Gaddam <[email protected]> Reviewed-by: Jonas Termansen <[email protected]> Reviewed-by: Erik Ernst <[email protected]>
1 parent 60a8ba1 commit b48dc3a

17 files changed

+32
-32
lines changed

tools/bots/bot_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(self,
109109
else:
110110
self.bucket = 'gs://dart-archive'
111111

112-
# Functions for quering complete gs:// filepaths
112+
# Functions for querying complete gs:// filepaths
113113

114114
def version_filepath(self, revision):
115115
return '%s/channels/%s/%s/%s/VERSION' % (self.bucket, self.channel,
@@ -156,7 +156,7 @@ def misc_directory(self, revision):
156156
def _variant_directory(self, name, revision):
157157
return '%s/%s' % (self.base_directory(revision), name)
158158

159-
# Functions for quering filenames
159+
# Functions for querying filenames
160160

161161
def dartdocs_zipfilename(self):
162162
return 'dartdocs-gen-api.zip'

tools/bots/update_blamelists.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void updateBlameLists(String configuration, String commit,
140140
result.blamelistStartIndex = newStartIndex;
141141
var updateIndex = Update(['blamelist_start_index'], result.data);
142142
if (!await database.commit(writes: [updateIndex])) {
143-
// Commiting the change to the database had a conflict, retry.
143+
// Committing the change to the database had a conflict, retry.
144144
needsRetry = true;
145145
if (++attempts == maxAttempts) {
146146
throw Exception('Exceeded maximum retry attempts ($maxAttempts).');

tools/buildtools/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def LinksForGitCLFormat():
7676
def main(argv):
7777
arch_id = platform.machine()
7878
# Don't try to download binaries if we're on an arm machine unless it is a
79-
# Mac arm machine because the x64 binaries work using rossetta translation.
79+
# Mac arm machine because the x64 binaries work using rosetta translation.
8080
if ((arch_id.startswith('arm') and sys.platform != 'darwin') or
8181
arch_id.startswith('aarch64')):
8282
print('Not downloading buildtools binaries for ' + arch_id)

tools/diff_results.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,22 +212,22 @@ List<CommonGroup> buildCommonGroups(String commitA, String commitB,
212212
while (h < diffs.length) {
213213
final d = diffs[h++];
214214
final builders = <String>{}..add(d.builder);
215-
final gropupDiffs = <Diff>[d];
215+
final groupDiffs = <Diff>[d];
216216

217217
while (h < diffs.length) {
218218
final nd = diffs[h];
219219
if (d.test == nd.test) {
220220
if (d.sameExpectationDifferenceAs(nd)) {
221221
builders.add(nd.builder);
222-
gropupDiffs.add(nd);
222+
groupDiffs.add(nd);
223223
h++;
224224
continue;
225225
}
226226
}
227227
break;
228228
}
229229

230-
groups.add(GroupedDiff(d.test, builders.toList()..sort(), gropupDiffs));
230+
groups.add(GroupedDiff(d.test, builders.toList()..sort(), groupDiffs));
231231
}
232232

233233
final commonGroups = <String, List<GroupedDiff>>{};

tools/dom/docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3817,7 +3817,7 @@
38173817
" * ## Other resources",
38183818
" *",
38193819
" * * [Measuring page load speed with navigation",
3820-
" * timeing](http://www.html5rocks.com/en/tutorials/webperformance/basics/)",
3820+
" * timing](http://www.html5rocks.com/en/tutorials/webperformance/basics/)",
38213821
" * from HTML5Rocks.",
38223822
" * * [Navigation timing",
38233823
" * specification](http://www.w3.org/TR/navigation-timing/) from W3C.",

tools/dom/scripts/dartmetadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@Returns('NodeList|HtmlCollection')",
8080
],
8181

82-
# querysSelectorAll never returns `null`.
82+
# querySelectorAll never returns `null`.
8383
'Document.querySelectorAll': [
8484
"@Creates('NodeList')",
8585
"@Returns('NodeList')",

tools/dom/scripts/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def Delete(self):
6565
self._all_interfaces = {}
6666

6767
def _ScanForInterfaces(self):
68-
"""Iteratores over the database files and lists all interface names.
68+
"""Iterates over the database files and lists all interface names.
6969
7070
Return:
7171
A list of interface names.

tools/dom/scripts/databasebuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def has_annotations(idl_node):
505505
return changed
506506

507507
def _merge_impl_stmt(self, impl_stmt, import_options):
508-
"""Applies "X implements Y" statemetns on the proper places in the
508+
"""Applies "X implements Y" statements on the proper places in the
509509
database"""
510510
implementor_name = impl_stmt.implementor.id
511511
implemented_name = impl_stmt.implemented.id

tools/dom/scripts/emitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def Emit(self, template_source, **parameters):
4949
corresponding emitter.
5050
5151
Subtemplates can be created by using $#NAME(...), where text can be placed
52-
inside of the parentheses and will conditionally expand depdending on if
52+
inside of the parentheses and will conditionally expand depending on if
5353
NAME is set to True or False. The text inside the parentheses may use
5454
further $#NAME and $NAME substitutions, but is not permitted to create
5555
holes.

tools/dom/scripts/htmldartgenerator.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -536,23 +536,23 @@ def Mixins(self):
536536
return mixins
537537

538538
def AddConstructors(self, constructors, factory_name,
539-
factory_constructor_name, emmiter):
539+
factory_constructor_name, emitter):
540540
""" Adds all of the constructors.
541541
Arguments:
542542
constructors - List of the constructors to be added.
543543
factory_name - Name of the factory for this class.
544544
factory_constructor_name - The name of the constructor on the
545545
factory_name to call (calls an autogenerated FactoryProvider
546546
if unspecified)
547-
emmiter - Emmiter used to emit constructors when generating classes
547+
emitter - Emitter used to emit constructors when generating classes
548548
using the static extension pattern.
549549
"""
550550
for constructor_info in constructors:
551551
self._AddConstructor(constructor_info, factory_name,
552-
factory_constructor_name, emmiter)
552+
factory_constructor_name, emitter)
553553

554554
def _AddConstructor(self, constructor_info, factory_name,
555-
factory_constructor_name, emmiter):
555+
factory_constructor_name, emitter):
556556
# Hack to ignore the constructor used by JavaScript.
557557
if ((self._interface.id == 'HTMLImageElement' or
558558
self._interface.id == 'Blob' or
@@ -566,7 +566,7 @@ def _AddConstructor(self, constructor_info, factory_name,
566566
metadata = self._metadata.GetFormattedMetadata(
567567
self._library_name, self._interface, self._interface.id, ' ')
568568

569-
target_emitter = emmiter if emmiter else self._members_emitter
569+
target_emitter = emitter if emitter else self._members_emitter
570570

571571
if not factory_constructor_name:
572572
factory_constructor_name = '_create'
@@ -669,7 +669,7 @@ def GenerateCall(stmts_emitter, call_emitter, version,
669669
FACTORY_NAME=qualified_name,
670670
FACTORY_PARAMS=args)
671671
self.EmitStaticFactoryOverload(constructor_info, name,
672-
arguments, emmiter)
672+
arguments, emitter)
673673

674674
def IsOptional(signature_index, argument):
675675
return self.IsConstructorArgumentOptional(argument)
@@ -817,13 +817,13 @@ def _AddFutureifiedOperation(self, info, html_name):
817817
FUTURE_GENERIC=future_generic,
818818
ORIGINAL_FUNCTION=html_name)
819819

820-
def EmitHelpers(self, base_class, emmiter):
821-
if (not self._members_emitter) and (not emmiter):
820+
def EmitHelpers(self, base_class, emitter):
821+
if (not self._members_emitter) and (not emitter):
822822
return
823823

824824
if self._interface.id not in custom_html_constructors:
825-
target_emmiter = emmiter if emmiter else self._members_emitter
826-
target_emmiter.Emit(
825+
target_emitter = emitter if emitter else self._members_emitter
826+
target_emitter.Emit(
827827
' // To suppress missing implicit constructor warnings.\n'
828828
' factory $CLASSNAME._() { '
829829
'throw new UnsupportedError("Not supported"); }\n',

tools/dom/scripts/idlsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def getCurrentDartSHA():
340340
return dart_sha
341341

342342

343-
# Returns the SHA of the Dartium/Chromiun in the DEPS file.
343+
# Returns the SHA of the Dartium/Chromium in the DEPS file.
344344
def GetDEPSWebCoreGitRevision(deps, component):
345345
"""Returns a tuple with the (dartium chromium repo, latest revision)."""
346346
foundIt = re.search(WEBKIT_SHA_PATTERN, deps)

tools/dom/scripts/systemhtml.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def GenerateInterface(self):
755755
class_modifiers = ''
756756
else:
757757
# For Dartium w/ JsInterop these suppressed interfaces are needed to
758-
# instanciate the internal classes.
758+
# instantiate the internal classes.
759759
if (self._renamer.ShouldSuppressInterface(self._interface) and
760760
not (isinstance(self._backend, Dart2JSBackend)) and
761761
self._options.dart_js_interop):
@@ -840,7 +840,7 @@ def GenerateInterface(self):
840840
implementation_members_emitter = \
841841
implementation_members_emitter[2]
842842

843-
# We add special emmiters for classes migrated to static type extensions
843+
# We add special emitters for classes migrated to static type extensions
844844
elif (len(implementation_members_emitter) == 2):
845845
class_members_emitter = \
846846
implementation_members_emitter[0]
@@ -1394,7 +1394,7 @@ def IsConstructorArgumentOptional(self, argument):
13941394
return argument.optional
13951395

13961396
def EmitStaticFactoryOverload(self, constructor_info, name, arguments,
1397-
emmiter):
1397+
emitter):
13981398
if self._interface_type_info.has_generated_interface():
13991399
# Use dart_type name, we're generating.
14001400
interface_name = self._interface_type_info.interface_name()
@@ -1406,7 +1406,7 @@ def EmitStaticFactoryOverload(self, constructor_info, name, arguments,
14061406
arguments = constructor_info.ParametersAsArgumentList(index)
14071407
if arguments:
14081408
arguments = ', ' + arguments
1409-
(emmiter if (emmiter != None) else self._members_emitter).Emit(
1409+
(emitter if (emitter != None) else self._members_emitter).Emit(
14101410
" static $INTERFACE_NAME $NAME($PARAMETERS) => "
14111411
"JS('$INTERFACE_NAME', 'new $CTOR_NAME($PLACEHOLDERS)'$ARGUMENTS);\n",
14121412
INTERFACE_NAME=interface_name,

tools/dom/scripts/templateloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, root, subpaths, conditions={}):
2626
Args:
2727
root - a string, the directory under which the templates are stored.
2828
subpaths - a list of strings, subpaths of root in search order.
29-
conditions - a dictionay from strings to booleans. Any conditional
29+
conditions - a dictionary from strings to booleans. Any conditional
3030
expression must be a key in the map.
3131
"""
3232
self._root = root

tools/dom/src/native_DOMImplementation.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class _Utils {
321321
try {
322322
return new DateTime.fromMillisecondsSinceEpoch(dateTime.toInt());
323323
} catch (_) {
324-
// TODO(antonnm): treat exceptions properly in bindings and
324+
// TODO(antonm): treat exceptions properly in bindings and
325325
// find out how to treat NaNs.
326326
return null;
327327
}

tools/linux_dist_support/linux_distribution_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def SrcSteps():
112112
sys.executable, 'tools/build.py', '--no-goma', '--mode=release',
113113
'--arch=x64', 'runtime'
114114
])
115-
# Copy in the installed binary to avoid poluting /usr/bin (and having to
115+
# Copy in the installed binary to avoid polluting /usr/bin (and having to
116116
# run as root)
117117
Run(['cp', '/usr/bin/dart', 'out/ReleaseX64/dart'])
118118

tools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def _upload(self, files):
939939

940940
def _find_all_coredumps(self):
941941
"""Return coredumps that were recorded (if supported by the platform).
942-
This method will be overriden by concrete platform specific implementations.
942+
This method will be overridden by concrete platform specific implementations.
943943
"""
944944
return []
945945

tools/verify_docs/bin/verify_docs.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class ValidateCommentCodeSamplesVisitor extends GeneralizingAstVisitor {
221221
// instead of writing them explicitly to.
222222
//
223223
// Captures:
224-
// 1/libdecl: Non-null if mathcing a `library` declaration.
224+
// 1/libdecl: Non-null if matching a `library` declaration.
225225
// 2: Internal use, quote around import URI.
226226
// 3/importuri: Import URI.
227227
final _toplevelDeclarationRE = RegExp(r'^\s*(?:'

0 commit comments

Comments
 (0)