| 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 4313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4324 | 4324 |
| 4325 bool | 4325 bool |
| 4326 _visitVariableDeclarations(NodeList<VariableDeclaration> variableDeclarati
ons) { | 4326 _visitVariableDeclarations(NodeList<VariableDeclaration> variableDeclarati
ons) { |
| 4327 for (int i = variableDeclarations.length - 1; i >= 0; i--) { | 4327 for (int i = variableDeclarations.length - 1; i >= 0; i--) { |
| 4328 if (variableDeclarations[i].accept(this)) { | 4328 if (variableDeclarations[i].accept(this)) { |
| 4329 return true; | 4329 return true; |
| 4330 } | 4330 } |
| 4331 } | 4331 } |
| 4332 return false; | 4332 return false; |
| 4333 } | 4333 } |
| 4334 |
| 4335 /** |
| 4336 * Return `true` if the given [node] exits. |
| 4337 */ |
| 4338 static bool exits(AstNode node) { |
| 4339 return new ExitDetector()._nodeExits(node); |
| 4340 } |
| 4334 } | 4341 } |
| 4335 | 4342 |
| 4336 /** | 4343 /** |
| 4337 * Instances of the class `FunctionScope` implement the scope defined by a funct
ion. | 4344 * Instances of the class `FunctionScope` implement the scope defined by a funct
ion. |
| 4338 */ | 4345 */ |
| 4339 class FunctionScope extends EnclosedScope { | 4346 class FunctionScope extends EnclosedScope { |
| 4340 final ExecutableElement _functionElement; | 4347 final ExecutableElement _functionElement; |
| 4341 | 4348 |
| 4342 bool _parametersDefined = false; | 4349 bool _parametersDefined = false; |
| 4343 | 4350 |
| (...skipping 11343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15687 * library. | 15694 * library. |
| 15688 */ | 15695 */ |
| 15689 final HashSet<String> members = new HashSet<String>(); | 15696 final HashSet<String> members = new HashSet<String>(); |
| 15690 | 15697 |
| 15691 /** | 15698 /** |
| 15692 * Names of resolved or unresolved class members that are read in the | 15699 * Names of resolved or unresolved class members that are read in the |
| 15693 * library. | 15700 * library. |
| 15694 */ | 15701 */ |
| 15695 final HashSet<String> readMembers = new HashSet<String>(); | 15702 final HashSet<String> readMembers = new HashSet<String>(); |
| 15696 } | 15703 } |
| OLD | NEW |