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

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

Issue 818733006: Fix for issue 21982 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/instrumentation/instrumentation.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 2634
2635 @override 2635 @override
2636 ConstructorDeclaration get node => 2636 ConstructorDeclaration get node =>
2637 getNodeMatching((node) => node is ConstructorDeclaration); 2637 getNodeMatching((node) => node is ConstructorDeclaration);
2638 2638
2639 @override 2639 @override
2640 accept(ElementVisitor visitor) => visitor.visitConstructorElement(this); 2640 accept(ElementVisitor visitor) => visitor.visitConstructorElement(this);
2641 2641
2642 @override 2642 @override
2643 void appendTo(StringBuffer buffer) { 2643 void appendTo(StringBuffer buffer) {
2644 buffer.write(enclosingElement.displayName); 2644 if (enclosingElement == null) {
2645 String message;
2646 String name = displayName;
2647 if (name != null && !name.isEmpty) {
2648 message = 'Found constructor element named $name with no enclosing eleme nt';
2649 } else {
2650 message = 'Found unnamed constructor element with no enclosing element';
2651 }
2652 AnalysisEngine.instance.instrumentationService.logError(message);
2653 buffer.write('<unknown class>');
2654 } else {
2655 buffer.write(enclosingElement.displayName);
2656 }
2645 String name = displayName; 2657 String name = displayName;
2646 if (name != null && !name.isEmpty) { 2658 if (name != null && !name.isEmpty) {
2647 buffer.write("."); 2659 buffer.write(".");
2648 buffer.write(name); 2660 buffer.write(name);
2649 } 2661 }
2650 super.appendTo(buffer); 2662 super.appendTo(buffer);
2651 } 2663 }
2652 } 2664 }
2653 2665
2654 /** 2666 /**
(...skipping 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after
4849 } 4861 }
4850 4862
4851 /** 4863 /**
4852 * The interface `FieldElement` defines the behavior of elements representing a field defined 4864 * The interface `FieldElement` defines the behavior of elements representing a field defined
4853 * within a type. 4865 * within a type.
4854 */ 4866 */
4855 abstract class FieldElement implements ClassMemberElement, 4867 abstract class FieldElement implements ClassMemberElement,
4856 PropertyInducingElement { 4868 PropertyInducingElement {
4857 /** 4869 /**
4858 * Return {@code true} if this element is an enum constant. 4870 * Return {@code true} if this element is an enum constant.
4859 * 4871 *
4860 * @return {@code true} if this an enum constant 4872 * @return {@code true} if this an enum constant
4861 */ 4873 */
4862 bool get isEnumConstant; 4874 bool get isEnumConstant;
4863 } 4875 }
4864 4876
4865 /** 4877 /**
4866 * Instances of the class `FieldElementImpl` implement a `FieldElement`. 4878 * Instances of the class `FieldElementImpl` implement a `FieldElement`.
4867 */ 4879 */
4868 class FieldElementImpl extends PropertyInducingElementImpl implements 4880 class FieldElementImpl extends PropertyInducingElementImpl implements
4869 FieldElement { 4881 FieldElement {
(...skipping 7724 matching lines...) Expand 10 before | Expand all | Expand 10 after
12594 // bottom <: void (as bottom is a subtype of all types). 12606 // bottom <: void (as bottom is a subtype of all types).
12595 // void <: dynamic (as dynamic is a supertype of all types) 12607 // void <: dynamic (as dynamic is a supertype of all types)
12596 return identical(type, this) || type.isDynamic; 12608 return identical(type, this) || type.isDynamic;
12597 } 12609 }
12598 12610
12599 @override 12611 @override
12600 VoidTypeImpl substitute2(List<DartType> argumentTypes, 12612 VoidTypeImpl substitute2(List<DartType> argumentTypes,
12601 List<DartType> parameterTypes) => 12613 List<DartType> parameterTypes) =>
12602 this; 12614 this;
12603 } 12615 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/instrumentation/instrumentation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698