Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(793)

Side by Side Diff: packages/smoke/lib/src/default_transformer.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « packages/smoke/lib/src/common.dart ('k') | packages/smoke/lib/src/implementation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Transformer that replaces the default mirror-based implementation of smoke, 5 /// Transformer that replaces the default mirror-based implementation of smoke,
6 /// so that during deploy smoke doesn't include any dependency on dart:mirrors. 6 /// so that during deploy smoke doesn't include any dependency on dart:mirrors.
7 library smoke.src.default_transformer; 7 library smoke.src.default_transformer;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'package:barback/barback.dart'; 10 import 'package:barback/barback.dart';
(...skipping 23 matching lines...) Expand all
34 .replaceAll( 34 .replaceAll(
35 new RegExp('new Reflective[^;]*;'), 'throwNotConfiguredError();') 35 new RegExp('new Reflective[^;]*;'), 'throwNotConfiguredError();')
36 .replaceAll("import 'package:smoke/mirrors.dart';", ''))); 36 .replaceAll("import 'package:smoke/mirrors.dart';", '')));
37 }); 37 });
38 } 38 }
39 } 39 }
40 40
41 /** Transformer phases which should be applied to the smoke package. */ 41 /** Transformer phases which should be applied to the smoke package. */
42 List<List<Transformer>> get phasesForSmoke => 42 List<List<Transformer>> get phasesForSmoke =>
43 [[new DefaultTransformer.asPlugin()]]; 43 [[new DefaultTransformer.asPlugin()]];
OLDNEW
« no previous file with comments | « packages/smoke/lib/src/common.dart ('k') | packages/smoke/lib/src/implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698