| 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 3951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3962 return _kernel.name.name; | 3962 return _kernel.name.name; |
| 3963 } | 3963 } |
| 3964 if (serializedExecutable != null) { | 3964 if (serializedExecutable != null) { |
| 3965 return serializedExecutable.name; | 3965 return serializedExecutable.name; |
| 3966 } | 3966 } |
| 3967 return super.displayName; | 3967 return super.displayName; |
| 3968 } | 3968 } |
| 3969 | 3969 |
| 3970 @override | 3970 @override |
| 3971 String get documentationComment { | 3971 String get documentationComment { |
| 3972 if (_kernel != null) { |
| 3973 return _kernel.documentationComment; |
| 3974 } |
| 3972 if (serializedExecutable != null) { | 3975 if (serializedExecutable != null) { |
| 3973 return serializedExecutable?.documentationComment?.text; | 3976 return serializedExecutable?.documentationComment?.text; |
| 3974 } | 3977 } |
| 3975 return super.documentationComment; | 3978 return super.documentationComment; |
| 3976 } | 3979 } |
| 3977 | 3980 |
| 3978 /** | 3981 /** |
| 3979 * Set whether this executable element is external. | 3982 * Set whether this executable element is external. |
| 3980 */ | 3983 */ |
| 3981 void set external(bool isExternal) { | 3984 void set external(bool isExternal) { |
| (...skipping 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7563 @override | 7566 @override |
| 7564 int get codeOffset { | 7567 int get codeOffset { |
| 7565 if (_unlinkedVariable != null) { | 7568 if (_unlinkedVariable != null) { |
| 7566 return _unlinkedVariable.codeRange?.offset; | 7569 return _unlinkedVariable.codeRange?.offset; |
| 7567 } | 7570 } |
| 7568 return super.codeOffset; | 7571 return super.codeOffset; |
| 7569 } | 7572 } |
| 7570 | 7573 |
| 7571 @override | 7574 @override |
| 7572 String get documentationComment { | 7575 String get documentationComment { |
| 7576 if (_kernel != null) { |
| 7577 return _kernel.documentationComment; |
| 7578 } |
| 7573 if (_unlinkedVariable != null) { | 7579 if (_unlinkedVariable != null) { |
| 7574 return _unlinkedVariable?.documentationComment?.text; | 7580 return _unlinkedVariable?.documentationComment?.text; |
| 7575 } | 7581 } |
| 7576 return super.documentationComment; | 7582 return super.documentationComment; |
| 7577 } | 7583 } |
| 7578 | 7584 |
| 7579 @override | 7585 @override |
| 7580 bool get hasImplicitType { | 7586 bool get hasImplicitType { |
| 7581 if (_unlinkedVariable != null) { | 7587 if (_unlinkedVariable != null) { |
| 7582 return _unlinkedVariable.type == null; | 7588 return _unlinkedVariable.type == null; |
| (...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9701 | 9707 |
| 9702 @override | 9708 @override |
| 9703 DartObject computeConstantValue() => null; | 9709 DartObject computeConstantValue() => null; |
| 9704 | 9710 |
| 9705 @override | 9711 @override |
| 9706 void visitChildren(ElementVisitor visitor) { | 9712 void visitChildren(ElementVisitor visitor) { |
| 9707 super.visitChildren(visitor); | 9713 super.visitChildren(visitor); |
| 9708 _initializer?.accept(visitor); | 9714 _initializer?.accept(visitor); |
| 9709 } | 9715 } |
| 9710 } | 9716 } |
| OLD | NEW |