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

Side by Side Diff: sdk/lib/_internal/pub/test/command_line_config.dart

Issue 14297021: Move pub into sdk/lib/_internal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disallow package: imports of pub. Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library command_line_config; 5 library command_line_config;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:pathos/path.dart' as path; 10 import 'package:pathos/path.dart' as path;
11 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 import '../../pub/utils.dart'; 12 import '../lib/src/utils.dart';
13 13
14 /// Gets a "special" string (ANSI escape or Unicode). On Windows, returns 14 /// Gets a "special" string (ANSI escape or Unicode). On Windows, returns
15 /// something else since those aren't supported. 15 /// something else since those aren't supported.
16 String _getSpecial(String color, [String onWindows = '']) { 16 String _getSpecial(String color, [String onWindows = '']) {
17 // No ANSI escapes on windows. 17 // No ANSI escapes on windows.
18 if (Platform.operatingSystem == 'windows') return onWindows; 18 if (Platform.operatingSystem == 'windows') return onWindows;
19 return color; 19 return color;
20 } 20 }
21 21
22 /// Pretty Unicode characters! 22 /// Pretty Unicode characters!
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 var library = match[2]; 162 var library = match[2];
163 if (!isCore) { 163 if (!isCore) {
164 // Make the library path relative to the entrypoint. 164 // Make the library path relative to the entrypoint.
165 library = path.relative(library); 165 library = path.relative(library);
166 } 166 }
167 167
168 var member = match[1].replaceAll("<anonymous closure>", _lambda); 168 var member = match[1].replaceAll("<anonymous closure>", _lambda);
169 return new _StackFrame._(isCore, library, match[3], match[4], member); 169 return new _StackFrame._(isCore, library, match[3], match[4], member);
170 } 170 }
171 } 171 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/resource/certs/pkcs11.txt ('k') | sdk/lib/_internal/pub/test/descriptor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698