Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
remove all library keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleak committed Feb 12, 2016
1 parent c42e3e9 commit 3aec99d
Show file tree
Hide file tree
Showing 25 changed files with 1 addition and 46 deletions.
2 changes: 0 additions & 2 deletions bin/stagehand.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions lib/generators/console_full.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/console_simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/package_simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/server_appengine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/server_shelf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/web_angular.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/web_polymer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/web_simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/src/cli_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion lib/src/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/**
* Some utility methods for stagehand.
*/
library stagehand.utils;

import 'dart:convert' show UTF8;

Expand Down
1 change: 0 additions & 1 deletion lib/stagehand.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 0 additions & 1 deletion templates/console-full/lib/__projectName__.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions templates/console-full/test/__projectName___test.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
1 change: 0 additions & 1 deletion templates/package-simple/lib/__projectName__.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 0 additions & 2 deletions templates/package-simple/lib/src/__projectName___base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions templates/package-simple/test/__projectName___test.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
4 changes: 1 addition & 3 deletions templates/server-appengine/lib/memcache.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -45,7 +43,7 @@ Future write(Map<String, String> valueMap, StringSink buffer) async {
}

/// Helper method to read a set of values from the memcache.
Future read(Iterable<String> keys, StringSink buffer ) async {
Future read(Iterable<String> keys, StringSink buffer) async {
var memcache = context.services.memcache;

for (var key in keys) {
Expand Down
2 changes: 0 additions & 2 deletions templates/web-polymer/lib/main_app.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 0 additions & 1 deletion templates/web-polymer/web/index.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 0 additions & 2 deletions test/cli_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions test/common_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 0 additions & 2 deletions test/generators_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 0 additions & 2 deletions test/mock_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 0 additions & 2 deletions test/validate_templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3aec99d

Please sign in to comment.