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 import 'dart:convert'; | 8 import 'dart:convert'; |
9 | 9 |
10 import 'package:analyzer/src/codegen/tools.dart'; | 10 import 'package:analyzer/src/codegen/tools.dart'; |
11 import 'package:front_end/src/codegen/tools.dart'; | |
12 | 11 |
13 import 'api.dart'; | 12 import 'api.dart'; |
14 import 'from_html.dart'; | 13 import 'from_html.dart'; |
15 import 'implied_types.dart'; | 14 import 'implied_types.dart'; |
16 import 'to_html.dart'; | 15 import 'to_html.dart'; |
17 | 16 |
18 final GeneratedFile target = new GeneratedFile( | 17 final GeneratedFile target = new GeneratedFile( |
19 'test/integration/support/protocol_matchers.dart', (String pkgPath) { | 18 'test/integration/support/protocol_matchers.dart', (String pkgPath) { |
20 CodegenMatchersVisitor visitor = new CodegenMatchersVisitor(readApi(pkgPath)); | 19 CodegenMatchersVisitor visitor = new CodegenMatchersVisitor(readApi(pkgPath)); |
21 return visitor.collectCode(visitor.visitApi); | 20 return visitor.collectCode(visitor.visitApi); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 for (TypeDecl choice in typeUnion.choices) { | 181 for (TypeDecl choice in typeUnion.choices) { |
183 if (commaNeeded) { | 182 if (commaNeeded) { |
184 write(', '); | 183 write(', '); |
185 } | 184 } |
186 visitTypeDecl(choice); | 185 visitTypeDecl(choice); |
187 commaNeeded = true; | 186 commaNeeded = true; |
188 } | 187 } |
189 write('])'); | 188 write('])'); |
190 } | 189 } |
191 } | 190 } |
OLD | NEW |