| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analyzer/src/codegen/tools.dart'; | 5 import 'package:analyzer/src/codegen/tools.dart'; |
| 6 import 'package:front_end/src/codegen/tools.dart'; |
| 6 | 7 |
| 7 import 'api.dart'; | 8 import 'api.dart'; |
| 8 import 'codegen_dart.dart'; | 9 import 'codegen_dart.dart'; |
| 9 import 'from_html.dart'; | 10 import 'from_html.dart'; |
| 10 | 11 |
| 11 final GeneratedFile target = | 12 final GeneratedFile target = |
| 12 new GeneratedFile('lib/protocol/protocol_constants.dart', (String pkgPath) { | 13 new GeneratedFile('lib/protocol/protocol_constants.dart', (String pkgPath) { |
| 13 CodegenVisitor visitor = new CodegenVisitor(readApi(pkgPath)); | 14 CodegenVisitor visitor = new CodegenVisitor(readApi(pkgPath)); |
| 14 return visitor.collectCode(visitor.visitApi); | 15 return visitor.collectCode(visitor.visitApi); |
| 15 }); | 16 }); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 int index = first.indexOf(regExp, start); | 153 int index = first.indexOf(regExp, start); |
| 153 while (index >= 0) { | 154 while (index >= 0) { |
| 154 components.add(first.substring(start - 1, index)); | 155 components.add(first.substring(start - 1, index)); |
| 155 start = index + 1; | 156 start = index + 1; |
| 156 index = first.indexOf(regExp, start); | 157 index = first.indexOf(regExp, start); |
| 157 } | 158 } |
| 158 components.add(first.substring(start - 1)); | 159 components.add(first.substring(start - 1)); |
| 159 return components; | 160 return components; |
| 160 } | 161 } |
| 161 } | 162 } |
| OLD | NEW |