From 61c003734b9cf6eb08e59274deb41056d189c2fe Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 4 May 2016 13:41:46 -0700 Subject: [PATCH] checked mode fix; add type annotation (#3737) --- dev/dartdoc.dart | 25 ------------------- .../lib/src/markdown_style_raw.dart | 2 +- .../src/runner/flutter_command_runner.dart | 3 ++- 3 files changed, 3 insertions(+), 27 deletions(-) delete mode 100755 dev/dartdoc.dart diff --git a/dev/dartdoc.dart b/dev/dartdoc.dart deleted file mode 100755 index 870b7edaeb..0000000000 --- a/dev/dartdoc.dart +++ /dev/null @@ -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 main(List args) async { - Process.runSync('pub', ['get'], workingDirectory: 'dev/tools'); - Process process = await Process.start('dart', ['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); -} diff --git a/packages/flutter_markdown/lib/src/markdown_style_raw.dart b/packages/flutter_markdown/lib/src/markdown_style_raw.dart index 4b694855bd..2bcac36083 100644 --- a/packages/flutter_markdown/lib/src/markdown_style_raw.dart +++ b/packages/flutter_markdown/lib/src/markdown_style_raw.dart @@ -100,7 +100,7 @@ class MarkdownStyleRaw { Map get styles => _styles; void _init() { - _styles = { + _styles = { 'a': a, 'p': p, 'li': p, diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart index 955eee1d8c..382cc4ef9c 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart @@ -425,6 +425,7 @@ class FlutterCommandRunner extends CommandRunner { .listSync(followLinks: false) .expand((FileSystemEntity entity) { return entity is Directory ? _gatherProjectPaths(entity.path) : []; - }); + }) + .toList(); } }