| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.element_handle; | 8 library engine.element_handle; |
| 9 | 9 |
| 10 import 'ast.dart'; | 10 import 'ast.dart'; |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 * Initialize a newly created element handle to represent the given element. | 603 * Initialize a newly created element handle to represent the given element. |
| 604 * | 604 * |
| 605 * @param element the element being represented | 605 * @param element the element being represented |
| 606 */ | 606 */ |
| 607 FunctionElementHandle(FunctionElement element) : super(element); | 607 FunctionElementHandle(FunctionElement element) : super(element); |
| 608 | 608 |
| 609 @override | 609 @override |
| 610 FunctionElement get actualElement => super.actualElement as FunctionElement; | 610 FunctionElement get actualElement => super.actualElement as FunctionElement; |
| 611 | 611 |
| 612 @override | 612 @override |
| 613 bool get isEntryPoint => actualElement.isEntryPoint; |
| 614 |
| 615 @override |
| 613 ElementKind get kind => ElementKind.FUNCTION; | 616 ElementKind get kind => ElementKind.FUNCTION; |
| 614 | 617 |
| 615 @override | 618 @override |
| 616 FunctionDeclaration get node => actualElement.node; | 619 FunctionDeclaration get node => actualElement.node; |
| 617 | 620 |
| 618 @override | 621 @override |
| 619 SourceRange get visibleRange => actualElement.visibleRange; | 622 SourceRange get visibleRange => actualElement.visibleRange; |
| 620 } | 623 } |
| 621 | 624 |
| 622 /** | 625 /** |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 DartType get type => actualElement.type; | 1074 DartType get type => actualElement.type; |
| 1072 } | 1075 } |
| 1073 /** | 1076 /** |
| 1074 * TODO(scheglov) invalid implementation | 1077 * TODO(scheglov) invalid implementation |
| 1075 */ | 1078 */ |
| 1076 class WeakReference<T> { | 1079 class WeakReference<T> { |
| 1077 final T value; | 1080 final T value; |
| 1078 WeakReference(this.value); | 1081 WeakReference(this.value); |
| 1079 T get() => value; | 1082 T get() => value; |
| 1080 } | 1083 } |
| OLD | NEW |