diff --git a/.github/ISSUE_TEMPLATE/1_cherry_pick.yml b/.github/ISSUE_TEMPLATE/1_cherry_pick.yml index a1c9afdb28b..1c4536f6386 100644 --- a/.github/ISSUE_TEMPLATE/1_cherry_pick.yml +++ b/.github/ISSUE_TEMPLATE/1_cherry_pick.yml @@ -27,7 +27,7 @@ body: id: issue_description attributes: label: Issue Description - description: Brief description of the issue. What is the issue? What platforms are the problems occuring on? + description: Brief description of the issue. What is the issue? What platforms are the problems occurring on? validations: required: true - type: textarea diff --git a/.mailmap b/.mailmap index 5f5adcc9b0b..6698757f25e 100644 --- a/.mailmap +++ b/.mailmap @@ -1,4 +1,4 @@ -# This file contains name to mail address mappings that are usefull +# This file contains name to mail address mappings that are useful # for old svn based commits (to get nice names instead of mail in blame and # other tools) Adam Klein diff --git a/benchmarks/BigIntParsePrint/dart/BigIntParsePrint.dart b/benchmarks/BigIntParsePrint/dart/BigIntParsePrint.dart index 3451cc396ee..237b488e8a6 100644 --- a/benchmarks/BigIntParsePrint/dart/BigIntParsePrint.dart +++ b/benchmarks/BigIntParsePrint/dart/BigIntParsePrint.dart @@ -12,7 +12,7 @@ import 'package:fixnum/fixnum.dart'; import 'native_version_dummy.dart' if (dart.library.js) 'native_version_javascript.dart'; -// Benckmark BigInt and Int64 formatting and parsing. +// Benchmark BigInt and Int64 formatting and parsing. // A global sink that is used in the [check] method ensures that the results are // not optimized. @@ -49,7 +49,7 @@ class Benchmark extends BenchmarkBase { if (b.bitLength < bits) { restartDelta += seed >> 20; restartDelta += BigInt.one; - // Restart from a slighly reduced seed to generate different numbers. + // Restart from a slightly reduced seed to generate different numbers. b = seed - restartDelta; } var string = b.toString(); @@ -310,7 +310,7 @@ void main() { selectFormatNativeBigIntBenchmark('JsBigInt.toString.4096.bits', 4096), ]; - // Warm up all benchmarks to ensure consistent behavious of shared code. + // Warm up all benchmarks to ensure consistent behavior of shared code. benchmarks.forEach((bm) => bm() ..setup() ..run() diff --git a/benchmarks/Richards/dart/Richards.dart b/benchmarks/Richards/dart/Richards.dart index f9306516d4f..3d8ed86e37c 100644 --- a/benchmarks/Richards/dart/Richards.dart +++ b/benchmarks/Richards/dart/Richards.dart @@ -414,7 +414,7 @@ class HandlerTask extends Task { } /// A simple package of data that is manipulated by the tasks. The exact layout -/// of the payload data carried by a packet is not importaint, and neither is +/// of the payload data carried by a packet is not important, and neither is /// the nature of the work performed on packets by the tasks. Besides carrying /// data, packets form linked lists and are hence used both as data and /// worklists. diff --git a/benchmarks/Richards/dart2/Richards.dart b/benchmarks/Richards/dart2/Richards.dart index f479a3216f2..0cb0a1a0107 100644 --- a/benchmarks/Richards/dart2/Richards.dart +++ b/benchmarks/Richards/dart2/Richards.dart @@ -418,7 +418,7 @@ class HandlerTask extends Task { } /// A simple package of data that is manipulated by the tasks. The exact layout -/// of the payload data carried by a packet is not importaint, and neither is +/// of the payload data carried by a packet is not important, and neither is /// the nature of the work performed on packets by the tasks. Besides carrying /// data, packets form linked lists and are hence used both as data and /// worklists. diff --git a/benchmarks/Richards/javascript/Richards.js b/benchmarks/Richards/javascript/Richards.js index 8a71f99ca26..6820d26e179 100644 --- a/benchmarks/Richards/javascript/Richards.js +++ b/benchmarks/Richards/javascript/Richards.js @@ -497,7 +497,7 @@ var DATA_SIZE = 4; /** * A simple package of data that is manipulated by the tasks. The exact layout - * of the payload data carried by a packet is not importaint, and neither is the + * of the payload data carried by a packet is not important, and neither is the * nature of the work performed on packets by the tasks. * * Besides carrying data, packets form linked lists and are hence used both as diff --git a/build/mac/change_mach_o_flags.py b/build/mac/change_mach_o_flags.py index 4155dc6aa53..b59b00be25a 100755 --- a/build/mac/change_mach_o_flags.py +++ b/build/mac/change_mach_o_flags.py @@ -121,7 +121,7 @@ def CheckedRead(file, count): def ReadUInt32(file, endian): - """Reads an unsinged 32-bit integer from the file-like |file| object, + """Reads an unsigned 32-bit integer from the file-like |file| object, treating it as having endianness specified by |endian| (per the |struct| module), and returns it as a number. Raises a MachOError if the proper length of data can't be read from |file|.""" @@ -160,7 +160,7 @@ def ReadFatArch(file): def WriteUInt32(file, uint32, endian): - """Writes |uint32| as an unsinged 32-bit integer to the file-like |file| + """Writes |uint32| as an unsigned 32-bit integer to the file-like |file| object, treating it as having endianness specified by |endian| (per the |struct| module).""" diff --git a/pkg/_fe_analyzer_shared/test/macros/executor/simple_macro.dart b/pkg/_fe_analyzer_shared/test/macros/executor/simple_macro.dart index d653f77bf29..d502abc4c35 100644 --- a/pkg/_fe_analyzer_shared/test/macros/executor/simple_macro.dart +++ b/pkg/_fe_analyzer_shared/test/macros/executor/simple_macro.dart @@ -8,7 +8,7 @@ import 'package:_fe_analyzer_shared/src/macros/api.dart'; /// A very simple macro that augments any declaration it is given, usually /// adding print statements and inlining values from the declaration object -/// for comparision with expected values in tests. +/// for comparison with expected values in tests. /// /// When applied to [MethodDeclaration]s there is some extra work that happens /// to validate the introspection APIs work as expected. diff --git a/pkg/analysis_server/lib/lsp_protocol/protocol_generated.dart b/pkg/analysis_server/lib/lsp_protocol/protocol_generated.dart index 00f7c4c6105..ffe914ebd99 100644 --- a/pkg/analysis_server/lib/lsp_protocol/protocol_generated.dart +++ b/pkg/analysis_server/lib/lsp_protocol/protocol_generated.dart @@ -306,7 +306,7 @@ typedef TextDocumentSignatureHelpResult = SignatureHelp?; /// Result for a request to resolve the type definition locations of a symbol at /// a given text document position. The request's parameter is of type -/// TextDocumentPositioParams the response is of type Definition or a Thenable +/// TextDocumentPositionParams the response is of type Definition or a Thenable /// that resolves to such. typedef TextDocumentTypeDefinitionResult = Either2>?; @@ -21955,7 +21955,7 @@ class PreviousResultId implements ToJsonable { ); } - /// The URI for which the client knowns a result id. + /// The URI for which the client knows a result id. final DocumentUri uri; /// The value of the previous result id. diff --git a/pkg/analyzer/lib/src/summary2/ast_binary_writer.dart b/pkg/analyzer/lib/src/summary2/ast_binary_writer.dart index d9a70fa9d23..0c7dbe3ab95 100644 --- a/pkg/analyzer/lib/src/summary2/ast_binary_writer.dart +++ b/pkg/analyzer/lib/src/summary2/ast_binary_writer.dart @@ -434,7 +434,7 @@ class AstBinaryWriter extends ThrowingAstVisitor { } } - // TODO(scheglov) Dont write type, AKA separate true `int` and `double`? + // TODO(scheglov) Don't write type, AKA separate true `int` and `double`? _storeExpression(node); } diff --git a/pkg/analyzer/lib/src/workspace/bazel_watcher.dart b/pkg/analyzer/lib/src/workspace/bazel_watcher.dart index 54b96a0faa8..b53019ef943 100644 --- a/pkg/analyzer/lib/src/workspace/bazel_watcher.dart +++ b/pkg/analyzer/lib/src/workspace/bazel_watcher.dart @@ -432,7 +432,7 @@ abstract class PollTrigger { /// /// The idea here is to detect when Bazel finished running and use that to /// trigger polling. To detect that we use the `command.log` file that bazel -/// contiuously updates as the build progresses. We find that file based on [1]: +/// continuously updates as the build progresses. We find that file based on [1]: /// /// - In the workspace directory there should be a `bazel-out` symlink whose /// target should be of the form: diff --git a/pkg/async_helper/lib/async_helper.dart b/pkg/async_helper/lib/async_helper.dart index 6dd1b87558f..8dd5754b9bb 100644 --- a/pkg/async_helper/lib/async_helper.dart +++ b/pkg/async_helper/lib/async_helper.dart @@ -89,7 +89,7 @@ Future asyncTest(f()) { return f().then(asyncSuccess); } -/// Verifies that the asyncronous [result] throws a [T]. +/// Verifies that the asynchronous [result] throws a [T]. /// /// Fails if [result] completes with a value, or it completes with /// an error which is not a [T]. diff --git a/pkg/compiler/lib/src/elements/types.dart b/pkg/compiler/lib/src/elements/types.dart index 3b9b9c6cd83..d07daa3d03b 100644 --- a/pkg/compiler/lib/src/elements/types.dart +++ b/pkg/compiler/lib/src/elements/types.dart @@ -2269,7 +2269,7 @@ abstract class DartTypes { type is FunctionTypeVariable && canAssignGenericFunctionTo(type.bound); } - /// Returns `true` if [type] occuring in a program with no sound null safety + /// Returns `true` if [type] occurring in a program with no sound null safety /// cannot accept `null` under sound rules. bool isNonNullableIfSound(DartType type) { if (type is DynamicType || diff --git a/pkg/compiler/lib/src/inferrer/powersets/powerset_bits.dart b/pkg/compiler/lib/src/inferrer/powersets/powerset_bits.dart index d6e4d479d78..fd522ddb409 100644 --- a/pkg/compiler/lib/src/inferrer/powersets/powerset_bits.dart +++ b/pkg/compiler/lib/src/inferrer/powersets/powerset_bits.dart @@ -523,7 +523,7 @@ class PowersetBitsDomain { // type and is maximal (i.e. instantiated to bounds), the typemask, // which is based on the class element, is still precise. We check // against Top for the parameter arguments since we don't have a - // convenient check for instantation to bounds. + // convenient check for instantiation to bounds. // // TODO(sra): Check arguments against bounds. // TODO(sra): Handle other variances. diff --git a/pkg/compiler/lib/src/inferrer/type_system.dart b/pkg/compiler/lib/src/inferrer/type_system.dart index 34abce3ab28..c13eaaa0315 100644 --- a/pkg/compiler/lib/src/inferrer/type_system.dart +++ b/pkg/compiler/lib/src/inferrer/type_system.dart @@ -569,7 +569,7 @@ class TypeSystem { return _addPhi(node, variable, inputType, isTry); } - /// Simplies the phi representing [element] and of the type + /// Simplifies the phi representing [element] and of the type /// [phiType]. For example, if this phi has one incoming input, an /// implementation of this method could just return that incoming /// input type. diff --git a/pkg/compiler/lib/src/inferrer/typemasks/masks.dart b/pkg/compiler/lib/src/inferrer/typemasks/masks.dart index cdccaa4dfe5..b2f889621a9 100644 --- a/pkg/compiler/lib/src/inferrer/typemasks/masks.dart +++ b/pkg/compiler/lib/src/inferrer/typemasks/masks.dart @@ -352,7 +352,7 @@ class CommonMasks implements AbstractValueDomain { // type and is maximal (i.e. instantiated to bounds), the typemask, // which is based on the class element, is still precise. We check // against Top for the parameter arguments since we don't have a - // convenient check for instantation to bounds. + // convenient check for instantiation to bounds. // // TODO(sra): Check arguments against bounds. // TODO(sra): Handle other variances. diff --git a/pkg/compiler/lib/src/io/position_information.dart b/pkg/compiler/lib/src/io/position_information.dart index 1270cab5648..dc628b40517 100644 --- a/pkg/compiler/lib/src/io/position_information.dart +++ b/pkg/compiler/lib/src/io/position_information.dart @@ -841,10 +841,10 @@ enum StepKind { /// Listener for the [JavaScriptTracer]. abstract class TraceListener { - /// Called before [root] node is procesed by the [JavaScriptTracer]. + /// Called before [root] node is processed by the [JavaScriptTracer]. void onStart(js.Node root) {} - /// Called after [root] node has been procesed by the [JavaScriptTracer]. + /// Called after [root] node has been processed by the [JavaScriptTracer]. void onEnd(js.Node root) {} /// Called when a branch of the given [kind] is started. [value] is provided diff --git a/pkg/compiler/lib/src/io/source_information.dart b/pkg/compiler/lib/src/io/source_information.dart index 740d8298e05..a07177ac68c 100644 --- a/pkg/compiler/lib/src/io/source_information.dart +++ b/pkg/compiler/lib/src/io/source_information.dart @@ -66,7 +66,7 @@ abstract class SourceInformation extends JavaScriptNodeSourceInformation { /// Context information about inlined calls. /// /// This is associated with SourceInformation objects to be able to emit -/// precise data about inlining that can then be used by defobuscation tools +/// precise data about inlining that can then be used by deobfuscation tools /// when reconstructing a source stack from a production stack trace. class FrameContext { static const String tag = 'frame-context'; diff --git a/pkg/compiler/lib/src/ir/scope_visitor.dart b/pkg/compiler/lib/src/ir/scope_visitor.dart index 7a3863f2406..113387fba43 100644 --- a/pkg/compiler/lib/src/ir/scope_visitor.dart +++ b/pkg/compiler/lib/src/ir/scope_visitor.dart @@ -118,7 +118,7 @@ class ScopeModelBuilder extends ir.Visitor assert(node is ir.Procedure || node is ir.Constructor); if (!(node is ir.Procedure && node.isRedirectingFactory)) { // Skip redirecting factories: they contain invalid expressions only - // used to suppport internal CFE modular compilation. + // used to support internal CFE modular compilation. node.accept(this); } } diff --git a/pkg/compiler/lib/src/js/placeholder_safety.dart b/pkg/compiler/lib/src/js/placeholder_safety.dart index 6a08913ea95..f99b76caec0 100644 --- a/pkg/compiler/lib/src/js/placeholder_safety.dart +++ b/pkg/compiler/lib/src/js/placeholder_safety.dart @@ -10,7 +10,7 @@ typedef PositionPredicate = bool Function(int position); /// PlaceholderSafetyAnalysis determines which placeholders in a JavaScript /// template may be replaced with an arbitrary expression. Placeholders may be -/// replaced with an arbitrary expression providied the template ensures the +/// replaced with an arbitrary expression provided the template ensures the /// placeholders are evaluated in the same left-to-right order with no /// additional effects interleaved. /// diff --git a/pkg/compiler/lib/src/js_backend/frequency_assignment.dart b/pkg/compiler/lib/src/js_backend/frequency_assignment.dart index 7acd9078d65..b189afa46c3 100644 --- a/pkg/compiler/lib/src/js_backend/frequency_assignment.dart +++ b/pkg/compiler/lib/src/js_backend/frequency_assignment.dart @@ -176,7 +176,7 @@ class _Pool { /// entities are identified by integers. class _Cohort { _Cohort? next; // Next cohort in decreasing frequency. - final int count; // This is the cohort of items occuring [count] times. + final int count; // This is the cohort of items occurring [count] times. Set unassigned = Set(); _Cohort(this.count); diff --git a/pkg/compiler/lib/src/js_backend/string_reference.dart b/pkg/compiler/lib/src/js_backend/string_reference.dart index 949aec82775..b406bb45575 100644 --- a/pkg/compiler/lib/src/js_backend/string_reference.dart +++ b/pkg/compiler/lib/src/js_backend/string_reference.dart @@ -10,7 +10,7 @@ /// foo1() => 'A very long string'; /// /// might be compiled to something like the following, where StringReference1 is -/// assocatied with the string `'A very long string'`. +/// associated with the string `'A very long string'`. /// /// foo1: function() { /// return StringReference1; @@ -77,7 +77,7 @@ class StringReferencePolicy { // (hot, cold, execute-once, etc). static const int shortestSharedLength = 40; - // TODO(sra): Add policy for huge non-shared strings, strings occuring in + // TODO(sra): Add policy for huge non-shared strings, strings occurring in // run-once code, etc. Maybe make policy settings assignable for testing or // command-line configuration. } diff --git a/pkg/compiler/lib/src/js_backend/type_reference.dart b/pkg/compiler/lib/src/js_backend/type_reference.dart index 2f4bc25d645..87bb36be645 100644 --- a/pkg/compiler/lib/src/js_backend/type_reference.dart +++ b/pkg/compiler/lib/src/js_backend/type_reference.dart @@ -390,7 +390,7 @@ class TypeReferenceFinalizerImpl implements TypeReferenceFinalizer { } // TODO(sra): There are other contexts that would be beneficial, e.g. a - // type reference occuring only in a throw expression. + // type reference occurring only in a throw expression. String suggestedName = _RecipeToIdentifier().run(referenceSet.recipe); if (usedNames.contains(suggestedName)) { diff --git a/pkg/compiler/lib/src/js_model/type_recipe.dart b/pkg/compiler/lib/src/js_model/type_recipe.dart index 921496909cc..0bc5f994fe0 100644 --- a/pkg/compiler/lib/src/js_model/type_recipe.dart +++ b/pkg/compiler/lib/src/js_model/type_recipe.dart @@ -559,7 +559,7 @@ class _Substitution extends DartTypeSubstitutionVisitor { int count = _counts[variable] = (_counts[variable] ?? 0) + 1; if (count > 1) { // If the replacement is 'big', duplicating it can grow the term, perhaps - // exponentially given a sufficently pathological input. + // exponentially given a sufficiently pathological input. // TODO(sra): Fix exponential terms by encoding a DAG in recipes to avoid // linearization. if (replacement is FunctionType || diff --git a/pkg/compiler/tool/kernel_visitor/dart_html_metrics_visitor.dart b/pkg/compiler/tool/kernel_visitor/dart_html_metrics_visitor.dart index 72edb13fda8..8268481efe8 100644 --- a/pkg/compiler/tool/kernel_visitor/dart_html_metrics_visitor.dart +++ b/pkg/compiler/tool/kernel_visitor/dart_html_metrics_visitor.dart @@ -69,7 +69,7 @@ class MetricsVisitor extends RecursiveVisitor { @override void visitClass(Class node) { - // Dont want to add duplicate info. + // Don't want to add duplicate info. // When mixed, anonymous mixin class generated so we want to ignore. if (!node.isAnonymousMixin) { currentClass = node.name; diff --git a/pkg/dartdev/lib/src/sdk.dart b/pkg/dartdev/lib/src/sdk.dart index 57b99c6e825..a994d9eef95 100644 --- a/pkg/dartdev/lib/src/sdk.dart +++ b/pkg/dartdev/lib/src/sdk.dart @@ -114,7 +114,7 @@ class Runtime { static Runtime _createSingleton() { var versionString = Platform.version; - // Exepcted format: "version (channel) ..." + // Expected format: "version (channel) ..." var version = versionString; String? channel; var versionEnd = versionString.indexOf(' '); diff --git a/pkg/frontend_server/lib/src/strong_components.dart b/pkg/frontend_server/lib/src/strong_components.dart index 3fca363323b..6a85d6b5260 100644 --- a/pkg/frontend_server/lib/src/strong_components.dart +++ b/pkg/frontend_server/lib/src/strong_components.dart @@ -34,7 +34,7 @@ class StrongComponents { /// The Component that is being compiled. /// /// On incremental compiles, this will only contain the invalidated - /// lbraries. + /// libraries. final Component component; /// The libraries loaded from a dill file that should not be processed. diff --git a/pkg/js/proposal.md b/pkg/js/proposal.md index 84601953b6d..c5eab45d867 100644 --- a/pkg/js/proposal.md +++ b/pkg/js/proposal.md @@ -1370,7 +1370,7 @@ class MyDartClass extends TheirJSClass { final int x = 1; int y, z; factory MyDartClass(int y, int z) { - // super constructpr parameters passed here? + // super constructor parameters passed here? var self = createJS(); self.y = y; self.z = z; diff --git a/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart b/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart index cb6601eb797..85e700fe98b 100644 --- a/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart +++ b/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart @@ -433,7 +433,7 @@ class WidgetCreatorTracker { /// /// Upon transformation the [changedStructureNotifier] (if provided) is used /// to notify the listener that that class hierarchy of certain classes has - /// changed. This is neccesary for instance when doing an incremental + /// changed. This is necessary for instance when doing an incremental /// compilation where the class hierarchy is kept between compiles and thus /// has to be kept up to date. void transform(Component module, List libraries, diff --git a/pkg/modular_test/lib/src/pipeline.dart b/pkg/modular_test/lib/src/pipeline.dart index dee4a68deba..b65eb1201e3 100644 --- a/pkg/modular_test/lib/src/pipeline.dart +++ b/pkg/modular_test/lib/src/pipeline.dart @@ -4,7 +4,7 @@ /// Abstraction for a compilation pipeline. /// -/// A pipeline defines how modular steps are excuted and ensures that a step +/// A pipeline defines how modular steps are executed and ensures that a step /// only has access to the data it declares. /// /// The abstract implementation validates how the data is declared, and the @@ -42,7 +42,7 @@ class ModularStep { /// Whether this step is only executed on the main module. final bool onlyOnMain; - /// Whether this step is only exceuted on the SDK. + /// Whether this step is only executed on the SDK. final bool onlyOnSdk; /// Whether this step is not executed on the SDK. diff --git a/pkg/nnbd_migration/test/api_test.dart b/pkg/nnbd_migration/test/api_test.dart index 2ea7e14c253..5e31fe1c69b 100644 --- a/pkg/nnbd_migration/test/api_test.dart +++ b/pkg/nnbd_migration/test/api_test.dart @@ -111,7 +111,7 @@ abstract class _ProvisionalApiTestBase extends AbstractContextTest { } } - /// Verifies that migraiton of the single file with the given [content] + /// Verifies that migration of the single file with the given [content] /// produces the [expected] output. /// /// Optional parameter [removeViaComments] indicates whether dead code should diff --git a/pkg/test_runner/lib/src/process_queue.dart b/pkg/test_runner/lib/src/process_queue.dart index 8610553d8e1..1e432e6a86f 100644 --- a/pkg/test_runner/lib/src/process_queue.dart +++ b/pkg/test_runner/lib/src/process_queue.dart @@ -149,7 +149,7 @@ class ProcessQueue { eventFinishedTestCase(finishedTestCase); }, onDone: () { - // Wait until the commandQueue/exectutor is done (it may need to stop + // Wait until the commandQueue/executor is done (it may need to stop // batch runners, browser controllers, ....) commandQueue.done.then((_) { cancelDebugTimer(); diff --git a/pkg/test_runner/test/skipping_dart2js_compilations_test.dart b/pkg/test_runner/test/skipping_dart2js_compilations_test.dart index 969a1bb1a1c..8abedc38368 100644 --- a/pkg/test_runner/test/skipping_dart2js_compilations_test.dart +++ b/pkg/test_runner/test/skipping_dart2js_compilations_test.dart @@ -29,7 +29,7 @@ import 'package:test_runner/src/test_case.dart'; import 'utils.dart'; -/// This class is reponsible for setting up the files necessary for this test +/// This class is responsible for setting up the files necessary for this test /// as well as touching a file. class FileUtils { late Directory tempDir; diff --git a/pkg/vm_service/lib/src/vm_service.dart b/pkg/vm_service/lib/src/vm_service.dart index 3e66f4b7784..f1826898b6d 100644 --- a/pkg/vm_service/lib/src/vm_service.dart +++ b/pkg/vm_service/lib/src/vm_service.dart @@ -2442,7 +2442,7 @@ class RPCError implements Exception { String? get details => data == null ? null : data!['details']; - /// Return a map representation of this error suitable for converstion to + /// Return a map representation of this error suitable for conversion to /// json. Map toMap() { Map map = { diff --git a/pkg/vm_service/tool/dart/generate_dart.dart b/pkg/vm_service/tool/dart/generate_dart.dart index 5475adc053a..f972a69f54b 100644 --- a/pkg/vm_service/tool/dart/generate_dart.dart +++ b/pkg/vm_service/tool/dart/generate_dart.dart @@ -292,7 +292,7 @@ class RPCError implements Exception { String? get details => data == null ? null : data!['details']; - /// Return a map representation of this error suitable for converstion to + /// Return a map representation of this error suitable for conversion to /// json. Map toMap() { Map map = { diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h index 4f2fc301780..f45925ea259 100644 --- a/runtime/include/dart_api.h +++ b/runtime/include/dart_api.h @@ -1615,7 +1615,7 @@ DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_RunLoop(void); * \param error A non-NULL pointer which will hold an error message if the call * fails. The error has to be free()ed by the caller. * - * \return If successfull the VM takes owernship of the isolate and takes care + * \return If successful the VM takes owernship of the isolate and takes care * of its message loop. If not successful the caller retains owernship of the * isolate. */ diff --git a/runtime/observatory/lib/src/elements/heap_snapshot.dart b/runtime/observatory/lib/src/elements/heap_snapshot.dart index 7deb8c74ec6..6f79bf49258 100644 --- a/runtime/observatory/lib/src/elements/heap_snapshot.dart +++ b/runtime/observatory/lib/src/elements/heap_snapshot.dart @@ -418,7 +418,7 @@ class MergedDominatorDiff { for (var i = 0; i < worklist.length; i++) { worklist[i]._computeChildren(worklist); } - // Compute area botton-up. + // Compute area bottom-up. for (var i = worklist.length - 1; i >= 0; i--) { worklist[i]._computeArea(); } diff --git a/runtime/observatory/lib/src/elements/process_snapshot.dart b/runtime/observatory/lib/src/elements/process_snapshot.dart index 6e87923b3a2..03b727b2362 100644 --- a/runtime/observatory/lib/src/elements/process_snapshot.dart +++ b/runtime/observatory/lib/src/elements/process_snapshot.dart @@ -113,7 +113,7 @@ class ProcessItemDiff { for (var i = 0; i < worklist.length; i++) { worklist[i]._computeChildren(worklist); } - // Compute area botton-up. + // Compute area bottom-up. for (var i = worklist.length - 1; i >= 0; i--) { worklist[i]._computeArea(); } diff --git a/runtime/observatory/lib/tracer.dart b/runtime/observatory/lib/tracer.dart index 3f9a07fe0d3..f47ddc9b7fe 100644 --- a/runtime/observatory/lib/tracer.dart +++ b/runtime/observatory/lib/tracer.dart @@ -67,7 +67,7 @@ class Tracer { // The start time for the current request. Stopwatch? _time; - // A list of all tracing events for thre current request. + // A list of all tracing events for the current request. List events = []; Tracer() { diff --git a/runtime/observatory/tests/service/string_escaping_test.dart b/runtime/observatory/tests/service/string_escaping_test.dart index 866178c6fd0..958432e7b89 100644 --- a/runtime/observatory/tests/service/string_escaping_test.dart +++ b/runtime/observatory/tests/service/string_escaping_test.dart @@ -53,7 +53,7 @@ void script() { nullInTheMiddle = "There are four\u0000 words."; escapedUnicodeEscape = "Should not be A: \\u0041"; - // A surrogate pair will cross the preferred truncation boundry. + // A surrogate pair will cross the preferred truncation boundary. longStringEven = ".."; for (int i = 0; i < 512; i++) longStringEven += "𝄞"; longStringOdd = "."; diff --git a/runtime/observatory_2/lib/src/elements/heap_snapshot.dart b/runtime/observatory_2/lib/src/elements/heap_snapshot.dart index 3ab4f6c0619..0320519cc57 100644 --- a/runtime/observatory_2/lib/src/elements/heap_snapshot.dart +++ b/runtime/observatory_2/lib/src/elements/heap_snapshot.dart @@ -457,7 +457,7 @@ class MergedDominatorDiff { for (var i = 0; i < worklist.length; i++) { worklist[i]._computeChildren(worklist); } - // Compute area botton-up. + // Compute area bottom-up. for (var i = worklist.length - 1; i >= 0; i--) { worklist[i]._computeArea(); } diff --git a/runtime/observatory_2/lib/src/elements/helpers/tag.dart b/runtime/observatory_2/lib/src/elements/helpers/tag.dart index 342c52171ab..7ff4120a0db 100644 --- a/runtime/observatory_2/lib/src/elements/helpers/tag.dart +++ b/runtime/observatory_2/lib/src/elements/helpers/tag.dart @@ -90,7 +90,7 @@ class Tag { /// Tag name. final String name; - /// Dependent tags that need to be registred for this tag to work properly. + /// Dependent tags that need to be registered for this tag to work properly. final Iterable dependencies; const Tag(this.name, {this.dependencies: const []}); diff --git a/runtime/observatory_2/lib/tracer.dart b/runtime/observatory_2/lib/tracer.dart index 3a18cfd7294..5c15ecb5f95 100644 --- a/runtime/observatory_2/lib/tracer.dart +++ b/runtime/observatory_2/lib/tracer.dart @@ -67,7 +67,7 @@ class Tracer { // The start time for the current request. Stopwatch _time; - // A list of all tracing events for thre current request. + // A list of all tracing events for the current request. List events = []; Tracer() { diff --git a/runtime/observatory_2/tests/service_2/string_escaping_test.dart b/runtime/observatory_2/tests/service_2/string_escaping_test.dart index 4d48a3f9a15..62a0b131537 100644 --- a/runtime/observatory_2/tests/service_2/string_escaping_test.dart +++ b/runtime/observatory_2/tests/service_2/string_escaping_test.dart @@ -53,7 +53,7 @@ void script() { nullInTheMiddle = "There are four\u0000 words."; escapedUnicodeEscape = "Should not be A: \\u0041"; - // A surrogate pair will cross the preferred truncation boundry. + // A surrogate pair will cross the preferred truncation boundary. longStringEven = ".."; for (int i = 0; i < 512; i++) longStringEven += "𝄞"; longStringOdd = "."; diff --git a/runtime/tests/vm/dart/flutter_regress_101514_test.dart b/runtime/tests/vm/dart/flutter_regress_101514_test.dart index 6c787102e3e..2f63fa797e3 100644 --- a/runtime/tests/vm/dart/flutter_regress_101514_test.dart +++ b/runtime/tests/vm/dart/flutter_regress_101514_test.dart @@ -13,7 +13,7 @@ main() async { } Stream foo() async* { - // While the generator (i.e. this funtion) runs, we cancel the consumer and + // While the generator (i.e. this function) runs, we cancel the consumer and // try to yield more. sub.cancel(); yield* Stream.fromIterable([1, 2, 3]); diff --git a/runtime/tests/vm/dart/isolates/fast_object_copy_test.dart b/runtime/tests/vm/dart/isolates/fast_object_copy_test.dart index 22bf3ace829..955c5b230b0 100644 --- a/runtime/tests/vm/dart/isolates/fast_object_copy_test.dart +++ b/runtime/tests/vm/dart/isolates/fast_object_copy_test.dart @@ -725,10 +725,10 @@ class SendReceiveTest extends SendReceiveTestBase { { final result = await sendReceive([ - weakRef1, // Does not have its target inluded. + weakRef1, // Does not have its target included. weakRef2, // Has its target included later than itself. object2, - weakRef3, // Does not have its target inluded. + weakRef3, // Does not have its target included. expando3, weakRef4, // Has its target included due to expando. expando4, @@ -747,11 +747,11 @@ class SendReceiveTest extends SendReceiveTestBase { { final result = await sendReceive([ - weakRef1, // Does not have its target inluded. + weakRef1, // Does not have its target included. weakRef2, // Has its target included later than itself. notAllocatableInTLAB, object2, - weakRef3, // Does not have its target inluded. + weakRef3, // Does not have its target included. expando3, weakRef4, // Has its target included due to expando. expando4, diff --git a/runtime/tests/vm/dart/licm_and_assert_strengthening_test.dart b/runtime/tests/vm/dart/licm_and_assert_strengthening_test.dart index a1c962ecb23..a52194b8628 100644 --- a/runtime/tests/vm/dart/licm_and_assert_strengthening_test.dart +++ b/runtime/tests/vm/dart/licm_and_assert_strengthening_test.dart @@ -19,7 +19,7 @@ class B extends A {} class C extends B {} void foo(dynamic a) { - // To prevent AssertAssignable strengthening from occuring too early we + // To prevent AssertAssignable strengthening from occurring too early we // need to hide the fact that CheckClass and AssertAssignable are performed // against the same SSA value. To achieve that we store a into an array and // then load it back. Load Forwarding would happen just before LICM and diff --git a/runtime/tests/vm/dart/regress_lsl_with_constant_test.dart b/runtime/tests/vm/dart/regress_lsl_with_constant_test.dart index 368a98b7022..622bb1b2ef8 100644 --- a/runtime/tests/vm/dart/regress_lsl_with_constant_test.dart +++ b/runtime/tests/vm/dart/regress_lsl_with_constant_test.dart @@ -13,7 +13,7 @@ const int N = 10; @pragma('vm:never-inline') void test(Int32List v) { - // The shape of the code here is choosen to trigger Int64->Int32 + // The shape of the code here is chosen to trigger Int64->Int32 // narrowing in the range analysis. v[0] = (v[0] & 0xFF) << (N - 1); } diff --git a/runtime/tests/vm/dart/tts_regression39716_test.dart b/runtime/tests/vm/dart/tts_regression39716_test.dart index 782f3fae8cf..9683b51febf 100644 --- a/runtime/tests/vm/dart/tts_regression39716_test.dart +++ b/runtime/tests/vm/dart/tts_regression39716_test.dart @@ -14,7 +14,7 @@ main() { // `A`, both have type argument vector at a different offset, so it wouldn't // know where to load it from) - // Populate the SubtypeTestCache with successfull `add(I())`. + // Populate the SubtypeTestCache with successful `add(I())`. final x = [>[]]; x.single.add(I()); diff --git a/runtime/tests/vm/dart_2/flutter_regress_101514_test.dart b/runtime/tests/vm/dart_2/flutter_regress_101514_test.dart index 44d029aefe9..177a2a4d7b2 100644 --- a/runtime/tests/vm/dart_2/flutter_regress_101514_test.dart +++ b/runtime/tests/vm/dart_2/flutter_regress_101514_test.dart @@ -15,7 +15,7 @@ main() async { } Stream foo() async* { - // While the generator (i.e. this funtion) runs, we cancel the consumer and + // While the generator (i.e. this function) runs, we cancel the consumer and // try to yield more. sub.cancel(); yield* Stream.fromIterable([1, 2, 3]); diff --git a/runtime/tests/vm/dart_2/isolates/fast_object_copy_test.dart b/runtime/tests/vm/dart_2/isolates/fast_object_copy_test.dart index 1e3773d3d32..58343a931b2 100644 --- a/runtime/tests/vm/dart_2/isolates/fast_object_copy_test.dart +++ b/runtime/tests/vm/dart_2/isolates/fast_object_copy_test.dart @@ -727,10 +727,10 @@ class SendReceiveTest extends SendReceiveTestBase { { final result = await sendReceive([ - weakRef1, // Does not have its target inluded. + weakRef1, // Does not have its target included. weakRef2, // Has its target included later than itself. object2, - weakRef3, // Does not have its target inluded. + weakRef3, // Does not have its target included. expando3, weakRef4, // Has its target included due to expando. expando4, @@ -749,11 +749,11 @@ class SendReceiveTest extends SendReceiveTestBase { { final result = await sendReceive([ - weakRef1, // Does not have its target inluded. + weakRef1, // Does not have its target included. weakRef2, // Has its target included later than itself. notAllocatableInTLAB, object2, - weakRef3, // Does not have its target inluded. + weakRef3, // Does not have its target included. expando3, weakRef4, // Has its target included due to expando. expando4, diff --git a/runtime/tests/vm/dart_2/licm_and_assert_strengthening_test.dart b/runtime/tests/vm/dart_2/licm_and_assert_strengthening_test.dart index a3c26bf6615..de629a6a4da 100644 --- a/runtime/tests/vm/dart_2/licm_and_assert_strengthening_test.dart +++ b/runtime/tests/vm/dart_2/licm_and_assert_strengthening_test.dart @@ -21,7 +21,7 @@ class B extends A {} class C extends B {} void foo(dynamic a) { - // To prevent AssertAssignable strengthening from occuring too early we + // To prevent AssertAssignable strengthening from occurring too early we // need to hide the fact that CheckClass and AssertAssignable are performed // against the same SSA value. To achieve that we store a into an array and // then load it back. Load Forwarding would happen just before LICM and diff --git a/runtime/tests/vm/dart_2/regress_lsl_with_constant_test.dart b/runtime/tests/vm/dart_2/regress_lsl_with_constant_test.dart index 31d65f9fe55..c08672e9195 100644 --- a/runtime/tests/vm/dart_2/regress_lsl_with_constant_test.dart +++ b/runtime/tests/vm/dart_2/regress_lsl_with_constant_test.dart @@ -15,7 +15,7 @@ const int N = 10; @pragma('vm:never-inline') void test(Int32List v) { - // The shape of the code here is choosen to trigger Int64->Int32 + // The shape of the code here is chosen to trigger Int64->Int32 // narrowing in the range analysis. v[0] = (v[0] & 0xFF) << (N - 1); } diff --git a/runtime/tests/vm/dart_2/tts_regression39716_test.dart b/runtime/tests/vm/dart_2/tts_regression39716_test.dart index a762f558f21..e8c8c83575b 100644 --- a/runtime/tests/vm/dart_2/tts_regression39716_test.dart +++ b/runtime/tests/vm/dart_2/tts_regression39716_test.dart @@ -16,7 +16,7 @@ main() { // `A`, both have type argument vector at a different offset, so it wouldn't // know where to load it from) - // Populate the SubtypeTestCache with successfull `add(I())`. + // Populate the SubtypeTestCache with successful `add(I())`. final x = [>[]]; x.single.add(I()); diff --git a/runtime/vm/compiler/backend/constant_propagator.h b/runtime/vm/compiler/backend/constant_propagator.h index f2a6929b224..0a5b00b5aab 100644 --- a/runtime/vm/compiler/backend/constant_propagator.h +++ b/runtime/vm/compiler/backend/constant_propagator.h @@ -42,7 +42,7 @@ class ConstantPropagator : public FlowGraphVisitor { void Analyze(); void Transform(); // Tries to replace uses of [defn] with a constant, returns true if - // successfull. The [value] is used as a temporary handle. + // successful. The [value] is used as a temporary handle. bool TransformDefinition(Definition* defn); void EliminateRedundantBranches(); diff --git a/runtime/vm/compiler/backend/il.cc b/runtime/vm/compiler/backend/il.cc index b5f2e3e1a5d..c025d2d5359 100644 --- a/runtime/vm/compiler/backend/il.cc +++ b/runtime/vm/compiler/backend/il.cc @@ -1014,7 +1014,7 @@ bool GuardFieldTypeInstr::AttributesEqual(const Instruction& other) const { } Instruction* AssertSubtypeInstr::Canonicalize(FlowGraph* flow_graph) { - // If all inputs needed to check instantation are constant, instantiate the + // If all inputs needed to check instantiation are constant, instantiate the // sub and super type and remove the instruction if the subtype test succeeds. if (super_type()->BindsToConstant() && sub_type()->BindsToConstant() && instantiator_type_arguments()->BindsToConstant() && diff --git a/runtime/vm/heap/compactor.cc b/runtime/vm/heap/compactor.cc index e5a5c3e5e55..9afb2d7a0f6 100644 --- a/runtime/vm/heap/compactor.cc +++ b/runtime/vm/heap/compactor.cc @@ -51,7 +51,7 @@ class ForwardingBlock { // Marks a range of allocation units belonging to an object live by setting // the corresponding bits in this ForwardingBlock. Does not update the // new_address_ field; that is done after the total live size of the block is - // known and forwarding location is choosen. Does not mark words in subsequent + // known and forwarding location is chosen. Does not mark words in subsequent // ForwardingBlocks live for objects that extend into the next block. void RecordLive(uword old_addr, intptr_t size) { intptr_t size_in_units = size >> kObjectAlignmentLog2; diff --git a/runtime/vm/heap/marker.cc b/runtime/vm/heap/marker.cc index 3629c5f457f..29bf3edb9ee 100644 --- a/runtime/vm/heap/marker.cc +++ b/runtime/vm/heap/marker.cc @@ -94,7 +94,7 @@ class MarkingVisitorBase : public ObjectPointerVisitor { // by a conservative estimate of the duration of one batch of work. deadline -= 1500; - // A 512kB budget is choosen to be large enough that we don't waste too much + // A 512kB budget is chosen to be large enough that we don't waste too much // time on the overhead of exiting ProcessMarkingStack, querying the clock, // and re-entering, and small enough that a few batches can fit in the idle // time between animation frames. This amount of marking takes ~1ms on a diff --git a/runtime/vm/object.h b/runtime/vm/object.h index a3c025dbad3..3c6cc54a1c5 100644 --- a/runtime/vm/object.h +++ b/runtime/vm/object.h @@ -8070,7 +8070,7 @@ class TypeArguments : public Instance { kSizeInWords, }; - // The array is terminated by the value kNoInstantiator occuring in place of + // The array is terminated by the value kNoInstantiator occurring in place of // the instantiator type args of the 4-tuple that would otherwise follow. // Therefore, kNoInstantiator must be distinct from any type arguments vector, // even a null one. Since arrays are initialized with 0, the instantiations_ @@ -8276,7 +8276,7 @@ class AbstractType : public Instance { // type arguments, if any. void PrintName(NameVisibility visibility, BaseTextBuffer* printer) const; - // Add the class name and URI of each occuring type to the uris + // Add the class name and URI of each occurring type to the uris // list and mark ambiguous triplets to be printed. virtual void EnumerateURIs(URIs* uris) const; diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc index 85cf4038ac2..c03a267ebf6 100644 --- a/runtime/vm/service.cc +++ b/runtime/vm/service.cc @@ -198,7 +198,7 @@ class EnumListParameter : public MethodParameter { intptr_t element_pos = 0; // Allocate our element array. +1 for NULL terminator. - // The caller is reponsible for deleting this memory. + // The caller is responsible for deleting this memory. char** elements = new char*[element_count + 1]; elements[element_count] = NULL; diff --git a/samples-dev/swarm/swarm_ui_lib/layout/SizingFunctions.dart b/samples-dev/swarm/swarm_ui_lib/layout/SizingFunctions.dart index bc4258a8f27..a85a420ba42 100644 --- a/samples-dev/swarm/swarm_ui_lib/layout/SizingFunctions.dart +++ b/samples-dev/swarm/swarm_ui_lib/layout/SizingFunctions.dart @@ -27,7 +27,7 @@ class SizingFunction { } /** - * Fixed size reprensents a length as defined by CSS3 Values spec. + * Fixed size represents a length as defined by CSS3 Values spec. * Can also be a percentage of the Grid element's logical width (for columns) * or logical height (for rows). When the width or height of the Grid element * is undefined, the percentage is ignored and the Grid Track will be diff --git a/samples/ffi/sample_ffi_functions_structs.dart b/samples/ffi/sample_ffi_functions_structs.dart index a051fcf0cce..bf9c0ca4bae 100644 --- a/samples/ffi/sample_ffi_functions_structs.dart +++ b/samples/ffi/sample_ffi_functions_structs.dart @@ -44,7 +44,7 @@ main() { } { - // Pass an array of structs to a c funtion. + // Pass an array of structs to a c function. Pointer> p1 = ffiTestFunctions.lookup("CoordinateElemAt1"); NativeCoordinateOp f1 = p1.asFunction(); diff --git a/samples_2/ffi/sample_ffi_functions_structs.dart b/samples_2/ffi/sample_ffi_functions_structs.dart index 7a8370e1c26..e8f0387b3fd 100644 --- a/samples_2/ffi/sample_ffi_functions_structs.dart +++ b/samples_2/ffi/sample_ffi_functions_structs.dart @@ -46,7 +46,7 @@ main() { } { - // Pass an array of structs to a c funtion. + // Pass an array of structs to a c function. Pointer> p1 = ffiTestFunctions.lookup("CoordinateElemAt1"); NativeCoordinateOp f1 = p1.asFunction(); diff --git a/sdk/lib/_http/websocket_impl.dart b/sdk/lib/_http/websocket_impl.dart index fdafda89ce3..16f92d5adae 100644 --- a/sdk/lib/_http/websocket_impl.dart +++ b/sdk/lib/_http/websocket_impl.dart @@ -647,7 +647,7 @@ class _WebSocketPerMessageDeflate { } // RFC 7692 7.2.3.6. "Generating an Empty Fragment" says that if the - // compression library doesn't generate any data when the bufer is empty, + // compression library doesn't generate any data when the buffer is empty, // then an empty uncompressed deflate block is used for this purpose. The // 0x00 block has the BFINAL header bit set to 0 and the BTYPE header set to // 00 along with 5 bits of padding. This block decodes to zero bytes. diff --git a/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart b/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart index b9cf8050d51..27b798124f9 100644 --- a/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart +++ b/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart @@ -140,7 +140,7 @@ class _AsyncRun { static final _scheduleImmediateClosure = _initializeScheduleImmediate(); static void Function(void Function()) _initializeScheduleImmediate() { - // d8 support, see preambles/d8.js for the definiton of `scheduleImmediate`. + // d8 support, see preambles/d8.js for the definition of `scheduleImmediate`. // // TODO(jmesserly): do we need this? It's only for our d8 stack trace test. if (JS('', '#.scheduleImmediate', dart.global_) != null) { diff --git a/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart b/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart index 0d8ebd47c75..9e1183c1db1 100644 --- a/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart +++ b/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart @@ -273,7 +273,7 @@ packageJSType(String name) { /// denote *some* package:js type in our subtyping logic. /// /// Used only when a concrete PackageJSType is not available i.e. when neither -/// the object nor the target type is a PackageJSType. Avoids initializating a +/// the object nor the target type is a PackageJSType. Avoids initializing a /// new PackageJSType every time. Note that we don't add it to the set of JS /// types, since it's not an actual JS class. final _pkgJSTypeForSubtyping = PackageJSType(''); diff --git a/sdk/lib/_internal/js_shared/lib/rti.dart b/sdk/lib/_internal/js_shared/lib/rti.dart index 36b18b5686f..6e2b265ce82 100644 --- a/sdk/lib/_internal/js_shared/lib/rti.dart +++ b/sdk/lib/_internal/js_shared/lib/rti.dart @@ -2224,7 +2224,7 @@ class _Universe { /// ToType(Rti): Same Rti /// /// -/// Notes on enviroments and indexing. +/// Notes on environments and indexing. /// /// To avoid creating a binding Rti for a single function type parameter, the /// type is passed without creating a 1-tuple object. This means that the diff --git a/sdk/lib/_internal/vm/bin/socket_patch.dart b/sdk/lib/_internal/vm/bin/socket_patch.dart index ed5a8926ba1..52ba2858e02 100644 --- a/sdk/lib/_internal/vm/bin/socket_patch.dart +++ b/sdk/lib/_internal/vm/bin/socket_patch.dart @@ -481,7 +481,7 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject { // Only used for UDP sockets. bool _availableDatagram = false; - // The number of incoming connnections for Listening socket. + // The number of incoming connections for Listening socket. int connections = 0; // The count of received event from eventhandler. diff --git a/sdk/lib/_internal/vm/lib/regexp_patch.dart b/sdk/lib/_internal/vm/lib/regexp_patch.dart index a977b67bbce..49364075064 100644 --- a/sdk/lib/_internal/vm/lib/regexp_patch.dart +++ b/sdk/lib/_internal/vm/lib/regexp_patch.dart @@ -53,7 +53,7 @@ class RegExp { static int _findEscapeChar(String text, int start) { // Table where each character in the range U+0000 to U+007f is represented // by whether it needs to be escaped in a regexp. - // The \x00 characters means escacped, and \x01 means non-escaped. + // The \x00 characters means escaped, and \x01 means non-escaped. const escapes = "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01" "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01" diff --git a/sdk/lib/_internal/vm/lib/string_patch.dart b/sdk/lib/_internal/vm/lib/string_patch.dart index 8e353de9143..540f3732dd4 100644 --- a/sdk/lib/_internal/vm/lib/string_patch.dart +++ b/sdk/lib/_internal/vm/lib/string_patch.dart @@ -918,7 +918,7 @@ abstract class _StringBase implements String { int startIndex = 0; int previousIndex = 0; // 'pattern' may not be implemented correctly and therefore we cannot - // call _substringUnhchecked unless it is a trustworthy type (e.g. String). + // call _substringUnchecked unless it is a trustworthy type (e.g. String). while (true) { if (startIndex == length || !iterator.moveNext()) { result.add(this.substring(previousIndex, length)); diff --git a/sdk/lib/_internal/wasm/lib/string_patch.dart b/sdk/lib/_internal/wasm/lib/string_patch.dart index 5b09baad869..b5e57fd0e06 100644 --- a/sdk/lib/_internal/wasm/lib/string_patch.dart +++ b/sdk/lib/_internal/wasm/lib/string_patch.dart @@ -849,7 +849,7 @@ abstract class _StringBase implements String { int startIndex = 0; int previousIndex = 0; // 'pattern' may not be implemented correctly and therefore we cannot - // call _substringUnhchecked unless it is a trustworthy type (e.g. String). + // call _substringUnchecked unless it is a trustworthy type (e.g. String). while (true) { if (startIndex == length || !iterator.moveNext()) { result.add(this.substring(previousIndex, length)); diff --git a/sdk/lib/async/stream_controller.dart b/sdk/lib/async/stream_controller.dart index 2baf00836a8..8ede57ee248 100644 --- a/sdk/lib/async/stream_controller.dart +++ b/sdk/lib/async/stream_controller.dart @@ -701,8 +701,8 @@ abstract class _StreamController implements _StreamControllerBase { // If either of addStream's cancel or `onCancel` returns a future, // we wait for it before continuing. // Any error during this process ends up in the returned future. - // If more errors happen, we act as if it happens inside nested try/finallys - // or whenComplete calls, and only the last error ends up in the + // If more errors happen, we act as if it happens inside nested try/finally + // blocks or whenComplete calls, and only the last error ends up in the // returned future. Future? result; if (_isAddingStream) { diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart index dd689415a87..48844147552 100644 --- a/sdk/lib/io/socket.dart +++ b/sdk/lib/io/socket.dart @@ -904,7 +904,7 @@ abstract class ResourceHandle { /// [RawSocket.readMessage]. /// /// Control messages could carry different information including -/// [ResourceHandle]. If [ResourceHandle]s are availabe as part of this message, +/// [ResourceHandle]. If [ResourceHandle]s are available as part of this message, /// they can be extracted via [extractHandles]. abstract class SocketControlMessage { /// Creates a control message containing the provided [handles]. diff --git a/tests/corelib/shuffle_test.dart b/tests/corelib/shuffle_test.dart index 2836c427487..3d46ded6b13 100644 --- a/tests/corelib/shuffle_test.dart +++ b/tests/corelib/shuffle_test.dart @@ -67,7 +67,7 @@ void testShuffle(list) { // of a proper shuffling hitting the same list again is less than 10^80 // (arbitrary bignum - approx. number of atoms in the universe). // - // The probablility of shuffling a list of length n into the same list is + // The probability of shuffling a list of length n into the same list is // 1/n!. If one shuffle didn't change the list, repeat shuffling until // probability of randomly hitting the same list every time is less than // 1/1e80. diff --git a/tests/corelib/uri_ipv6_test.dart b/tests/corelib/uri_ipv6_test.dart index e5dbb9dff21..a93c2769722 100644 --- a/tests/corelib/uri_ipv6_test.dart +++ b/tests/corelib/uri_ipv6_test.dart @@ -169,7 +169,7 @@ void testValidIpv6Uri() { Expect.equals('https://[fe80::8eae:4c4d:fee9:8434%25rename3]/index.html', uri.toString()); - // Test construtors with host name + // Test constructors with host name uri = Uri(scheme: 'https', host: '[ff02::5678%pvc1.3]'); uri = Uri(scheme: 'https', host: '[fe80::a%1]'); uri = Uri(scheme: 'https', host: '[fe80::a%25eE1]'); diff --git a/tests/corelib_2/shuffle_test.dart b/tests/corelib_2/shuffle_test.dart index c36ad5cf998..aaab68c7842 100644 --- a/tests/corelib_2/shuffle_test.dart +++ b/tests/corelib_2/shuffle_test.dart @@ -69,7 +69,7 @@ void testShuffle(list) { // of a proper shuffling hitting the same list again is less than 10^80 // (arbitrary bignum - approx. number of atoms in the universe). // - // The probablility of shuffling a list of length n into the same list is + // The probability of shuffling a list of length n into the same list is // 1/n!. If one shuffle didn't change the list, repeat shuffling until // probability of randomly hitting the same list every time is less than // 1/1e80. diff --git a/tests/corelib_2/uri_ipv6_test.dart b/tests/corelib_2/uri_ipv6_test.dart index a40cf1dcc97..8bd10bdbedf 100644 --- a/tests/corelib_2/uri_ipv6_test.dart +++ b/tests/corelib_2/uri_ipv6_test.dart @@ -171,7 +171,7 @@ void testValidIpv6Uri() { Expect.equals('https://[fe80::8eae:4c4d:fee9:8434%25rename3]/index.html', uri.toString()); - // Test construtors with host name + // Test constructors with host name uri = Uri(scheme: 'https', host: '[ff02::5678%pvc1.3]'); uri = Uri(scheme: 'https', host: '[fe80::a%1]'); uri = Uri(scheme: 'https', host: '[fe80::a%25eE1]'); diff --git a/tests/ffi/function_structs_test.dart b/tests/ffi/function_structs_test.dart index b0f2cdb9860..bfd656391f7 100644 --- a/tests/ffi/function_structs_test.dart +++ b/tests/ffi/function_structs_test.dart @@ -57,7 +57,7 @@ void testFunctionWithStruct({bool isLeaf: false}) { calloc.free(c2); } -/// pass an array of structs to a c funtion +/// pass an array of structs to a c function void testFunctionWithStructArray({bool isLeaf: false}) { Pointer> p1 = ffiTestFunctions.lookup("CoordinateElemAt1"); diff --git a/tests/ffi/generator/structs_by_value_tests_configuration.dart b/tests/ffi/generator/structs_by_value_tests_configuration.dart index 9179d50ecc9..1fff6726da0 100644 --- a/tests/ffi/generator/structs_by_value_tests_configuration.dart +++ b/tests/ffi/generator/structs_by_value_tests_configuration.dart @@ -719,7 +719,7 @@ final struct16bytesMixed2 = final struct17bytesInt = StructType([int64, int64, int8]); -/// This struct has only 1 byte field-alignmnent requirements. +/// This struct has only 1 byte field-alignment requirements. final struct19bytesInt = StructType(List.filled(19, uint8)); /// The first homogenous integer struct that does not go into registers diff --git a/tests/ffi/generator/structs_by_value_tests_generator.dart b/tests/ffi/generator/structs_by_value_tests_generator.dart index 3a18095d500..671f65ec76c 100644 --- a/tests/ffi/generator/structs_by_value_tests_generator.dart +++ b/tests/ffi/generator/structs_by_value_tests_generator.dart @@ -96,7 +96,7 @@ extension on List { } extension on CType { - /// A list of statements adding all members recurisvely to `result`. + /// A list of statements adding all members recursively to `result`. /// /// Both valid in Dart and C. String addToResultStatements(String variableName) { @@ -130,7 +130,7 @@ extension on CType { } extension on List { - /// A list of statements adding all members recurisvely to `result`. + /// A list of statements adding all members recursively to `result`. /// /// Both valid in Dart and C. String addToResultStatements([String namePrefix = ""]) { diff --git a/tests/ffi/regress_40537_test.dart b/tests/ffi/regress_40537_test.dart index d003b21d354..bd4cdf97217 100644 --- a/tests/ffi/regress_40537_test.dart +++ b/tests/ffi/regress_40537_test.dart @@ -29,14 +29,14 @@ final regress40537 = ffiTestFunctions variant1Negative() { // 0xF9 = -7 in 2s complement. - // 0xF9 = 249 in unsinged. + // 0xF9 = 249 in unsigned. final result = regress40537(-7); print(result); Expect.equals(1, result); } variant1Positive() { - // 0xF9 = 249 in unsinged. + // 0xF9 = 249 in unsigned. final result = regress40537(0xFFFFFFF9); print(result); Expect.equals(1, result); diff --git a/tests/ffi_2/function_structs_test.dart b/tests/ffi_2/function_structs_test.dart index 86f49dea189..2aa80edfce3 100644 --- a/tests/ffi_2/function_structs_test.dart +++ b/tests/ffi_2/function_structs_test.dart @@ -58,7 +58,7 @@ void testFunctionWithStruct({bool isLeaf: false}) { calloc.free(c2); } -/// pass an array of structs to a c funtion +/// pass an array of structs to a c function void testFunctionWithStructArray({bool isLeaf: false}) { Pointer> p1 = ffiTestFunctions.lookup("CoordinateElemAt1"); diff --git a/tests/ffi_2/regress_40537_test.dart b/tests/ffi_2/regress_40537_test.dart index a9983db275d..bb5eb583202 100644 --- a/tests/ffi_2/regress_40537_test.dart +++ b/tests/ffi_2/regress_40537_test.dart @@ -31,14 +31,14 @@ final regress40537 = ffiTestFunctions variant1Negative() { // 0xF9 = -7 in 2s complement. - // 0xF9 = 249 in unsinged. + // 0xF9 = 249 in unsigned. final result = regress40537(-7); print(result); Expect.equals(1, result); } variant1Positive() { - // 0xF9 = 249 in unsinged. + // 0xF9 = 249 in unsigned. final result = regress40537(0xFFFFFFF9); print(result); Expect.equals(1, result); diff --git a/tests/language/async_star/async_star_await_for_test.dart b/tests/language/async_star/async_star_await_for_test.dart index 0493a1f1880..46b5ca5bf91 100644 --- a/tests/language/async_star/async_star_await_for_test.dart +++ b/tests/language/async_star/async_star_await_for_test.dart @@ -54,7 +54,7 @@ Stream consume(List log, if (event == yieldAt) { log.add("y$event["); // Yield may cause subscription to pause or cancel. - // This loop should stay at the yield until the event has been delieverd. + // This loop should stay at the yield until the event has been delivered. // If the receiver pauses or cancels, we delay or break the loop here. yield event; log.add("]"); diff --git a/tests/language/const/string_test.dart b/tests/language/const/string_test.dart index 13f1a9cb73a..44f6241d045 100644 --- a/tests/language/const/string_test.dart +++ b/tests/language/const/string_test.dart @@ -21,7 +21,7 @@ main() { Expect.isTrue(identical("abcd", 'ab' 'cd')); Expect.isTrue(identical("abcd", 'ab' "cd")); - // Or when there are more than 2 contatenations. + // Or when there are more than 2 concatenations. Expect.isTrue(identical("abcd", "a" "b" "cd")); Expect.isTrue(identical("abcd", "a" "b" "c" "d")); Expect.isTrue(identical('abcd', 'a' 'b' 'c' 'd')); diff --git a/tests/language/constants_2018/potential_const_dynamic_test.dart b/tests/language/constants_2018/potential_const_dynamic_test.dart index 63f031a5796..228701ecf88 100644 --- a/tests/language/constants_2018/potential_const_dynamic_test.dart +++ b/tests/language/constants_2018/potential_const_dynamic_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. // Tests that a dynamic type does not affect whether an expression is -// potentially constant, the actual type of the value of an experssion +// potentially constant, the actual type of the value of an expression // only matters if the expression is evaluated as a constant. main() { diff --git a/tests/language/constants_2018/potential_const_test.dart b/tests/language/constants_2018/potential_const_test.dart index ad516a9624f..034147997ce 100644 --- a/tests/language/constants_2018/potential_const_test.dart +++ b/tests/language/constants_2018/potential_const_test.dart @@ -12,7 +12,7 @@ class C { const C(this.v); // Redirecting generative constructor invocation parameters, - // must be potenentially constant. + // must be potentially constant. const C.r1() : this(const C(null)); // Only evaluates the true branch when passed `true` as argument. diff --git a/tests/language/constructor/tear_off_test.dart b/tests/language/constructor/tear_off_test.dart index ce7144dd01e..98dd2f32e8b 100644 --- a/tests/language/constructor/tear_off_test.dart +++ b/tests/language/constructor/tear_off_test.dart @@ -194,7 +194,7 @@ void main() { // Using a type variable, not a constant type expression. // Canonicalization is unspecified, but equality holds. (() { - // Tear off with explicit instantation to the same non-constant type. + // Tear off with explicit instantiation to the same non-constant type. Expect.equals(GGen.new, GGen.new); Expect.equals(GGen.named, GGen.named); Expect.equals(GGenRedir.new, GGenRedir.new); diff --git a/tests/language/nonfunction_type_aliases/private_names/private_name_mixin_test.dart b/tests/language/nonfunction_type_aliases/private_names/private_name_mixin_test.dart index 797f4257ebc..39e9f8c1f25 100644 --- a/tests/language/nonfunction_type_aliases/private_names/private_name_mixin_test.dart +++ b/tests/language/nonfunction_type_aliases/private_names/private_name_mixin_test.dart @@ -62,7 +62,7 @@ void test2() { // original library. Expect.equals(privateLibrarySentinel, callPrivateSuperMixinMethod(p)); Expect.equals(privateLibrarySentinel, callPrivateInstanceMethod(p)); - // The new private mixin and instance methods are acessible in this library. + // The new private mixin and instance methods are accessible in this library. Expect.equals(publicLibrarySentinel, p._privateMixinMethod()); Expect.equals(publicLibrarySentinel, p._privateInstanceMethod()); } diff --git a/tests/language_2/async_star/async_star_await_for_test.dart b/tests/language_2/async_star/async_star_await_for_test.dart index 980f8c7c4d8..f4a2a4d690e 100644 --- a/tests/language_2/async_star/async_star_await_for_test.dart +++ b/tests/language_2/async_star/async_star_await_for_test.dart @@ -56,7 +56,7 @@ Stream consume(List log, if (event == yieldAt) { log.add("y$event["); // Yield may cause subscription to pause or cancel. - // This loop should stay at the yield until the event has been delieverd. + // This loop should stay at the yield until the event has been delivered. // If the receiver pauses or cancels, we delay or break the loop here. yield event; log.add("]"); diff --git a/tests/language_2/const/string_test.dart b/tests/language_2/const/string_test.dart index 0429ff5f9bd..5895d76d8cc 100644 --- a/tests/language_2/const/string_test.dart +++ b/tests/language_2/const/string_test.dart @@ -23,7 +23,7 @@ main() { Expect.isTrue(identical("abcd", 'ab' 'cd')); Expect.isTrue(identical("abcd", 'ab' "cd")); - // Or when there are more than 2 contatenations. + // Or when there are more than 2 concatenations. Expect.isTrue(identical("abcd", "a" "b" "cd")); Expect.isTrue(identical("abcd", "a" "b" "c" "d")); Expect.isTrue(identical('abcd', 'a' 'b' 'c' 'd')); diff --git a/tests/language_2/constants_2018/potential_const_dynamic_test.dart b/tests/language_2/constants_2018/potential_const_dynamic_test.dart index 2f98cc3b600..e8a6158fd8f 100644 --- a/tests/language_2/constants_2018/potential_const_dynamic_test.dart +++ b/tests/language_2/constants_2018/potential_const_dynamic_test.dart @@ -5,7 +5,7 @@ // @dart = 2.9 // Tests that a dynamic type does not affect whether an expression is -// potentially constant, the actual type of the value of an experssion +// potentially constant, the actual type of the value of an expression // only matters if the expression is evaluated as a constant. main() { diff --git a/tests/language_2/constants_2018/potential_const_test.dart b/tests/language_2/constants_2018/potential_const_test.dart index e7fd65847d0..be26de8a1c5 100644 --- a/tests/language_2/constants_2018/potential_const_test.dart +++ b/tests/language_2/constants_2018/potential_const_test.dart @@ -14,7 +14,7 @@ class C { const C(this.v); // Redirecting generative constructor invocation parameters, - // must be potenentially constant. + // must be potentially constant. const C.r1() : this(const C(null)); // Only evaluates the true branch when passed `true` as argument. diff --git a/tests/lib/async/zone_value_test.dart b/tests/lib/async/zone_value_test.dart index 78417761da9..41564dfbf3f 100644 --- a/tests/lib/async/zone_value_test.dart +++ b/tests/lib/async/zone_value_test.dart @@ -138,7 +138,7 @@ main() { } // Class of objects that consider themselves equal to their originals. -// Sees through mimickry. +// Sees through mimicry. class Mimic { final Object original; Mimic(this.original); diff --git a/tests/lib/isolate/weak_reference_message_2_test.dart b/tests/lib/isolate/weak_reference_message_2_test.dart index cc70985b845..80d95172d08 100644 --- a/tests/lib/isolate/weak_reference_message_2_test.dart +++ b/tests/lib/isolate/weak_reference_message_2_test.dart @@ -59,10 +59,10 @@ Future runHelper(SendPort port) async { expando4[key4] = object4; final message = [ - weakRef1, // Does not have its target inluded. + weakRef1, // Does not have its target included. weakRef2, // Has its target included later than itself. object2, - weakRef3, // Does not have its target inluded. + weakRef3, // Does not have its target included. expando3, weakRef4, // Has its target included due to expando. expando4, diff --git a/tests/lib/js/array_test.dart b/tests/lib/js/array_test.dart index 30bae97e8e6..caa1f906ae3 100644 --- a/tests/lib/js/array_test.dart +++ b/tests/lib/js/array_test.dart @@ -21,7 +21,7 @@ testArrayConstructor() { var list = [1, 2, 3]; testArray = list; - // Call the consturctor with `new`. + // Call the constructor with `new`. var array = js.callConstructor(js.getProperty(testArray, 'constructor'), []); var list2 = array as List; Expect.listEquals(list2, []); diff --git a/tests/lib/js/js_util/properties_test.dart b/tests/lib/js/js_util/properties_test.dart index 5f718a6f1ac..0ac33103e17 100644 --- a/tests/lib/js/js_util/properties_test.dart +++ b/tests/lib/js/js_util/properties_test.dart @@ -315,7 +315,7 @@ main() { expect(index, equals(1)); expect(js_util.getProperty(f.list, index), equals(4)); - // Accessing nested object properites. + // Accessing nested object properties. var objectProperty = js_util.getProperty(f, 'objectProperty'); expect(js_util.getProperty(objectProperty, 'c'), equals(1)); expect(js_util.getProperty(objectProperty, 'list') is List, isTrue); diff --git a/tests/lib_2/async/zone_value_test.dart b/tests/lib_2/async/zone_value_test.dart index 8be36a03031..15e2c83a90b 100644 --- a/tests/lib_2/async/zone_value_test.dart +++ b/tests/lib_2/async/zone_value_test.dart @@ -140,7 +140,7 @@ main() { } // Class of objects that consider themselves equal to their originals. -// Sees through mimickry. +// Sees through mimicry. class Mimic { final Object original; Mimic(this.original); diff --git a/tests/lib_2/isolate/weak_reference_message_2_test.dart b/tests/lib_2/isolate/weak_reference_message_2_test.dart index 1c1873572a4..5dfa95f8b43 100644 --- a/tests/lib_2/isolate/weak_reference_message_2_test.dart +++ b/tests/lib_2/isolate/weak_reference_message_2_test.dart @@ -61,10 +61,10 @@ Future runHelper(SendPort port) async { expando4[key4] = object4; final message = [ - weakRef1, // Does not have its target inluded. + weakRef1, // Does not have its target included. weakRef2, // Has its target included later than itself. object2, - weakRef3, // Does not have its target inluded. + weakRef3, // Does not have its target included. expando3, weakRef4, // Has its target included due to expando. expando4, diff --git a/tests/lib_2/js/array_test.dart b/tests/lib_2/js/array_test.dart index 4cf555837e7..76c602164e9 100644 --- a/tests/lib_2/js/array_test.dart +++ b/tests/lib_2/js/array_test.dart @@ -23,7 +23,7 @@ testArrayConstructor() { var list = [1, 2, 3]; testArray = list; - // Call the consturctor with `new`. + // Call the constructor with `new`. var array = js.callConstructor(js.getProperty(testArray, 'constructor'), []); var list2 = array as List; Expect.listEquals(list2, []); diff --git a/tests/lib_2/js/js_util/properties_test.dart b/tests/lib_2/js/js_util/properties_test.dart index 2b0af1049cd..6618c4fb263 100644 --- a/tests/lib_2/js/js_util/properties_test.dart +++ b/tests/lib_2/js/js_util/properties_test.dart @@ -317,7 +317,7 @@ main() { expect(index, equals(1)); expect(js_util.getProperty(f.list, index), equals(4)); - // Accessing nested object properites. + // Accessing nested object properties. var objectProperty = js_util.getProperty(f, 'objectProperty'); expect(js_util.getProperty(objectProperty, 'c'), equals(1)); expect(js_util.getProperty(objectProperty, 'list') is List, isTrue); diff --git a/tests/standalone/io/raw_secure_server_socket_test.dart b/tests/standalone/io/raw_secure_server_socket_test.dart index a461480ded4..6cea5928c18 100644 --- a/tests/standalone/io/raw_secure_server_socket_test.dart +++ b/tests/standalone/io/raw_secure_server_socket_test.dart @@ -54,7 +54,7 @@ void testInvalidBind() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); print("asyncStart testInvalidBind 2"); RawSecureServerSocket.bind("8.8.8.8", 0, serverContext).then((_) { diff --git a/tests/standalone/io/raw_socket_test.dart b/tests/standalone/io/raw_socket_test.dart index 935db3738b0..27aefff7ac9 100644 --- a/tests/standalone/io/raw_socket_test.dart +++ b/tests/standalone/io/raw_socket_test.dart @@ -38,7 +38,7 @@ void testInvalidBind() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); RawServerSocket.bind("8.8.8.8", 0).then((_) { Expect.fail("Failure expected"); diff --git a/tests/standalone/io/raw_synchronous_socket_test.dart b/tests/standalone/io/raw_synchronous_socket_test.dart index 96f4511ac74..71dabd0ea67 100644 --- a/tests/standalone/io/raw_synchronous_socket_test.dart +++ b/tests/standalone/io/raw_synchronous_socket_test.dart @@ -33,7 +33,7 @@ void testInvalidConnect() { Expect.isTrue(e is SocketException); } - // Connect to an unavaliable IP-address. + // Connect to an unavailable IP-address. try { var socket = RawSynchronousSocket.connectSync("1.2.3.4", 0); Expect.fail("Failure expected"); diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart index 627ed6de9ea..9fd735cd74f 100644 --- a/tests/standalone/io/secure_server_socket_test.dart +++ b/tests/standalone/io/secure_server_socket_test.dart @@ -49,7 +49,7 @@ void testInvalidBind() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); SecureServerSocket.bind("8.8.8.8", 0, serverContext).then((_) { Expect.fail("Failure expected"); diff --git a/tests/standalone/io/socket_invalid_bind_test.dart b/tests/standalone/io/socket_invalid_bind_test.dart index f19d5510673..92d1f95709e 100644 --- a/tests/standalone/io/socket_invalid_bind_test.dart +++ b/tests/standalone/io/socket_invalid_bind_test.dart @@ -23,7 +23,7 @@ void main() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); ServerSocket.bind("8.8.8.8", 0).then((_) { Expect.fail("Failure expected"); diff --git a/tests/standalone/priority_queue_stress_test.dart b/tests/standalone/priority_queue_stress_test.dart index 4f70334a438..aab8bfad37b 100644 --- a/tests/standalone/priority_queue_stress_test.dart +++ b/tests/standalone/priority_queue_stress_test.dart @@ -83,7 +83,7 @@ class PriorityNode { * The queue guarantees that nodes are returned in the same order they * are added for a given priority. * For type safety this queue is guarded by the elements being subclasses of - * TypedElement - this is not strictly neccesary since we never actually + * TypedElement - this is not strictly necessary since we never actually * use the value or type of the nodes. */ class PriorityQueue { @@ -152,7 +152,7 @@ class PriorityQueue { /** * Implements a specialized priority queue that efficiently allows getting - * the highest priorized node that adheres to a set of restrictions. + * the highest prioritized node that adheres to a set of restrictions. * Most notably it allows to get the highest priority node where the node's * type is not in an exclude list. * In addition, the queue has a number of properties: @@ -167,7 +167,7 @@ class PriorityQueue { */ class RestrictViewPriorityQueue { // We can't use the basic dart priority queue since it does not guarantee - // FIFO for items with the same order. This is currently not uptimized for + // FIFO for items with the same order. This is currently not optimized for // different N, if many different N is expected here we should have a // priority queue instead of a list. List> restrictedQueues = >[]; diff --git a/tests/standalone_2/io/raw_secure_server_socket_test.dart b/tests/standalone_2/io/raw_secure_server_socket_test.dart index 7c1c749f945..030d3e2675b 100644 --- a/tests/standalone_2/io/raw_secure_server_socket_test.dart +++ b/tests/standalone_2/io/raw_secure_server_socket_test.dart @@ -56,7 +56,7 @@ void testInvalidBind() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); print("asyncStart testInvalidBind 2"); RawSecureServerSocket.bind("8.8.8.8", 0, serverContext).then((_) { diff --git a/tests/standalone_2/io/raw_socket_test.dart b/tests/standalone_2/io/raw_socket_test.dart index 97a7d03b7f0..9b3715d2a7f 100644 --- a/tests/standalone_2/io/raw_socket_test.dart +++ b/tests/standalone_2/io/raw_socket_test.dart @@ -40,7 +40,7 @@ void testInvalidBind() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); RawServerSocket.bind("8.8.8.8", 0).then((_) { Expect.fail("Failure expected"); diff --git a/tests/standalone_2/io/raw_synchronous_socket_test.dart b/tests/standalone_2/io/raw_synchronous_socket_test.dart index 3e8a86b7d23..09f8b01d3f5 100644 --- a/tests/standalone_2/io/raw_synchronous_socket_test.dart +++ b/tests/standalone_2/io/raw_synchronous_socket_test.dart @@ -37,7 +37,7 @@ void testInvalidConnect() { Expect.isTrue(e is SocketException); } - // Connect to an unavaliable IP-address. + // Connect to an unavailable IP-address. try { var socket = RawSynchronousSocket.connectSync("1.2.3.4", 0); Expect.fail("Failure expected"); diff --git a/tests/standalone_2/io/secure_server_socket_test.dart b/tests/standalone_2/io/secure_server_socket_test.dart index 010b8ac6706..6fa2ccd7bc0 100644 --- a/tests/standalone_2/io/secure_server_socket_test.dart +++ b/tests/standalone_2/io/secure_server_socket_test.dart @@ -51,7 +51,7 @@ void testInvalidBind() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); SecureServerSocket.bind("8.8.8.8", 0, serverContext).then((_) { Expect.fail("Failure expected"); diff --git a/tests/standalone_2/io/socket_invalid_bind_test.dart b/tests/standalone_2/io/socket_invalid_bind_test.dart index efa9e658538..c5a1fe88268 100644 --- a/tests/standalone_2/io/socket_invalid_bind_test.dart +++ b/tests/standalone_2/io/socket_invalid_bind_test.dart @@ -25,7 +25,7 @@ void main() { asyncEnd(); }); - // Bind to an unavaliable IP-address. + // Bind to an unavailable IP-address. asyncStart(); ServerSocket.bind("8.8.8.8", 0).then((_) { Expect.fail("Failure expected"); diff --git a/tests/standalone_2/priority_queue_stress_test.dart b/tests/standalone_2/priority_queue_stress_test.dart index 8b3e6b81544..b991dc572c6 100644 --- a/tests/standalone_2/priority_queue_stress_test.dart +++ b/tests/standalone_2/priority_queue_stress_test.dart @@ -85,7 +85,7 @@ class PriorityNode { * The queue guarantees that nodes are returned in the same order they * are added for a given priority. * For type safety this queue is guarded by the elements being subclasses of - * TypedElement - this is not strictly neccesary since we never actually + * TypedElement - this is not strictly necessary since we never actually * use the value or type of the nodes. */ class PriorityQueue { @@ -154,7 +154,7 @@ class PriorityQueue { /** * Implements a specialized priority queue that efficiently allows getting - * the highest priorized node that adheres to a set of restrictions. + * the highest prioritized node that adheres to a set of restrictions. * Most notably it allows to get the highest priority node where the node's * type is not in an exclude list. * In addition, the queue has a number of properties: @@ -169,7 +169,7 @@ class PriorityQueue { */ class RestrictViewPriorityQueue { // We can't use the basic dart priority queue since it does not guarantee - // FIFO for items with the same order. This is currently not uptimized for + // FIFO for items with the same order. This is currently not optimized for // different N, if many different N is expected here we should have a // priority queue instead of a list. List> restrictedQueues = new List>(); diff --git a/tests/web/regress/issue/40349_test.dart b/tests/web/regress/issue/40349_test.dart index 83b8797a9f4..c47bb54c64a 100644 --- a/tests/web/regress/issue/40349_test.dart +++ b/tests/web/regress/issue/40349_test.dart @@ -13,7 +13,7 @@ /// a broken invariant of the SSA generate-at-use logic. void main() { - // `x` which is used multiple times after inilining, so a temporary is used. + // `x` which is used multiple times after inlining, so a temporary is used. x.method(40); } diff --git a/tests/web/regress/issue/49287_test.dart b/tests/web/regress/issue/49287_test.dart index 08e94e761e1..05d2ef106ff 100644 --- a/tests/web/regress/issue/49287_test.dart +++ b/tests/web/regress/issue/49287_test.dart @@ -10,7 +10,7 @@ import '49287_data.dart'; // This test contains a huge number of large strings that are predominantly code // points that require surrogate pairs. The hope is that if there is an encoding -// issue like #49287 where a split surrgote pair is converted to U+FFFD +// issue like #49287 where a split surrogate pair is converted to U+FFFD // REPLACEMENT CHARACTER, this will appear in the constructed string that // otherwise does not contain U+FFFD. diff --git a/tests/web_2/regress/issue/40349_test.dart b/tests/web_2/regress/issue/40349_test.dart index 50316bcf297..2827ac3cbfc 100644 --- a/tests/web_2/regress/issue/40349_test.dart +++ b/tests/web_2/regress/issue/40349_test.dart @@ -15,7 +15,7 @@ /// a broken invariant of the SSA generate-at-use logic. void main() { - // `x` which is used multiple times after inilining, so a temporary is used. + // `x` which is used multiple times after inlining, so a temporary is used. x.method(40); }