Skip to content

Commit 1dd1014

Browse files
committed
code review updates
1 parent 8c0aadb commit 1dd1014

File tree

16 files changed

+54
-81
lines changed

16 files changed

+54
-81
lines changed

e2e_example/lib/copy_builder.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.example.copy_builder;
5-
64
import 'dart:async';
75

86
import 'package:build/build.dart';
@@ -12,7 +10,7 @@ class CopyBuilder extends Builder {
1210
@override
1311
Future build(BuildStep buildStep) async {
1412
var input = buildStep.input;
15-
var copy = new Asset(_copiedAssetId(input.id), input.contents);
13+
var copy = new Asset(_copiedAssetId(input.id), input.stringContents);
1614
await buildStep.writeAsString(copy);
1715
}
1816

e2e_example/lib/transformer.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.example.generate;
5-
64
import 'package:build/build.dart';
75

86
import 'copy_builder.dart';

e2e_example/tool/build.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.example.generate;
5-
64
import 'package:build/build.dart';
75

86
import 'package:e2e_example/copy_builder.dart';

lib/build.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build;
5-
64
export 'src/asset/asset.dart';
75
export 'src/asset/id.dart';
86
export 'src/builder/build_step.dart';

lib/src/asset/asset.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.src.asset.asset;
5-
64
import 'id.dart';
75

86
/// A fully realized asset whose content is available synchronously.
@@ -11,9 +9,9 @@ class Asset {
119
final AssetId id;
1210

1311
/// The content for this asset.
14-
final String contents;
12+
final String stringContents;
1513

16-
Asset(this.id, this.contents);
14+
Asset(this.id, this.stringContents);
1715

1816
String toString() => 'Asset: $id';
1917
}

lib/src/asset/id.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.src.asset.id;
5-
64
import 'package:path/path.dart' as pathos;
75

86
/// Forked from the `barback` package.

lib/src/asset/reader.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.src.asset.reader;
5-
64
import 'dart:async';
75
import 'dart:convert';
86

lib/src/asset/writer.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.src.asset.writer;
5-
64
import 'dart:async';
75
import 'dart:convert';
86

lib/src/builder/build_step.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.src.builder.build_step;
5-
64
import 'dart:async';
75
import 'dart:collection';
86
import 'dart:convert';

lib/src/builder/builder.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
library build.src.builder.builder;
5-
64
import 'dart:async';
75

86
import '../asset/id.dart';

0 commit comments

Comments
 (0)