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 "integration_test_methods.dart". | 6 * Code generation for the file "integration_test_methods.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 import 'package:path/path.dart' as path; | 11 import 'package:path/path.dart' as path; |
13 | 12 |
14 import 'api.dart'; | 13 import 'api.dart'; |
15 import 'codegen_dart.dart'; | 14 import 'codegen_dart.dart'; |
16 import 'from_html.dart'; | 15 import 'from_html.dart'; |
17 import 'to_html.dart'; | 16 import 'to_html.dart'; |
18 | 17 |
19 final GeneratedFile target = new GeneratedFile( | 18 final GeneratedFile target = new GeneratedFile( |
20 'test/integration/support/integration_test_methods.dart', (String pkgPath) { | 19 'test/integration/support/integration_test_methods.dart', (String pkgPath) { |
21 CodegenInttestMethodsVisitor visitor = new CodegenInttestMethodsVisitor( | 20 CodegenInttestMethodsVisitor visitor = new CodegenInttestMethodsVisitor( |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 writeln('ResponseDecoder decoder = new ResponseDecoder($kind);'); | 264 writeln('ResponseDecoder decoder = new ResponseDecoder($kind);'); |
266 writeln("return new $resultClass.fromJson(decoder, 'result', result);"); | 265 writeln("return new $resultClass.fromJson(decoder, 'result', result);"); |
267 } else { | 266 } else { |
268 writeln('outOfTestExpect(result, isNull);'); | 267 writeln('outOfTestExpect(result, isNull);'); |
269 writeln('return null;'); | 268 writeln('return null;'); |
270 } | 269 } |
271 }); | 270 }); |
272 writeln('}'); | 271 writeln('}'); |
273 } | 272 } |
274 } | 273 } |
OLD | NEW |