| 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 library analyzer.src.dart.element.element; | 5 library analyzer.src.dart.element.element; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 5009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5020 _enclosingElement as CompilationUnitElementImpl; | 5020 _enclosingElement as CompilationUnitElementImpl; |
| 5021 | 5021 |
| 5022 @override | 5022 @override |
| 5023 List<kernel.TypeParameter> get kernelTypeParams => _kernel?.typeParameters; | 5023 List<kernel.TypeParameter> get kernelTypeParams => _kernel?.typeParameters; |
| 5024 | 5024 |
| 5025 @override | 5025 @override |
| 5026 ElementKind get kind => ElementKind.FUNCTION_TYPE_ALIAS; | 5026 ElementKind get kind => ElementKind.FUNCTION_TYPE_ALIAS; |
| 5027 | 5027 |
| 5028 @override | 5028 @override |
| 5029 List<ElementAnnotation> get metadata { | 5029 List<ElementAnnotation> get metadata { |
| 5030 if (_kernel != null) { |
| 5031 _metadata ??= enclosingUnit._kernelContext |
| 5032 .buildAnnotations(enclosingUnit, _kernel.annotations); |
| 5033 } |
| 5030 if (_unlinkedTypedef != null) { | 5034 if (_unlinkedTypedef != null) { |
| 5031 return _metadata ??= | 5035 return _metadata ??= |
| 5032 _buildAnnotations(enclosingUnit, _unlinkedTypedef.annotations); | 5036 _buildAnnotations(enclosingUnit, _unlinkedTypedef.annotations); |
| 5033 } | 5037 } |
| 5034 return super.metadata; | 5038 return super.metadata; |
| 5035 } | 5039 } |
| 5036 | 5040 |
| 5037 @override | 5041 @override |
| 5038 String get name { | 5042 String get name { |
| 5039 if (_kernel != null) { | 5043 if (_kernel != null) { |
| (...skipping 4701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9741 | 9745 |
| 9742 @override | 9746 @override |
| 9743 DartObject computeConstantValue() => null; | 9747 DartObject computeConstantValue() => null; |
| 9744 | 9748 |
| 9745 @override | 9749 @override |
| 9746 void visitChildren(ElementVisitor visitor) { | 9750 void visitChildren(ElementVisitor visitor) { |
| 9747 super.visitChildren(visitor); | 9751 super.visitChildren(visitor); |
| 9748 _initializer?.accept(visitor); | 9752 _initializer?.accept(visitor); |
| 9749 } | 9753 } |
| 9750 } | 9754 } |
| OLD | NEW |