From a960dec973cba9db616eeaaccc52b65468fe17ce Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Tue, 19 Jul 2016 22:31:46 -0700 Subject: [PATCH] organize imports --- bin/dartdoc.dart | 6 +++--- lib/dartdoc.dart | 2 +- lib/src/config.dart | 4 ++++ lib/src/debug.dart | 4 ++++ lib/src/html/templates.dart | 4 ++++ lib/src/line_number_cache.dart | 4 ++++ lib/src/markdown_processor.dart | 1 - test/model_test.dart | 2 +- tool/grind.dart | 6 +++--- tool/travis.sh | 8 ++++---- 10 files changed, 28 insertions(+), 13 deletions(-) diff --git a/bin/dartdoc.dart b/bin/dartdoc.dart index 11f2b8b557..bc8f8972fd 100644 --- a/bin/dartdoc.dart +++ b/bin/dartdoc.dart @@ -6,14 +6,14 @@ library dartdoc.bin; import 'dart:io'; +import 'package:analyzer/src/generated/java_io.dart'; +import 'package:analyzer/src/generated/sdk.dart'; +import 'package:analyzer/src/generated/sdk_io.dart'; import 'package:args/args.dart'; import 'package:cli_util/cli_util.dart' as cli_util; import 'package:dartdoc/dartdoc.dart'; import 'package:path/path.dart' as path; import 'package:stack_trace/stack_trace.dart'; -import 'package:analyzer/src/generated/sdk.dart'; -import 'package:analyzer/src/generated/sdk_io.dart'; -import 'package:analyzer/src/generated/java_io.dart'; /// Analyzes Dart files and generates a representation of included libraries, /// classes, and members. Uses the current directory to look for libraries. diff --git a/lib/dartdoc.dart b/lib/dartdoc.dart index f35d3ca2ae..e4b021e661 100644 --- a/lib/dartdoc.dart +++ b/lib/dartdoc.dart @@ -25,6 +25,7 @@ import 'package:analyzer/src/generated/source.dart'; import 'package:analyzer/src/generated/source_io.dart'; import 'package:path/path.dart' as p; +import 'src/config.dart'; import 'src/generator.dart'; import 'src/html/html_generator.dart'; import 'src/io_utils.dart'; @@ -32,7 +33,6 @@ import 'src/model.dart'; import 'src/model_utils.dart'; import 'src/package_meta.dart'; -import 'src/config.dart'; export 'src/element_type.dart'; export 'src/generator.dart'; export 'src/model.dart'; diff --git a/lib/src/config.dart b/lib/src/config.dart index 3d5011889b..e5bc4f9140 100644 --- a/lib/src/config.dart +++ b/lib/src/config.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + library dartdoc.config; import 'dart:io'; diff --git a/lib/src/debug.dart b/lib/src/debug.dart index d4e7800fd6..7d78d11b89 100644 --- a/lib/src/debug.dart +++ b/lib/src/debug.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + library debugger_helper; import "dart:developer" as dev; diff --git a/lib/src/html/templates.dart b/lib/src/html/templates.dart index ca82c08685..dfc4447813 100644 --- a/lib/src/html/templates.dart +++ b/lib/src/html/templates.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + library dartdoc.templates; import 'dart:async' show Future; diff --git a/lib/src/line_number_cache.dart b/lib/src/line_number_cache.dart index f9ca313b6a..20b3b851d1 100644 --- a/lib/src/line_number_cache.dart +++ b/lib/src/line_number_cache.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + library dartdoc.cache; import 'dart:collection'; diff --git a/lib/src/markdown_processor.dart b/lib/src/markdown_processor.dart index 833a5400a0..3101d8c982 100644 --- a/lib/src/markdown_processor.dart +++ b/lib/src/markdown_processor.dart @@ -1,5 +1,4 @@ // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file - // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. diff --git a/test/model_test.dart b/test/model_test.dart index 57164ba83d..a14d21baec 100644 --- a/test/model_test.dart +++ b/test/model_test.dart @@ -11,8 +11,8 @@ import 'package:dartdoc/dartdoc.dart'; import 'package:dartdoc/src/model.dart'; import 'package:dartdoc/src/model_utils.dart'; import 'package:dartdoc/src/package_meta.dart'; -import 'package:test/test.dart'; import 'package:path/path.dart' as p; +import 'package:test/test.dart'; import 'src/utils.dart' as utils; diff --git a/tool/grind.dart b/tool/grind.dart index c025523fb2..db30585aca 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -1,6 +1,6 @@ -// Copyright (c) 2015, Google Inc. Please see the AUTHORS file for details. -// All rights reserved. Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file +// for details. 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' show Future; import 'dart:io' hide ProcessException; diff --git a/tool/travis.sh b/tool/travis.sh index ae4d3c248a..35cb7d65c8 100755 --- a/tool/travis.sh +++ b/tool/travis.sh @@ -1,8 +1,8 @@ #!/bin/bash -# Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details. -# All rights reserved. Use of this source code is governed by a BSD-style -# license that can be found in the LICENSE file. +# Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file +# for details. All rights reserved. Use of this source code is governed by a +# BSD-style license that can be found in the LICENSE file. # Fast fail the script on failures. set -e @@ -16,7 +16,7 @@ export PATH="$PATH":"~/.pub-cache/bin" if [ "$GEN_SDK_DOCS" = "true" ] then - # Build the SDK docs + # Build the SDK docs # silence stdout but echo stderr echo "" echo "Building and validating SDK docs..."