Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Side by Side Diff: pkg/analysis_server/tool/spec/codegen_inttest_methods.dart

Issue 2742333005: Move some of analyzer's code generation utilities into front_end. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_dart_protocol.dart ('k') | pkg/analysis_server/tool/spec/codegen_java.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698