From 3aec99d37e029615e3f1a2becd7d1a48737ca897 Mon Sep 17 00:00:00 2001 From: Kleak Date: Fri, 12 Feb 2016 19:01:48 +0100 Subject: [PATCH] remove all library keyword --- bin/stagehand.dart | 2 -- lib/generators/console_full.dart | 2 -- lib/generators/console_simple.dart | 2 -- lib/generators/package_simple.dart | 2 -- lib/generators/server_appengine.dart | 2 -- lib/generators/server_shelf.dart | 2 -- lib/generators/web_angular.dart | 2 -- lib/generators/web_polymer.dart | 2 -- lib/generators/web_simple.dart | 2 -- lib/src/cli_app.dart | 2 -- lib/src/common.dart | 1 - lib/stagehand.dart | 1 - templates/console-full/lib/__projectName__.dart | 1 - templates/console-full/test/__projectName___test.dart | 2 -- templates/package-simple/lib/__projectName__.dart | 1 - templates/package-simple/lib/src/__projectName___base.dart | 2 -- templates/package-simple/test/__projectName___test.dart | 2 -- templates/server-appengine/lib/memcache.dart | 4 +--- templates/web-polymer/lib/main_app.dart | 2 -- templates/web-polymer/web/index.dart | 1 - test/cli_test.dart | 2 -- test/common_test.dart | 2 -- test/generators_test.dart | 2 -- test/mock_test.dart | 2 -- test/validate_templates.dart | 2 -- 25 files changed, 1 insertion(+), 46 deletions(-) diff --git a/bin/stagehand.dart b/bin/stagehand.dart index 9ad7b984..33b7a7f8 100644 --- a/bin/stagehand.dart +++ b/bin/stagehand.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.cli; - import 'dart:async'; import 'dart:io' as io; diff --git a/lib/generators/console_full.dart b/lib/generators/console_full.dart index 645205ac..2c89fb58 100644 --- a/lib/generators/console_full.dart +++ b/lib/generators/console_full.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.console.full; - import '../stagehand.dart'; import '../src/common.dart'; import 'console_full_data.dart'; diff --git a/lib/generators/console_simple.dart b/lib/generators/console_simple.dart index 91393275..2b7df279 100644 --- a/lib/generators/console_simple.dart +++ b/lib/generators/console_simple.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.console.simple; - import '../stagehand.dart'; import '../src/common.dart'; import 'console_simple_data.dart'; diff --git a/lib/generators/package_simple.dart b/lib/generators/package_simple.dart index 17c2aa41..af05de88 100644 --- a/lib/generators/package_simple.dart +++ b/lib/generators/package_simple.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.package.simple; - import '../stagehand.dart'; import '../src/common.dart'; import 'package_simple_data.dart'; diff --git a/lib/generators/server_appengine.dart b/lib/generators/server_appengine.dart index bca95b0c..6614f3c9 100644 --- a/lib/generators/server_appengine.dart +++ b/lib/generators/server_appengine.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.server.appengine; - import 'server_appengine_data.dart'; import '../stagehand.dart'; import '../src/common.dart'; diff --git a/lib/generators/server_shelf.dart b/lib/generators/server_shelf.dart index 9067fca9..6102d9bb 100644 --- a/lib/generators/server_shelf.dart +++ b/lib/generators/server_shelf.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.server.shelf; - import '../stagehand.dart'; import '../src/common.dart'; import 'server_shelf_data.dart'; diff --git a/lib/generators/web_angular.dart b/lib/generators/web_angular.dart index 65c4233d..dc381c36 100644 --- a/lib/generators/web_angular.dart +++ b/lib/generators/web_angular.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.web.angular; - import '../stagehand.dart'; import '../src/common.dart'; import 'web_angular_data.dart'; diff --git a/lib/generators/web_polymer.dart b/lib/generators/web_polymer.dart index 71fe721c..74bfb691 100644 --- a/lib/generators/web_polymer.dart +++ b/lib/generators/web_polymer.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.web.polymer; - import '../stagehand.dart'; import '../src/common.dart'; import 'web_polymer_data.dart'; diff --git a/lib/generators/web_simple.dart b/lib/generators/web_simple.dart index 45166478..2d5db18b 100644 --- a/lib/generators/web_simple.dart +++ b/lib/generators/web_simple.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.web.simple; - import '../stagehand.dart'; import '../src/common.dart'; import 'web_simple_data.dart'; diff --git a/lib/src/cli_app.dart b/lib/src/cli_app.dart index 868ebda2..2cd956e5 100644 --- a/lib/src/cli_app.dart +++ b/lib/src/cli_app.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.cli_app; - import 'dart:async'; import 'dart:convert' show JSON; import 'dart:io' as io; diff --git a/lib/src/common.dart b/lib/src/common.dart index ef2f9f05..a031784c 100644 --- a/lib/src/common.dart +++ b/lib/src/common.dart @@ -5,7 +5,6 @@ /** * Some utility methods for stagehand. */ -library stagehand.utils; import 'dart:convert' show UTF8; diff --git a/lib/stagehand.dart b/lib/stagehand.dart index 3d05a789..c89105e0 100644 --- a/lib/stagehand.dart +++ b/lib/stagehand.dart @@ -21,7 +21,6 @@ * * to create a new instance of the `webapp` template in a `foobar` directory. */ -library stagehand; import 'dart:async'; import 'dart:convert'; diff --git a/templates/console-full/lib/__projectName__.dart b/templates/console-full/lib/__projectName__.dart index a9715f99..8c5efa47 100644 --- a/templates/console-full/lib/__projectName__.dart +++ b/templates/console-full/lib/__projectName__.dart @@ -2,7 +2,6 @@ // is governed by a BSD-style license that can be found in the LICENSE file. /// The __projectName__ library. -library __projectName__; int calculate() { return 6 * 7; diff --git a/templates/console-full/test/__projectName___test.dart b/templates/console-full/test/__projectName___test.dart index 6aaa4ab4..8f62516d 100644 --- a/templates/console-full/test/__projectName___test.dart +++ b/templates/console-full/test/__projectName___test.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library __projectName__.test; - import 'package:__projectName__/__projectName__.dart'; import 'package:test/test.dart'; diff --git a/templates/package-simple/lib/__projectName__.dart b/templates/package-simple/lib/__projectName__.dart index 9a1492e7..3297ab64 100644 --- a/templates/package-simple/lib/__projectName__.dart +++ b/templates/package-simple/lib/__projectName__.dart @@ -4,7 +4,6 @@ /// The __projectName__ library. /// /// This is an awesome library. More dartdocs go here. -library __projectName__; // TODO: Export any libraries intended for clients of this package. diff --git a/templates/package-simple/lib/src/__projectName___base.dart b/templates/package-simple/lib/src/__projectName___base.dart index e7477307..4a10f7b6 100644 --- a/templates/package-simple/lib/src/__projectName___base.dart +++ b/templates/package-simple/lib/src/__projectName___base.dart @@ -3,8 +3,6 @@ // TODO: Put public facing types in this file. -library __projectName__.base; - /// Checks if you are awesome. Spoiler: you are. class Awesome { bool get isAwesome => true; diff --git a/templates/package-simple/test/__projectName___test.dart b/templates/package-simple/test/__projectName___test.dart index 5563f7d3..4ca0ca46 100644 --- a/templates/package-simple/test/__projectName___test.dart +++ b/templates/package-simple/test/__projectName___test.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library __projectName__.test; - import 'package:__projectName__/__projectName__.dart'; import 'package:test/test.dart'; diff --git a/templates/server-appengine/lib/memcache.dart b/templates/server-appengine/lib/memcache.dart index fd0a0ea3..23e44280 100644 --- a/templates/server-appengine/lib/memcache.dart +++ b/templates/server-appengine/lib/memcache.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library __projectName__.memcache; - import 'dart:async'; import 'package:appengine/appengine.dart'; @@ -45,7 +43,7 @@ Future write(Map valueMap, StringSink buffer) async { } /// Helper method to read a set of values from the memcache. -Future read(Iterable keys, StringSink buffer ) async { +Future read(Iterable keys, StringSink buffer) async { var memcache = context.services.memcache; for (var key in keys) { diff --git a/templates/web-polymer/lib/main_app.dart b/templates/web-polymer/lib/main_app.dart index f2be3a6e..270a938c 100644 --- a/templates/web-polymer/lib/main_app.dart +++ b/templates/web-polymer/lib/main_app.dart @@ -1,8 +1,6 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. @HtmlImport('main_app.html') -library __projectName__.lib.main_app; - import 'dart:html'; import 'package:polymer_elements/paper_input.dart'; diff --git a/templates/web-polymer/web/index.dart b/templates/web-polymer/web/index.dart index 90c36fa4..ce2c7efb 100644 --- a/templates/web-polymer/web/index.dart +++ b/templates/web-polymer/web/index.dart @@ -1,6 +1,5 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -library my_project.web.index; import 'package:__projectName__/main_app.dart'; import 'package:polymer/polymer.dart'; diff --git a/test/cli_test.dart b/test/cli_test.dart index 5e437f16..24d0b4a9 100644 --- a/test/cli_test.dart +++ b/test/cli_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @TestOn('vm') -library stagehand.cli_test; - import 'dart:async'; import 'dart:convert' show JSON; import 'dart:io'; diff --git a/test/common_test.dart b/test/common_test.dart index 682389b0..162fd727 100644 --- a/test/common_test.dart +++ b/test/common_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.common_test; - import 'package:stagehand/src/common.dart'; import 'package:test/test.dart'; diff --git a/test/generators_test.dart b/test/generators_test.dart index b9dcaaf4..92a0bc77 100644 --- a/test/generators_test.dart +++ b/test/generators_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.generators_test; - import 'package:stagehand/stagehand.dart'; import 'package:test/test.dart'; diff --git a/test/mock_test.dart b/test/mock_test.dart index 579b2b83..2771812f 100644 --- a/test/mock_test.dart +++ b/test/mock_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -library stagehand.mock_test; - import 'dart:async'; import 'dart:convert'; diff --git a/test/validate_templates.dart b/test/validate_templates.dart index 6f39f90c..4a2bba45 100644 --- a/test/validate_templates.dart +++ b/test/validate_templates.dart @@ -5,8 +5,6 @@ // This is explicitly not named with _test.dart extension so it is not run as // part of the normal test process @TestOn('vm') -library stagehand.test.validate_templates; - import 'dart:io'; import 'package:grinder/grinder.dart' hide fail;