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 part of analyzer2dart.element_converter; | 5 part of analyzer2dart.element_converter; |
6 | 6 |
7 | 7 |
8 /// Base [dart2js.Element] implementation for converted analyzer elements. | 8 /// Base [dart2js.Element] implementation for converted analyzer elements. |
9 class ElementY extends dart2js.Element { | 9 class ElementY extends dart2js.Element { |
10 final ElementConverter converter; | 10 final ElementConverter converter; |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 bool get isStatic { | 333 bool get isStatic { |
334 // Semantic difference: Analyzer considers top-level and static class | 334 // Semantic difference: Analyzer considers top-level and static class |
335 // members to be static, dart2js only considers static class members to be | 335 // members to be static, dart2js only considers static class members to be |
336 // static. | 336 // static. |
337 return false; | 337 return false; |
338 } | 338 } |
339 | 339 |
340 // TODO(johnniwinther): Ensure the correct semantics of this. | 340 // TODO(johnniwinther): Ensure the correct semantics of this. |
341 @override | 341 @override |
342 bool get isAbstract => false; | 342 bool get isAbstract => false; |
| 343 |
| 344 @override |
| 345 dart2js.ClassElement get enclosingClass => null; |
343 } | 346 } |
344 | 347 |
345 abstract class FunctionElementMixin | 348 abstract class FunctionElementMixin |
346 implements ElementY, dart2js.FunctionElement { | 349 implements ElementY, dart2js.FunctionElement { |
347 | 350 |
348 // TODO(johnniwinther): Ensure the correct semantics of this. | 351 // TODO(johnniwinther): Ensure the correct semantics of this. |
349 @override | 352 @override |
350 bool get isExternal => false; | 353 bool get isExternal => false; |
351 | 354 |
352 @override | 355 @override |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 793 |
791 @override | 794 @override |
792 bool get isRedirectingFactory => unsupported('isRedirectingFactory'); | 795 bool get isRedirectingFactory => unsupported('isRedirectingFactory'); |
793 | 796 |
794 @override | 797 @override |
795 get nestedClosures => unsupported('nestedClosures'); | 798 get nestedClosures => unsupported('nestedClosures'); |
796 | 799 |
797 @override | 800 @override |
798 get type => unsupported('type'); | 801 get type => unsupported('type'); |
799 } | 802 } |
OLD | NEW |