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

Side by Side Diff: pkg/analysis_server/tool/instrumentation/log/log.dart

Issue 2884233004: Remove some more library directives (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /** 5 /**
6 * A representation of the contents of an instrumentation log. 6 * A representation of the contents of an instrumentation log.
7 */ 7 */
8 library analysis_server.tool.instrumentation.log.log;
9
10 import 'dart:convert'; 8 import 'dart:convert';
11 import 'dart:math' as math; 9 import 'dart:math' as math;
12 10
13 import 'package:analyzer/instrumentation/instrumentation.dart'; 11 import 'package:analyzer/instrumentation/instrumentation.dart';
14 12
15 /** 13 /**
16 * A boolean-valued function of one argument. 14 * A boolean-valued function of one argument.
17 */ 15 */
18 typedef bool Predicate<T>(T value); 16 typedef bool Predicate<T>(T value);
19 17
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 int slash = context.lastIndexOf('/'); 928 int slash = context.lastIndexOf('/');
931 if (slash < 0) { 929 if (slash < 0) {
932 slash = context.lastIndexOf('\\'); 930 slash = context.lastIndexOf('\\');
933 } 931 }
934 if (slash >= 0) { 932 if (slash >= 0) {
935 String prefix = context.substring(0, slash); 933 String prefix = context.substring(0, slash);
936 _target = _target.replaceAll(prefix, '...'); 934 _target = _target.replaceAll(prefix, '...');
937 } 935 }
938 } 936 }
939 } 937 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/stress/replay/operation.dart ('k') | pkg/analysis_server/tool/spec/check_all_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698