| 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 library engine.resolver; | 5 library engine.resolver; |
| 6 | 6 |
| 7 import "dart:math" as math; | 7 import "dart:math" as math; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/utilities_collection.dart'; | 10 import 'package:analyzer/src/generated/utilities_collection.dart'; |
| (...skipping 15115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15126 // Ignore if qualified. | 15126 // Ignore if qualified. |
| 15127 AstNode parent = node.parent; | 15127 AstNode parent = node.parent; |
| 15128 if (parent is PrefixedIdentifier && identical(parent.identifier, node)) { | 15128 if (parent is PrefixedIdentifier && identical(parent.identifier, node)) { |
| 15129 return null; | 15129 return null; |
| 15130 } | 15130 } |
| 15131 if (parent is PropertyAccess && identical(parent.propertyName, node)) { | 15131 if (parent is PropertyAccess && identical(parent.propertyName, node)) { |
| 15132 return null; | 15132 return null; |
| 15133 } | 15133 } |
| 15134 if (parent is MethodInvocation && | 15134 if (parent is MethodInvocation && |
| 15135 identical(parent.methodName, node) && | 15135 identical(parent.methodName, node) && |
| 15136 parent.target != null) { | 15136 parent.realTarget != null) { |
| 15137 return null; | 15137 return null; |
| 15138 } | 15138 } |
| 15139 if (parent is ConstructorName) { | 15139 if (parent is ConstructorName) { |
| 15140 return null; | 15140 return null; |
| 15141 } | 15141 } |
| 15142 if (parent is Label) { | 15142 if (parent is Label) { |
| 15143 return null; | 15143 return null; |
| 15144 } | 15144 } |
| 15145 // Prepare VariableElement. | 15145 // Prepare VariableElement. |
| 15146 Element element = nameScope.lookup(node, definingLibrary); | 15146 Element element = nameScope.lookup(node, definingLibrary); |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15670 * library. | 15670 * library. |
| 15671 */ | 15671 */ |
| 15672 final HashSet<String> members = new HashSet<String>(); | 15672 final HashSet<String> members = new HashSet<String>(); |
| 15673 | 15673 |
| 15674 /** | 15674 /** |
| 15675 * Names of resolved or unresolved class members that are read in the | 15675 * Names of resolved or unresolved class members that are read in the |
| 15676 * library. | 15676 * library. |
| 15677 */ | 15677 */ |
| 15678 final HashSet<String> readMembers = new HashSet<String>(); | 15678 final HashSet<String> readMembers = new HashSet<String>(); |
| 15679 } | 15679 } |
| OLD | NEW |