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

Unified Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 2486873003: Move scanner into pkg/front_end/lib/src/scanner. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index a7638b834fe80685b9393c3cd54a39d05ea47e45..91097c6a83e39030a103a7d60dc6462a7222173d 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -2937,7 +2937,7 @@ class ParserTestCase extends EngineTestCase {
* match those that are expected, or if the result would have been `null`.
*/
CompilationUnit parseCompilationUnitWithOptions(String source,
- [List<ErrorCode> errorCodes = ErrorCode.EMPTY_LIST]) {
+ [List<ErrorCode> errorCodes = const <ErrorCode>[]]) {
createParser(source);
CompilationUnit unit = parser.parseCompilationUnit2();
expect(unit, isNotNull);
@@ -2955,7 +2955,7 @@ class ParserTestCase extends EngineTestCase {
* not match those that are expected, or if the result would have been `null`
*/
Expression parseExpression(String source,
- [List<ErrorCode> errorCodes = ErrorCode.EMPTY_LIST]) {
+ [List<ErrorCode> errorCodes = const <ErrorCode>[]]) {
createParser(source);
Expression expression = parser.parseExpression2();
expectNotNullIfNoErrors(expression);
@@ -2979,7 +2979,7 @@ class ParserTestCase extends EngineTestCase {
* not match those that are expected, or if the result would have been `null`
*/
static CompilationUnit parseCompilationUnit(String source,
- [List<ErrorCode> errorCodes = ErrorCode.EMPTY_LIST]) {
+ [List<ErrorCode> errorCodes = const <ErrorCode>[]]) {
GatheringErrorListener listener = new GatheringErrorListener();
Scanner scanner =
new Scanner(null, new CharSequenceReader(source), listener);
@@ -3014,7 +3014,7 @@ class ParserTestCase extends EngineTestCase {
* should be enabled.
*/
static Statement parseStatement(String source,
- [List<ErrorCode> errorCodes = ErrorCode.EMPTY_LIST,
+ [List<ErrorCode> errorCodes = const <ErrorCode>[],
bool enableLazyAssignmentOperators]) {
GatheringErrorListener listener = new GatheringErrorListener();
Scanner scanner =
@@ -3041,7 +3041,7 @@ class ParserTestCase extends EngineTestCase {
* are expected, or if the result would have been `null`
*/
static List<Statement> parseStatements(String source, int expectedCount,
- [List<ErrorCode> errorCodes = ErrorCode.EMPTY_LIST]) {
+ [List<ErrorCode> errorCodes = const <ErrorCode>[]]) {
GatheringErrorListener listener = new GatheringErrorListener();
Scanner scanner =
new Scanner(null, new CharSequenceReader(source), listener);
@@ -13472,7 +13472,7 @@ void''');
* not match those that are expected, or if the result would have been `null`
*/
CompilationUnit _parseDirectives(String source,
- [List<ErrorCode> errorCodes = ErrorCode.EMPTY_LIST]) {
+ [List<ErrorCode> errorCodes = const <ErrorCode>[]]) {
createParser(source);
CompilationUnit unit = parser.parseDirectives2();
expect(unit, isNotNull);

Powered by Google App Engine
This is Rietveld 408576698