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

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

Issue 708263002: Clean up references in comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/engine.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 library engine.resolver.element_resolver; 5 library engine.resolver.element_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'error.dart'; 9 import 'error.dart';
10 import 'scanner.dart' as sc; 10 import 'scanner.dart' as sc;
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 return StaticTypeWarningCode.UNDEFINED_METHOD; 1207 return StaticTypeWarningCode.UNDEFINED_METHOD;
1208 } 1208 }
1209 } 1209 }
1210 } 1210 }
1211 } 1211 }
1212 return null; 1212 return null;
1213 } 1213 }
1214 1214
1215 /** 1215 /**
1216 * Check that the for some index expression that the method element was resolv ed, otherwise a 1216 * Check that the for some index expression that the method element was resolv ed, otherwise a
1217 * [StaticWarningCode#UNDEFINED_OPERATOR] is generated. 1217 * [StaticTypeWarningCode.UNDEFINED_OPERATOR] is generated.
1218 * 1218 *
1219 * @param node the index expression to resolve 1219 * @param node the index expression to resolve
1220 * @param target the target of the expression 1220 * @param target the target of the expression
1221 * @param methodName the name of the operator associated with the context of u sing of the given 1221 * @param methodName the name of the operator associated with the context of u sing of the given
1222 * index expression 1222 * index expression
1223 * @return `true` if and only if an error code is generated on the passed node 1223 * @return `true` if and only if an error code is generated on the passed node
1224 */ 1224 */
1225 bool _checkForUndefinedIndexOperator(IndexExpression node, Expression target, String methodName, MethodElement staticMethod, MethodElement propagatedMethod, D artType staticType, DartType propagatedType) { 1225 bool _checkForUndefinedIndexOperator(IndexExpression node, Expression target, String methodName, MethodElement staticMethod, MethodElement propagatedMethod, D artType staticType, DartType propagatedType) {
1226 bool shouldReportMissingMember_static = _shouldReportMissingMember(staticTyp e, staticMethod); 1226 bool shouldReportMissingMember_static = _shouldReportMissingMember(staticTyp e, staticMethod);
1227 bool shouldReportMissingMember_propagated = !shouldReportMissingMember_stati c && _enableHints && _shouldReportMissingMember(propagatedType, propagatedMethod ) && !_memberFoundInSubclass(propagatedType.element, methodName, true, false); 1227 bool shouldReportMissingMember_propagated = !shouldReportMissingMember_stati c && _enableHints && _shouldReportMissingMember(propagatedType, propagatedMethod ) && !_memberFoundInSubclass(propagatedType.element, methodName, true, false);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 } 1307 }
1308 return element; 1308 return element;
1309 } 1309 }
1310 1310
1311 /** 1311 /**
1312 * Return `true` if the given element is not a proxy. 1312 * Return `true` if the given element is not a proxy.
1313 * 1313 *
1314 * @param element the enclosing element. If null, `true` will be returned. 1314 * @param element the enclosing element. If null, `true` will be returned.
1315 * @return `false` iff the passed [Element] is a [ClassElement] that is a prox y 1315 * @return `false` iff the passed [Element] is a [ClassElement] that is a prox y
1316 * or inherits proxy 1316 * or inherits proxy
1317 * @see ClassElement#isOrInheritsProxy() 1317 * See [ClassElement.isOrInheritsProxy].
1318 */ 1318 */
1319 bool _doesntHaveProxy(Element element) => !(element is ClassElement && element .isOrInheritsProxy); 1319 bool _doesntHaveProxy(Element element) => !(element is ClassElement && element .isOrInheritsProxy);
1320 1320
1321 /** 1321 /**
1322 * Look for any declarations of the given identifier that are imported using a prefix. Return the 1322 * Look for any declarations of the given identifier that are imported using a prefix. Return the
1323 * element that was found, or `null` if the name is not imported using a prefi x. 1323 * element that was found, or `null` if the name is not imported using a prefi x.
1324 * 1324 *
1325 * @param identifier the identifier that might have been imported using a pref ix 1325 * @param identifier the identifier that might have been imported using a pref ix
1326 * @return the element that was found 1326 * @return the element that was found
1327 */ 1327 */
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2645 @override 2645 @override
2646 Element get propagatedElement => null; 2646 Element get propagatedElement => null;
2647 2647
2648 @override 2648 @override
2649 Element get staticElement => null; 2649 Element get staticElement => null;
2650 2650
2651 @override 2651 @override
2652 void visitChildren(AstVisitor visitor) { 2652 void visitChildren(AstVisitor visitor) {
2653 } 2653 }
2654 } 2654 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698