Skip to content

Commit 9b7bb9d

Browse files
mabdelaal86Commit Queue
authored andcommitted
Fix "the the" typo
Closes #59926 GitOrigin-RevId: cb37bca Change-Id: I6827241b22e99db455945afcdfbaee0450999ce9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404923 Reviewed-by: Devon Carew <[email protected]> Commit-Queue: Devon Carew <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Johnni Winther <[email protected]>
1 parent e1eade6 commit 9b7bb9d

File tree

23 files changed

+31
-31
lines changed

23 files changed

+31
-31
lines changed

pkg/_fe_analyzer_shared/lib/src/type_inference/shared_inference_log.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum ConstraintGenerationSource {
5959
/// `GenericInferrer.constrainGenericFunctionInContext` method.
6060
genericFunctionInContext(description: 'GENERIC FUNCTION IN CONTEXT'),
6161

62-
/// The source of the constraint is the the context of the invocation whose
62+
/// The source of the constraint is the context of the invocation whose
6363
/// type is being inferred, being matched against the return type in function
6464
/// or method being invoked.
6565
returnType(description: 'RETURN TYPE');

pkg/_fe_analyzer_shared/lib/src/type_inference/type_analyzer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2568,7 +2568,7 @@ abstract class TypeAnalyzerErrors<
25682568

25692569
/// Called for variable that is assigned more than once.
25702570
///
2571-
/// Returns an error object that is passed on the the caller.
2571+
/// Returns an error object that is passed on to the caller.
25722572
Error duplicateAssignmentPatternVariable({
25732573
required Variable variable,
25742574
required Pattern original,

pkg/analysis_server/lib/src/analysis_server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ abstract class CommonServerContextManagerCallbacks
11201120
// If the removed file doesn't have an overlay, we need to clear any
11211121
// previous results.
11221122
if (!resourceProvider.hasOverlay(file)) {
1123-
// Clear the cached errors in the the notification manager so we don't
1123+
// Clear the cached errors in the notification manager so we don't
11241124
// re-send stale results if a plugin sends an update and we merge it with
11251125
// previous results.
11261126
analysisServer.notificationManager.errors.clearResultsForFile(file);

pkg/analysis_server/lib/src/analytics/percentile_calculator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class PercentileCalculator {
6363
/// Return a map that can be encoded as JSON that represents the state of this
6464
/// calculator.
6565
Map<String, Object> toJson() {
66-
// It's important the the encoded form of the list of percentile values be
66+
// It's important that the encoded form of the list of percentile values be
6767
// less than 100 characters long.
6868
return {
6969
'count': _valueCount,

pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ CompileTimeErrorCode.INCONSISTENT_LANGUAGE_VERSION_OVERRIDE:
847847
CompileTimeErrorCode.INCONSISTENT_PATTERN_VARIABLE_LOGICAL_OR:
848848
status: noFix
849849
notes: |-
850-
We cannot figure out the the user's intent here, and so cannot generate a
850+
We cannot figure out the user's intent here, and so cannot generate a
851851
fix that would be right.
852852
CompileTimeErrorCode.INITIALIZER_FOR_NON_EXISTENT_FIELD:
853853
status: needsFix

pkg/analysis_server/lib/src/services/correction/fix/pubspec/fix_generator.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ class PubspecFixGenerator {
246246
? prevEntry.value.span.end.offset
247247
: (currentEntry.key as YamlNode).span.start.offset;
248248
// If nextEntry is null, this is the last entry in the
249-
// dev_dependencies section, and also dev_dependencies is the the
250-
// last section in the pubspec file. So delete till the end of the
249+
// dev_dependencies section, and also dev_dependencies is the last
250+
// section in the pubspec file. So delete till the end of the
251251
// section.
252252
var endOffset =
253253
nextEntry == null

pkg/analysis_server/tool/lsp_spec/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Direction: Client -> Server
268268
Params: `{ uri: Uri }`
269269
Returns: `{ content: string | undefined }`
270270

271-
Returns the content of the the virtual document with `uri`. This is intended for generated files (such as those generated by macros) and is not supported for 'file' URIs.
271+
Returns the content of the virtual document with `uri`. This is intended for generated files (such as those generated by macros) and is not supported for 'file' URIs.
272272

273273
### dart/textDocumentContentDidChange Notification
274274

pkg/dart2wasm/lib/param_info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ParameterInfo {
1616
final List<Constant?> positional;
1717

1818
/// Default values of named parameters. Similar to [positional], `null` means
19-
/// the the parameter is not optional.
19+
/// the parameter is not optional.
2020
final Map<String, Constant?> named;
2121

2222
final bool takesContextOrReceiver;

pkg/dartdev/lib/src/commands/compile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ class CompileWasmCommand extends CompileSubcommandCommand {
871871
flags.removeWhere((option) => option == '--no-$name');
872872
flags.removeWhere((option) => option == '--$name');
873873

874-
// Explicitly use the the flag value, irrespective of -O settings.
874+
// Explicitly use the flag value, irrespective of -O settings.
875875
value ? flags.add('--$name') : flags.add('--no-$name');
876876
}
877877

pkg/dartdev/lib/src/resident_frontend_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Future<bool> isFileAppJitSnapshot(final File file) async {
8989
}
9090

9191
Future<bool> isFileAotSnapshot(final File file) async {
92-
// Check for any of the the magic numbers that can be found at the start of an
92+
// Check for any of the magic numbers that can be found at the start of an
9393
// AOT snapshot.
9494

9595
final bytes = await file.openRead(0, 4).expand((i) => i).toList();

0 commit comments

Comments
 (0)