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

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

Issue 322603002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 4606 matching lines...) Expand 10 before | Expand all | Expand 10 after
4617 @override 4617 @override
4618 FieldElement get baseElement => super.baseElement as FieldElement; 4618 FieldElement get baseElement => super.baseElement as FieldElement;
4619 4619
4620 @override 4620 @override
4621 ClassElement get enclosingElement => baseElement.enclosingElement; 4621 ClassElement get enclosingElement => baseElement.enclosingElement;
4622 4622
4623 @override 4623 @override
4624 PropertyAccessorElement get getter => PropertyAccessorMember.from(baseElement. getter, definingType); 4624 PropertyAccessorElement get getter => PropertyAccessorMember.from(baseElement. getter, definingType);
4625 4625
4626 @override 4626 @override
4627 DartType get propagatedType => substituteFor(baseElement.propagatedType);
4628
4629 @override
4627 PropertyAccessorElement get setter => PropertyAccessorMember.from(baseElement. setter, definingType); 4630 PropertyAccessorElement get setter => PropertyAccessorMember.from(baseElement. setter, definingType);
4628 4631
4629 @override 4632 @override
4630 bool get isStatic => baseElement.isStatic; 4633 bool get isStatic => baseElement.isStatic;
4631 4634
4632 @override 4635 @override
4633 InterfaceType get definingType => super.definingType as InterfaceType; 4636 InterfaceType get definingType => super.definingType as InterfaceType;
4634 } 4637 }
4635 4638
4636 /** 4639 /**
(...skipping 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after
8213 } 8216 }
8214 8217
8215 /** 8218 /**
8216 * Return the type that results from replacing the type parameters in the give n type with the type 8219 * Return the type that results from replacing the type parameters in the give n type with the type
8217 * arguments. 8220 * arguments.
8218 * 8221 *
8219 * @param type the type to be transformed 8222 * @param type the type to be transformed
8220 * @return the result of transforming the type 8223 * @return the result of transforming the type
8221 */ 8224 */
8222 DartType substituteFor(DartType type) { 8225 DartType substituteFor(DartType type) {
8226 if (type == null) {
8227 return null;
8228 }
8223 List<DartType> argumentTypes = _definingType.typeArguments; 8229 List<DartType> argumentTypes = _definingType.typeArguments;
8224 List<DartType> parameterTypes = TypeParameterTypeImpl.getTypes(_definingType .typeParameters); 8230 List<DartType> parameterTypes = TypeParameterTypeImpl.getTypes(_definingType .typeParameters);
8225 return type.substitute2(argumentTypes, parameterTypes); 8231 return type.substitute2(argumentTypes, parameterTypes);
8226 } 8232 }
8227 8233
8228 /** 8234 /**
8229 * Return the array of types that results from replacing the type parameters i n the given types 8235 * Return the array of types that results from replacing the type parameters i n the given types
8230 * with the type arguments. 8236 * with the type arguments.
8231 * 8237 *
8232 * @param types the types to be transformed 8238 * @param types the types to be transformed
(...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after
9803 abstract class PropertyInducingElement implements VariableElement { 9809 abstract class PropertyInducingElement implements VariableElement {
9804 /** 9810 /**
9805 * Return the getter associated with this variable. If this variable was expli citly defined (is 9811 * Return the getter associated with this variable. If this variable was expli citly defined (is
9806 * not synthetic) then the getter associated with it will be synthetic. 9812 * not synthetic) then the getter associated with it will be synthetic.
9807 * 9813 *
9808 * @return the getter associated with this variable 9814 * @return the getter associated with this variable
9809 */ 9815 */
9810 PropertyAccessorElement get getter; 9816 PropertyAccessorElement get getter;
9811 9817
9812 /** 9818 /**
9819 * Return the propagated type of this variable, or `null` if type propagation has not been
9820 * performed, for example because the variable is not final.
9821 *
9822 * @return the propagated type of this variable
9823 */
9824 DartType get propagatedType;
9825
9826 /**
9813 * Return the setter associated with this variable, or `null` if the variable is effectively 9827 * Return the setter associated with this variable, or `null` if the variable is effectively
9814 * `final` and therefore does not have a setter associated with it. (This can happen either 9828 * `final` and therefore does not have a setter associated with it. (This can happen either
9815 * because the variable is explicitly defined as being `final` or because the variable is 9829 * because the variable is explicitly defined as being `final` or because the variable is
9816 * induced by an explicit getter that does not have a corresponding setter.) I f this variable was 9830 * induced by an explicit getter that does not have a corresponding setter.) I f this variable was
9817 * explicitly defined (is not synthetic) then the setter associated with it wi ll be synthetic. 9831 * explicitly defined (is not synthetic) then the setter associated with it wi ll be synthetic.
9818 * 9832 *
9819 * @return the setter associated with this variable 9833 * @return the setter associated with this variable
9820 */ 9834 */
9821 PropertyAccessorElement get setter; 9835 PropertyAccessorElement get setter;
9822 9836
(...skipping 16 matching lines...) Expand all
9839 */ 9853 */
9840 PropertyAccessorElement getter; 9854 PropertyAccessorElement getter;
9841 9855
9842 /** 9856 /**
9843 * The setter associated with this element, or `null` if the element is effect ively 9857 * The setter associated with this element, or `null` if the element is effect ively
9844 * `final` and therefore does not have a setter associated with it. 9858 * `final` and therefore does not have a setter associated with it.
9845 */ 9859 */
9846 PropertyAccessorElement setter; 9860 PropertyAccessorElement setter;
9847 9861
9848 /** 9862 /**
9863 * The propagated type of this variable, or `null` if type propagation has not been
9864 * performed.
9865 */
9866 DartType propagatedType;
9867
9868 /**
9849 * An empty array of elements. 9869 * An empty array of elements.
9850 */ 9870 */
9851 static List<PropertyInducingElement> EMPTY_ARRAY = new List<PropertyInducingEl ement>(0); 9871 static List<PropertyInducingElement> EMPTY_ARRAY = new List<PropertyInducingEl ement>(0);
9852 9872
9853 /** 9873 /**
9854 * Initialize a newly created element to have the given name. 9874 * Initialize a newly created element to have the given name.
9855 * 9875 *
9856 * @param name the name of this element 9876 * @param name the name of this element
9857 */ 9877 */
9858 PropertyInducingElementImpl.con1(Identifier name) : super.forNode(name); 9878 PropertyInducingElementImpl.con1(Identifier name) : super.forNode(name);
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
11089 11109
11090 @override 11110 @override
11091 bool internalEquals(Object object, Set<ElementPair> visitedElementPairs) => id entical(object, this); 11111 bool internalEquals(Object object, Set<ElementPair> visitedElementPairs) => id entical(object, this);
11092 11112
11093 @override 11113 @override
11094 bool internalIsMoreSpecificThan(DartType type, bool withDynamic, Set<TypeImpl_ TypePair> visitedTypePairs) => isSubtypeOf(type); 11114 bool internalIsMoreSpecificThan(DartType type, bool withDynamic, Set<TypeImpl_ TypePair> visitedTypePairs) => isSubtypeOf(type);
11095 11115
11096 @override 11116 @override
11097 bool internalIsSubtypeOf(DartType type, Set<TypeImpl_TypePair> visitedTypePair s) => identical(type, this) || identical(type, DynamicTypeImpl.instance); 11117 bool internalIsSubtypeOf(DartType type, Set<TypeImpl_TypePair> visitedTypePair s) => identical(type, this) || identical(type, DynamicTypeImpl.instance);
11098 } 11118 }
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