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

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

Issue 871013012: Issue 22188. Verify that none or all execution flows return. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 5 years, 10 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 | « pkg/analysis_server/test/services/refactoring/extract_method_test.dart ('k') | no next file » | 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; 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/services/refactoring/extract_method_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698