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:
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user