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

Side by Side Diff: lib/src/asset/dart/utils.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 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 | « lib/src/asset/dart/transformer_isolate.dart ('k') | lib/src/barback.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 /// Functions go in this file as opposed to lib/src/utils.dart if they need to 5 /// Functions go in this file as opposed to lib/src/utils.dart if they need to
6 /// be accessible to the transformer-loading isolate. 6 /// be accessible to the transformer-loading isolate.
7 library pub.asset.utils;
8
9 import 'dart:async'; 7 import 'dart:async';
10 8
11 /// A regular expression to match the exception prefix that some exceptions' 9 /// A regular expression to match the exception prefix that some exceptions'
12 /// [Object.toString] values contain. 10 /// [Object.toString] values contain.
13 final _exceptionPrefix = new RegExp(r'^([A-Z][a-zA-Z]*)?(Exception|Error): '); 11 final _exceptionPrefix = new RegExp(r'^([A-Z][a-zA-Z]*)?(Exception|Error): ');
14 12
15 /// Get a string description of an exception. 13 /// Get a string description of an exception.
16 /// 14 ///
17 /// Many exceptions include the exception class name at the beginning of their 15 /// Many exceptions include the exception class name at the beginning of their
18 /// [toString], so we remove that if it exists. 16 /// [toString], so we remove that if it exists.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 subscription = callback().listen(controller.add, 75 subscription = callback().listen(controller.add,
78 onError: controller.addError, 76 onError: controller.addError,
79 onDone: controller.close); 77 onDone: controller.close);
80 }, 78 },
81 onCancel: () => subscription.cancel(), 79 onCancel: () => subscription.cancel(),
82 onPause: () => subscription.pause(), 80 onPause: () => subscription.pause(),
83 onResume: () => subscription.resume(), 81 onResume: () => subscription.resume(),
84 sync: true); 82 sync: true);
85 return controller.stream; 83 return controller.stream;
86 } 84 }
OLDNEW
« no previous file with comments | « lib/src/asset/dart/transformer_isolate.dart ('k') | lib/src/barback.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698