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

Side by Side Diff: pkg/analyzer_experimental/test/generated/test_support.dart

Issue 25373002: Issue 13584. Fix for Java/Dart local variable scoping mismatch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.test_support; 3 library engine.test_support;
4 import 'package:analyzer_experimental/src/generated/java_core.dart'; 4 import 'package:analyzer_experimental/src/generated/java_core.dart';
5 import 'package:analyzer_experimental/src/generated/java_junit.dart'; 5 import 'package:analyzer_experimental/src/generated/java_junit.dart';
6 import 'package:analyzer_experimental/src/generated/source.dart'; 6 import 'package:analyzer_experimental/src/generated/source.dart';
7 import 'package:analyzer_experimental/src/generated/error.dart'; 7 import 'package:analyzer_experimental/src/generated/error.dart';
8 import 'package:analyzer_experimental/src/generated/scanner.dart'; 8 import 'package:analyzer_experimental/src/generated/scanner.dart';
9 import 'package:analyzer_experimental/src/generated/ast.dart' show ASTNode, Node Locator; 9 import 'package:analyzer_experimental/src/generated/ast.dart' show ASTNode, Node Locator;
10 import 'package:analyzer_experimental/src/generated/element.dart' show Interface Type, MethodElement, PropertyAccessorElement; 10 import 'package:analyzer_experimental/src/generated/element.dart' show Interface Type, MethodElement, PropertyAccessorElement;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 * @return the line information associated with the source 225 * @return the line information associated with the source
226 */ 226 */
227 LineInfo getLineInfo(Source source) => _lineInfoMap[source]; 227 LineInfo getLineInfo(Source source) => _lineInfoMap[source];
228 228
229 /** 229 /**
230 * Return `true` if an error with the given error code has been gathered. 230 * Return `true` if an error with the given error code has been gathered.
231 * 231 *
232 * @param errorCode the error code being searched for 232 * @param errorCode the error code being searched for
233 * @return `true` if an error with the given error code has been gathered 233 * @return `true` if an error with the given error code has been gathered
234 */ 234 */
235 bool hasError(ErrorCode errorCode2) { 235 bool hasError(ErrorCode errorCode) {
236 for (AnalysisError error in errors) { 236 for (AnalysisError error in errors) {
237 if (identical(error.errorCode, errorCode2)) { 237 if (identical(error.errorCode, errorCode)) {
238 return true; 238 return true;
239 } 239 }
240 } 240 }
241 return false; 241 return false;
242 } 242 }
243 243
244 /** 244 /**
245 * Return `true` if at least one error has been gathered. 245 * Return `true` if at least one error has been gathered.
246 * 246 *
247 * @return `true` if at least one error has been gathered 247 * @return `true` if at least one error has been gathered
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 return trampoline(target, arguments[0], arguments[1]); 851 return trampoline(target, arguments[0], arguments[1]);
852 case 3: 852 case 3:
853 return trampoline(target, arguments[0], arguments[1], arguments[2]); 853 return trampoline(target, arguments[0], arguments[1], arguments[2]);
854 case 4: 854 case 4:
855 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]); 855 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]);
856 default: 856 default:
857 throw new IllegalArgumentException("Not implemented for > 4 arguments"); 857 throw new IllegalArgumentException("Not implemented for > 4 arguments");
858 } 858 }
859 } 859 }
860 } 860 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698