| 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.instrumentation; | 5 library input.transformer.instrumentation; |
| 6 | 6 |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| 9 import 'package:analyzer/src/generated/java_engine.dart'; | 10 import 'package:analyzer/src/generated/java_engine.dart'; |
| 10 import 'package:analyzer/instrumentation/instrumentation.dart'; | |
| 11 import 'package:logging/logging.dart'; | 11 import 'package:logging/logging.dart'; |
| 12 | 12 |
| 13 import 'input_converter.dart'; | 13 import 'input_converter.dart'; |
| 14 import 'operation.dart'; | 14 import 'operation.dart'; |
| 15 | 15 |
| 16 final int COLON = ':'.codeUnitAt(0); | 16 final int COLON = ':'.codeUnitAt(0); |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * [InstrumentationInputConverter] converts an instrumentation stream | 19 * [InstrumentationInputConverter] converts an instrumentation stream |
| 20 * into a series of operations to be sent to the analysis server. | 20 * into a series of operations to be sent to the analysis server. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 sb.writeCharCode(code); | 139 sb.writeCharCode(code); |
| 140 } | 140 } |
| 141 ++index; | 141 ++index; |
| 142 } | 142 } |
| 143 if (sb.isNotEmpty) { | 143 if (sb.isNotEmpty) { |
| 144 fields.add(sb.toString()); | 144 fields.add(sb.toString()); |
| 145 } | 145 } |
| 146 return fields; | 146 return fields; |
| 147 } | 147 } |
| 148 } | 148 } |
| OLD | NEW |