OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 input.transformer.log_file; | |
6 | |
7 import 'dart:convert'; | 5 import 'dart:convert'; |
8 | 6 |
9 import 'package:analyzer/exception/exception.dart'; | 7 import 'package:analyzer/exception/exception.dart'; |
10 import 'package:logging/logging.dart'; | 8 import 'package:logging/logging.dart'; |
11 | 9 |
12 import 'input_converter.dart'; | 10 import 'input_converter.dart'; |
13 import 'operation.dart'; | 11 import 'operation.dart'; |
14 | 12 |
15 const CONNECTED_MSG_FRAGMENT = ' <= {"event":"server.connected"'; | 13 const CONNECTED_MSG_FRAGMENT = ' <= {"event":"server.connected"'; |
16 const RECEIVED_FRAGMENT = ' <= {'; | 14 const RECEIVED_FRAGMENT = ' <= {'; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 while (index < line.length) { | 73 while (index < line.length) { |
76 int code = line.codeUnitAt(index); | 74 int code = line.codeUnitAt(index); |
77 if (code < ZERO || NINE < code) { | 75 if (code < ZERO || NINE < code) { |
78 return line.substring(0, index); | 76 return line.substring(0, index); |
79 } | 77 } |
80 ++index; | 78 ++index; |
81 } | 79 } |
82 return line; | 80 return line; |
83 } | 81 } |
84 } | 82 } |
OLD | NEW |