mirror of
https://github.com/flutter/flutter
synced 2024-08-25 02:46:31 +00:00
checked mode fix; add type annotation (#3737)
This commit is contained in:
parent
a5eb4c04c7
commit
61c003734b
|
@ -1,25 +0,0 @@
|
|||
#!/usr/bin/env dart
|
||||
|
||||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
// TODO (devoncarew): Remove this once the chromium bot is updated.
|
||||
Future<Null> main(List<String> args) async {
|
||||
Process.runSync('pub', <String>['get'], workingDirectory: 'dev/tools');
|
||||
Process process = await Process.start('dart', <String>['dartdoc.dart'],
|
||||
workingDirectory: 'dev/tools');
|
||||
process.stdout
|
||||
.transform(UTF8.decoder)
|
||||
.transform(const LineSplitter())
|
||||
.listen(print);
|
||||
process.stderr
|
||||
.transform(UTF8.decoder)
|
||||
.transform(const LineSplitter())
|
||||
.listen(print);
|
||||
exit(await process.exitCode);
|
||||
}
|
|
@ -100,7 +100,7 @@ class MarkdownStyleRaw {
|
|||
Map<String, TextStyle> get styles => _styles;
|
||||
|
||||
void _init() {
|
||||
_styles = {
|
||||
_styles = <String, TextStyle>{
|
||||
'a': a,
|
||||
'p': p,
|
||||
'li': p,
|
||||
|
|
|
@ -425,6 +425,7 @@ class FlutterCommandRunner extends CommandRunner {
|
|||
.listSync(followLinks: false)
|
||||
.expand((FileSystemEntity entity) {
|
||||
return entity is Directory ? _gatherProjectPaths(entity.path) : <String>[];
|
||||
});
|
||||
})
|
||||
.toList();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue