Skip to content

Commit 2958f64

Browse files
committed
78bfdf7 feat(dart/transform): DirectiveProcessor: do not process generated files
1 parent 5c21714 commit 2958f64

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

BUILD_INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Fri Jan 22 00:16:56 UTC 2016
2-
a24ee6add4e63db68e0faa8337811a7122b6fdb0
1+
Fri Jan 22 00:31:47 UTC 2016
2+
78bfdf78eafe540fec6e1855830b0d61b8397aca

lib/src/transform/common/names.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ const ALL_EXTENSIONS = const [
3939
bool isGenerated(String uri) {
4040
return const [
4141
DEPS_EXTENSION,
42+
META_EXTENSION,
4243
NON_SHIMMED_STYLESHEET_EXTENSION,
4344
SHIMMED_STYLESHEET_EXTENSION,
45+
SUMMARY_META_EXTENSION,
4446
TEMPLATE_EXTENSION,
4547
].any((ext) => uri.endsWith(ext));
4648
}

lib/src/transform/directive_processor/transformer.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class DirectiveProcessor extends Transformer implements LazyTransformer {
2828
DirectiveProcessor(this.options);
2929

3030
@override
31-
bool isPrimary(AssetId id) => id.extension.endsWith('dart');
31+
bool isPrimary(AssetId id) =>
32+
id.extension.endsWith('dart') && !isGenerated(id.path);
3233

3334
@override
3435
declareOutputs(DeclaringTransform transform) {

0 commit comments

Comments
 (0)