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

Side by Side Diff: pkg/analyzer_experimental/test/generated/scanner_test.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.scanner_test; 3 library engine.scanner_test;
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:unittest/unittest.dart' as _ut; 9 import 'package:unittest/unittest.dart' as _ut;
10 import 'test_support.dart'; 10 import 'test_support.dart';
(...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 /** 2082 /**
2083 * Assert that scanning the given source produces an error with the given code . 2083 * Assert that scanning the given source produces an error with the given code .
2084 * 2084 *
2085 * @param illegalCharacter 2085 * @param illegalCharacter
2086 * @param i 2086 * @param i
2087 * @param source the source to be scanned to produce the error 2087 * @param source the source to be scanned to produce the error
2088 */ 2088 */
2089 void assertError(ScannerErrorCode expectedError, int expectedOffset, String so urce) { 2089 void assertError(ScannerErrorCode expectedError, int expectedOffset, String so urce) {
2090 GatheringErrorListener listener = new GatheringErrorListener(); 2090 GatheringErrorListener listener = new GatheringErrorListener();
2091 scan(source, listener); 2091 scan(source, listener);
2092 listener.assertErrors([new AnalysisError.con2(null, expectedOffset, 1, expec tedError, [(source.codeUnitAt(expectedOffset) as int)])]); 2092 listener.assertErrors([new AnalysisError.con2(null, expectedOffset, 1, expec tedError, [source.codeUnitAt(expectedOffset) as int])]);
2093 } 2093 }
2094 2094
2095 /** 2095 /**
2096 * Assert that when scanned the given source contains a single keyword token w ith the same lexeme 2096 * Assert that when scanned the given source contains a single keyword token w ith the same lexeme
2097 * as the original source. 2097 * as the original source.
2098 * 2098 *
2099 * @param source the source to be scanned 2099 * @param source the source to be scanned
2100 */ 2100 */
2101 void assertKeywordToken(String source) { 2101 void assertKeywordToken(String source) {
2102 Token token = scan2(source); 2102 Token token = scan2(source);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 this._lineNumber = lineNumber; 2220 this._lineNumber = lineNumber;
2221 this._columnNumber = columnNumber; 2221 this._columnNumber = columnNumber;
2222 } 2222 }
2223 } 2223 }
2224 main() { 2224 main() {
2225 CharBufferScannerTest.dartSuite(); 2225 CharBufferScannerTest.dartSuite();
2226 KeywordStateTest.dartSuite(); 2226 KeywordStateTest.dartSuite();
2227 StringScannerTest.dartSuite(); 2227 StringScannerTest.dartSuite();
2228 TokenTypeTest.dartSuite(); 2228 TokenTypeTest.dartSuite();
2229 } 2229 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698