| 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);
|
|
|