Fixed few typos (#141543)

I continued [my mission](https://github.com/flutter/flutter/pull/141431) to find as many typos as I could. This time it's a smaller set than before.

There is no need for issues since it's a typo fix.
This commit is contained in:
Anis Alibegić
2024-01-16 22:40:08 +01:00
committed by GitHub
parent b9aba43b44
commit e063f56832
38 changed files with 52 additions and 52 deletions

View File

@@ -70,7 +70,7 @@ class _StopwatchVisitor extends RecursiveAstVisitor<void> {
final Map<ClassElement, bool> _isStopwatchClassElementCache = <ClassElement, bool>{};
bool _checkIfImplementsStopwatchRecurively(ClassElement classElement) {
bool _checkIfImplementsStopwatchRecursively(ClassElement classElement) {
if (classElement.library.isDartCore) {
return classElement.name == 'Stopwatch';
}
@@ -80,11 +80,11 @@ class _StopwatchVisitor extends RecursiveAstVisitor<void> {
});
}
// The cached version, call this method instead of _checkIfImplementsStopwatchRecurively.
// The cached version, call this method instead of _checkIfImplementsStopwatchRecursively.
bool _implementsStopwatch(ClassElement classElement) {
return classElement.library.isDartCore
? classElement.name == 'Stopwatch'
:_isStopwatchClassElementCache.putIfAbsent(classElement, () => _checkIfImplementsStopwatchRecurively(classElement));
:_isStopwatchClassElementCache.putIfAbsent(classElement, () => _checkIfImplementsStopwatchRecursively(classElement));
}
bool _isInternal(LibraryElement libraryElement) {

View File

@@ -8,7 +8,7 @@ import 'dart:io';
const String registry = 'https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry';
/// A script to generate a Dart cache of https://www.iana.org. This should be
/// run occasionally. It was created since iana.org was found to be flakey.
/// run occasionally. It was created since iana.org was found to be flaky.
///
/// To execute: dart gen_subtag_registry.dart > language_subtag_registry.dart
Future<void> main() async {