| 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 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 Loading... |
| 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 } |
| OLD | NEW |