Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2977133002: Add documentationComment for Class to Kernel. Parse it. Resynthesize in Analyzer. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/fasta/analyzer_loader.dart » ('j') | runtime/vm/kernel_binary_flowgraph.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698