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

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

Issue 673673002: Record types of invoked variables. (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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | 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 5116 matching lines...) Expand 10 before | Expand all | Expand 10 after
5127 List<TypeParameterElement> _typeParameters = TypeParameterElementImpl.EMPTY_AR RAY; 5127 List<TypeParameterElement> _typeParameters = TypeParameterElementImpl.EMPTY_AR RAY;
5128 5128
5129 /** 5129 /**
5130 * An empty array of type alias elements. 5130 * An empty array of type alias elements.
5131 */ 5131 */
5132 static List<FunctionTypeAliasElement> EMPTY_ARRAY = new List<FunctionTypeAlias Element>(0); 5132 static List<FunctionTypeAliasElement> EMPTY_ARRAY = new List<FunctionTypeAlias Element>(0);
5133 5133
5134 /** 5134 /**
5135 * Initialize a newly created type alias element to have the given name. 5135 * Initialize a newly created type alias element to have the given name.
5136 * 5136 *
5137 * [name] the name of this element
5138 * [nameOffset] the offset of the name of this element in the file that
5139 * contains the declaration of this element
5140 */
5141 FunctionTypeAliasElementImpl(String name, int nameOffset) : super(name, nameOf fset);
5142
5143 /**
5144 * Initialize a newly created type alias element to have the given name.
5145 *
5137 * @param name the name of this element 5146 * @param name the name of this element
5138 */ 5147 */
5139 FunctionTypeAliasElementImpl(Identifier name) : super.forNode(name); 5148 FunctionTypeAliasElementImpl.forNode(Identifier name) : super.forNode(name);
5140 5149
5141 @override 5150 @override
5142 accept(ElementVisitor visitor) => visitor.visitFunctionTypeAliasElement(this); 5151 accept(ElementVisitor visitor) => visitor.visitFunctionTypeAliasElement(this);
5143 5152
5144 @override 5153 @override
5145 ElementImpl getChild(String identifier) { 5154 ElementImpl getChild(String identifier) {
5146 for (VariableElement parameter in _parameters) { 5155 for (VariableElement parameter in _parameters) {
5147 if ((parameter as VariableElementImpl).identifier == identifier) { 5156 if ((parameter as VariableElementImpl).identifier == identifier) {
5148 return parameter as VariableElementImpl; 5157 return parameter as VariableElementImpl;
5149 } 5158 }
(...skipping 6612 matching lines...) Expand 10 before | Expand all | Expand 10 after
11762 if (type is UnionType) { 11771 if (type is UnionType) {
11763 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite dTypePairs); 11772 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite dTypePairs);
11764 } 11773 }
11765 // The only subtype relations that pertain to void are therefore: 11774 // The only subtype relations that pertain to void are therefore:
11766 // void <: void (by reflexivity) 11775 // void <: void (by reflexivity)
11767 // bottom <: void (as bottom is a subtype of all types). 11776 // bottom <: void (as bottom is a subtype of all types).
11768 // void <: dynamic (as dynamic is a supertype of all types) 11777 // void <: dynamic (as dynamic is a supertype of all types)
11769 return identical(type, this) || type.isDynamic; 11778 return identical(type, this) || type.isDynamic;
11770 } 11779 }
11771 } 11780 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698