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

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

Issue 624403002: Write end-of-block comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
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 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3476 3476
3477 @override 3477 @override
3478 String toString() { 3478 String toString() {
3479 JavaStringBuilder builder = new JavaStringBuilder(); 3479 JavaStringBuilder builder = new JavaStringBuilder();
3480 appendTo(builder); 3480 appendTo(builder);
3481 return builder.toString(); 3481 return builder.toString();
3482 } 3482 }
3483 3483
3484 @override 3484 @override
3485 void visitChildren(ElementVisitor visitor) { 3485 void visitChildren(ElementVisitor visitor) {
3486 // There are no children to visit
3486 } 3487 }
3487 3488
3488 /** 3489 /**
3489 * Append a textual representation of this type to the given builder. 3490 * Append a textual representation of this type to the given builder.
3490 * 3491 *
3491 * @param builder the builder to which the text is to be appended 3492 * @param builder the builder to which the text is to be appended
3492 */ 3493 */
3493 void appendTo(JavaStringBuilder builder) { 3494 void appendTo(JavaStringBuilder builder) {
3494 if (_name == null) { 3495 if (_name == null) {
3495 builder.append("<unnamed "); 3496 builder.append("<unnamed ");
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
4394 4395
4395 @override 4396 @override
4396 ExecutableElement get baseElement => super.baseElement as ExecutableElement; 4397 ExecutableElement get baseElement => super.baseElement as ExecutableElement;
4397 4398
4398 @override 4399 @override
4399 List<FunctionElement> get functions { 4400 List<FunctionElement> get functions {
4400 // 4401 //
4401 // Elements within this element should have type parameters substituted, jus t like this element. 4402 // Elements within this element should have type parameters substituted, jus t like this element.
4402 // 4403 //
4403 throw new UnsupportedOperationException(); 4404 throw new UnsupportedOperationException();
4405 // return getBaseElement().getFunctions();
4404 } 4406 }
4405 4407
4406 @override 4408 @override
4407 List<LabelElement> get labels => baseElement.labels; 4409 List<LabelElement> get labels => baseElement.labels;
4408 4410
4409 @override 4411 @override
4410 List<LocalVariableElement> get localVariables { 4412 List<LocalVariableElement> get localVariables {
4411 // 4413 //
4412 // Elements within this element should have type parameters substituted, jus t like this element. 4414 // Elements within this element should have type parameters substituted, jus t like this element.
4413 // 4415 //
4414 throw new UnsupportedOperationException(); 4416 throw new UnsupportedOperationException();
4417 // return getBaseElement().getLocalVariables();
4415 } 4418 }
4416 4419
4417 @override 4420 @override
4418 List<ParameterElement> get parameters { 4421 List<ParameterElement> get parameters {
4419 List<ParameterElement> baseParameters = baseElement.parameters; 4422 List<ParameterElement> baseParameters = baseElement.parameters;
4420 int parameterCount = baseParameters.length; 4423 int parameterCount = baseParameters.length;
4421 if (parameterCount == 0) { 4424 if (parameterCount == 0) {
4422 return baseParameters; 4425 return baseParameters;
4423 } 4426 }
4424 List<ParameterElement> parameterizedParameters = new List<ParameterElement>( parameterCount); 4427 List<ParameterElement> parameterizedParameters = new List<ParameterElement>( parameterCount);
(...skipping 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after
8413 bool get isPrivate => _baseElement.isPrivate; 8416 bool get isPrivate => _baseElement.isPrivate;
8414 8417
8415 @override 8418 @override
8416 bool get isPublic => _baseElement.isPublic; 8419 bool get isPublic => _baseElement.isPublic;
8417 8420
8418 @override 8421 @override
8419 bool get isSynthetic => _baseElement.isSynthetic; 8422 bool get isSynthetic => _baseElement.isSynthetic;
8420 8423
8421 @override 8424 @override
8422 void visitChildren(ElementVisitor visitor) { 8425 void visitChildren(ElementVisitor visitor) {
8426 // There are no children to visit
8423 } 8427 }
8424 8428
8425 /** 8429 /**
8426 * Return the type in which the element is defined. 8430 * Return the type in which the element is defined.
8427 * 8431 *
8428 * @return the type in which the element is defined 8432 * @return the type in which the element is defined
8429 */ 8433 */
8430 ParameterizedType get definingType => _definingType; 8434 ParameterizedType get definingType => _definingType;
8431 8435
8432 /** 8436 /**
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
9015 builder.append(", "); 9019 builder.append(", ");
9016 } 9020 }
9017 (conflictingElements[i] as ElementImpl).appendTo(builder); 9021 (conflictingElements[i] as ElementImpl).appendTo(builder);
9018 } 9022 }
9019 builder.append("]"); 9023 builder.append("]");
9020 return builder.toString(); 9024 return builder.toString();
9021 } 9025 }
9022 9026
9023 @override 9027 @override
9024 void visitChildren(ElementVisitor visitor) { 9028 void visitChildren(ElementVisitor visitor) {
9029 // There are no children to visit
9025 } 9030 }
9026 } 9031 }
9027 9032
9028 /** 9033 /**
9029 * The interface [MultiplyInheritedExecutableElement] defines all of the behavio r of an 9034 * The interface [MultiplyInheritedExecutableElement] defines all of the behavio r of an
9030 * [ExecutableElement], with the additional information of an array of 9035 * [ExecutableElement], with the additional information of an array of
9031 * [ExecutableElement]s from which this element was composed. 9036 * [ExecutableElement]s from which this element was composed.
9032 */ 9037 */
9033 abstract class MultiplyInheritedExecutableElement implements ExecutableElement { 9038 abstract class MultiplyInheritedExecutableElement implements ExecutableElement {
9034 /** 9039 /**
(...skipping 2554 matching lines...) Expand 10 before | Expand all | Expand 10 after
11589 11594
11590 @override 11595 @override
11591 VariableElement get baseElement => super.baseElement as VariableElement; 11596 VariableElement get baseElement => super.baseElement as VariableElement;
11592 11597
11593 @override 11598 @override
11594 FunctionElement get initializer { 11599 FunctionElement get initializer {
11595 // 11600 //
11596 // Elements within this element should have type parameters substituted, jus t like this element. 11601 // Elements within this element should have type parameters substituted, jus t like this element.
11597 // 11602 //
11598 throw new UnsupportedOperationException(); 11603 throw new UnsupportedOperationException();
11604 // return getBaseElement().getInitializer();
11599 } 11605 }
11600 11606
11601 @override 11607 @override
11602 VariableDeclaration get node => baseElement.node; 11608 VariableDeclaration get node => baseElement.node;
11603 11609
11604 @override 11610 @override
11605 DartType get type => substituteFor(baseElement.type); 11611 DartType get type => substituteFor(baseElement.type);
11606 11612
11607 @override 11613 @override
11608 bool get isConst => baseElement.isConst; 11614 bool get isConst => baseElement.isConst;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
11672 if (type is UnionType) { 11678 if (type is UnionType) {
11673 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite dTypePairs); 11679 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite dTypePairs);
11674 } 11680 }
11675 // The only subtype relations that pertain to void are therefore: 11681 // The only subtype relations that pertain to void are therefore:
11676 // void <: void (by reflexivity) 11682 // void <: void (by reflexivity)
11677 // bottom <: void (as bottom is a subtype of all types). 11683 // bottom <: void (as bottom is a subtype of all types).
11678 // void <: dynamic (as dynamic is a supertype of all types) 11684 // void <: dynamic (as dynamic is a supertype of all types)
11679 return identical(type, this) || identical(type, DynamicTypeImpl.instance); 11685 return identical(type, this) || identical(type, DynamicTypeImpl.instance);
11680 } 11686 }
11681 } 11687 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698