OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |