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

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

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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 for enumerating the set of types implied by the API. 6 * Code for enumerating the set of types implied by the API.
7 */ 7 */
8 library html.tools;
9
10 import 'package:analyzer/src/codegen/tools.dart'; 8 import 'package:analyzer/src/codegen/tools.dart';
11 9
12 import 'api.dart'; 10 import 'api.dart';
13 11
14 Map<String, ImpliedType> computeImpliedTypes(Api api) { 12 Map<String, ImpliedType> computeImpliedTypes(Api api) {
15 _ImpliedTypesVisitor visitor = new _ImpliedTypesVisitor(api); 13 _ImpliedTypesVisitor visitor = new _ImpliedTypesVisitor(api);
16 visitor.visitApi(); 14 visitor.visitApi();
17 return visitor.impliedTypes; 15 return visitor.impliedTypes;
18 } 16 }
19 17
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 storeType( 80 storeType(
83 request.longMethod, 'result', request.result, 'requestResult', request); 81 request.longMethod, 'result', request.result, 'requestResult', request);
84 } 82 }
85 83
86 @override 84 @override
87 visitTypeDefinition(TypeDefinition typeDefinition) { 85 visitTypeDefinition(TypeDefinition typeDefinition) {
88 storeType(typeDefinition.name, null, typeDefinition.type, 'typeDefinition', 86 storeType(typeDefinition.name, null, typeDefinition.type, 'typeDefinition',
89 typeDefinition); 87 typeDefinition);
90 } 88 }
91 } 89 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/tool/spec/generate_files ('k') | pkg/analyzer_plugin/lib/protocol/protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698