| 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 library codegenInttestMethods; | 8 library codegenInttestMethods; |
| 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 'codegen_dart.dart'; | 16 import 'codegen_dart.dart'; |
| 16 import 'from_html.dart'; | 17 import 'from_html.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/integration_test_methods.dart', (String pkgPath) { | 21 'test/integration/integration_test_methods.dart', (String pkgPath) { |
| 21 CodegenInttestMethodsVisitor visitor = | 22 CodegenInttestMethodsVisitor visitor = |
| 22 new CodegenInttestMethodsVisitor(readApi(pkgPath)); | 23 new CodegenInttestMethodsVisitor(readApi(pkgPath)); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 writeln('ResponseDecoder decoder = new ResponseDecoder($kind);'); | 256 writeln('ResponseDecoder decoder = new ResponseDecoder($kind);'); |
| 256 writeln("return new $resultClass.fromJson(decoder, 'result', result);"); | 257 writeln("return new $resultClass.fromJson(decoder, 'result', result);"); |
| 257 } else { | 258 } else { |
| 258 writeln('outOfTestExpect(result, isNull);'); | 259 writeln('outOfTestExpect(result, isNull);'); |
| 259 writeln('return null;'); | 260 writeln('return null;'); |
| 260 } | 261 } |
| 261 }); | 262 }); |
| 262 writeln('}'); | 263 writeln('}'); |
| 263 } | 264 } |
| 264 } | 265 } |
| OLD | NEW |