| OLD | NEW |
| 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.index; | 8 library engine.index; |
| 9 | 9 |
| 10 import 'dart:collection' show Queue; | 10 import 'dart:collection' show Queue; |
| (...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 _elementStack.removeFirst(); | 1217 _elementStack.removeFirst(); |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 /** | 1220 /** |
| 1221 * @return `true` if given node already indexed as more interesting reference,
so it should | 1221 * @return `true` if given node already indexed as more interesting reference,
so it should |
| 1222 * not be indexed again. | 1222 * not be indexed again. |
| 1223 */ | 1223 */ |
| 1224 bool _isAlreadyHandledName(SimpleIdentifier node) { | 1224 bool _isAlreadyHandledName(SimpleIdentifier node) { |
| 1225 AstNode parent = node.parent; | 1225 AstNode parent = node.parent; |
| 1226 if (parent is MethodInvocation) { | 1226 if (parent is MethodInvocation) { |
| 1227 Element element = node.staticElement; | 1227 return identical(parent.methodName, node); |
| 1228 if (element is MethodElement || element is FunctionElement) { | |
| 1229 return identical(parent.methodName, node); | |
| 1230 } | |
| 1231 } | 1228 } |
| 1232 return false; | 1229 return false; |
| 1233 } | 1230 } |
| 1234 | 1231 |
| 1235 /** | 1232 /** |
| 1236 * Records the [Element] definition in the library and universe. | 1233 * Records the [Element] definition in the library and universe. |
| 1237 */ | 1234 */ |
| 1238 void _recordElementDefinition(Element element, Relationship relationship) { | 1235 void _recordElementDefinition(Element element, Relationship relationship) { |
| 1239 Location location = createLocation(element); | 1236 Location location = createLocation(element); |
| 1240 recordRelationship(_libraryElement, relationship, location); | 1237 recordRelationship(_libraryElement, relationship, location); |
| (...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2468 static UniverseElementImpl INSTANCE = new UniverseElementImpl(); | 2465 static UniverseElementImpl INSTANCE = new UniverseElementImpl(); |
| 2469 | 2466 |
| 2470 UniverseElementImpl() : super("--universe--", -1); | 2467 UniverseElementImpl() : super("--universe--", -1); |
| 2471 | 2468 |
| 2472 @override | 2469 @override |
| 2473 accept(ElementVisitor visitor) => null; | 2470 accept(ElementVisitor visitor) => null; |
| 2474 | 2471 |
| 2475 @override | 2472 @override |
| 2476 ElementKind get kind => ElementKind.UNIVERSE; | 2473 ElementKind get kind => ElementKind.UNIVERSE; |
| 2477 } | 2474 } |
| OLD | NEW |