OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 * Code generation for the file "matchers.dart". | 6 * Code generation for the file "matchers.dart". |
7 */ | 7 */ |
8 library codegen.matchers; | 8 library codegen.matchers; |
9 | 9 |
10 import 'dart:convert'; | 10 import 'dart:convert'; |
11 | 11 |
12 import 'package:analyzer/src/codegen/tools.dart'; | 12 import 'package:analyzer/src/codegen/tools.dart'; |
| 13 import 'package:front_end/src/codegen/tools.dart'; |
13 | 14 |
14 import 'api.dart'; | 15 import 'api.dart'; |
15 import 'from_html.dart'; | 16 import 'from_html.dart'; |
16 import 'implied_types.dart'; | 17 import 'implied_types.dart'; |
17 import 'to_html.dart'; | 18 import 'to_html.dart'; |
18 | 19 |
19 final GeneratedFile target = new GeneratedFile( | 20 final GeneratedFile target = new GeneratedFile( |
20 'test/integration/protocol_matchers.dart', (String pkgPath) { | 21 'test/integration/protocol_matchers.dart', (String pkgPath) { |
21 CodegenMatchersVisitor visitor = new CodegenMatchersVisitor(readApi(pkgPath)); | 22 CodegenMatchersVisitor visitor = new CodegenMatchersVisitor(readApi(pkgPath)); |
22 return visitor.collectCode(visitor.visitApi); | 23 return visitor.collectCode(visitor.visitApi); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 for (TypeDecl choice in typeUnion.choices) { | 184 for (TypeDecl choice in typeUnion.choices) { |
184 if (commaNeeded) { | 185 if (commaNeeded) { |
185 write(', '); | 186 write(', '); |
186 } | 187 } |
187 visitTypeDecl(choice); | 188 visitTypeDecl(choice); |
188 commaNeeded = true; | 189 commaNeeded = true; |
189 } | 190 } |
190 write('])'); | 191 write('])'); |
191 } | 192 } |
192 } | 193 } |
OLD | NEW |