| 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 /// Convertion of elements between the analyzer element model and the dart2js | 5 /// Convertion of elements between the analyzer element model and the dart2js |
| 6 /// element model. | 6 /// element model. |
| 7 | 7 |
| 8 library analyzer2dart.element_converter; | 8 library analyzer2dart.element_converter; |
| 9 | 9 |
| 10 import 'package:compiler/implementation/elements/elements.dart' as dart2js; | 10 import 'package:compiler/implementation/elements/elements.dart' as dart2js; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 dart2js.ClassElement visitClassElement(analyzer.ClassElement input) { | 126 dart2js.ClassElement visitClassElement(analyzer.ClassElement input) { |
| 127 return new ClassElementY(converter, input); | 127 return new ClassElementY(converter, input); |
| 128 } | 128 } |
| 129 | 129 |
| 130 @override | 130 @override |
| 131 dart2js.TypedefElement visitFunctionTypeAliasElement( | 131 dart2js.TypedefElement visitFunctionTypeAliasElement( |
| 132 analyzer.FunctionTypeAliasElement input) { | 132 analyzer.FunctionTypeAliasElement input) { |
| 133 return new TypedefElementY(converter, input); | 133 return new TypedefElementY(converter, input); |
| 134 } | 134 } |
| 135 | 135 |
| 136 @override |
| 137 dart2js.FieldElement visitTopLevelVariableElement( |
| 138 analyzer.TopLevelVariableElement input) { |
| 139 return new TopLevelVariableElementY(converter, input); |
| 140 } |
| 141 |
| 142 @override |
| 143 dart2js.Element visitPropertyAccessorElement( |
| 144 analyzer.PropertyAccessorElement input) { |
| 145 if (input.isSynthetic) { |
| 146 return input.variable.accept(this); |
| 147 } |
| 148 return null; |
| 149 } |
| 136 } | 150 } |
| OLD | NEW |