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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 _assertNotResynthesized(_unlinkedClass); | 580 _assertNotResynthesized(_unlinkedClass); |
581 assert(!isMixinApplication); | 581 assert(!isMixinApplication); |
582 for (ConstructorElement constructor in constructors) { | 582 for (ConstructorElement constructor in constructors) { |
583 (constructor as ConstructorElementImpl).enclosingElement = this; | 583 (constructor as ConstructorElementImpl).enclosingElement = this; |
584 } | 584 } |
585 this._constructors = constructors; | 585 this._constructors = constructors; |
586 } | 586 } |
587 | 587 |
588 @override | 588 @override |
589 String get documentationComment { | 589 String get documentationComment { |
| 590 if (_kernel != null) { |
| 591 return _kernel.documentationComment; |
| 592 } |
590 if (_unlinkedClass != null) { | 593 if (_unlinkedClass != null) { |
591 return _unlinkedClass?.documentationComment?.text; | 594 return _unlinkedClass?.documentationComment?.text; |
592 } | 595 } |
593 return super.documentationComment; | 596 return super.documentationComment; |
594 } | 597 } |
595 | 598 |
596 /** | 599 /** |
597 * Return `true` if [CompileTimeErrorCode.MIXIN_HAS_NO_CONSTRUCTORS] should | 600 * Return `true` if [CompileTimeErrorCode.MIXIN_HAS_NO_CONSTRUCTORS] should |
598 * be reported for this class. | 601 * be reported for this class. |
599 */ | 602 */ |
(...skipping 8400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9000 | 9003 |
9001 @override | 9004 @override |
9002 DartObject computeConstantValue() => null; | 9005 DartObject computeConstantValue() => null; |
9003 | 9006 |
9004 @override | 9007 @override |
9005 void visitChildren(ElementVisitor visitor) { | 9008 void visitChildren(ElementVisitor visitor) { |
9006 super.visitChildren(visitor); | 9009 super.visitChildren(visitor); |
9007 _initializer?.accept(visitor); | 9010 _initializer?.accept(visitor); |
9008 } | 9011 } |
9009 } | 9012 } |
OLD | NEW |