| OLD | NEW |
| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser_test; | 8 library engine.parser_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
| (...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1832 } | 1832 } |
| 1833 | 1833 |
| 1834 class NonErrorParserTest extends ParserTestCase { | 1834 class NonErrorParserTest extends ParserTestCase { |
| 1835 void test_constFactory_external() { | 1835 void test_constFactory_external() { |
| 1836 ParserTestCase.parse("parseClassMember", <Object> ["C"], "external const fac
tory C();"); | 1836 ParserTestCase.parse("parseClassMember", <Object> ["C"], "external const fac
tory C();"); |
| 1837 } | 1837 } |
| 1838 } | 1838 } |
| 1839 | 1839 |
| 1840 class ParserTestCase extends EngineTestCase { | 1840 class ParserTestCase extends EngineTestCase { |
| 1841 /** | 1841 /** |
| 1842 * An empty array of objects used as arguments to zero-argument methods. | 1842 * An empty list of objects used as arguments to zero-argument methods. |
| 1843 */ | 1843 */ |
| 1844 static List<Object> _EMPTY_ARGUMENTS = new List<Object>(0); | 1844 static const List<Object> _EMPTY_ARGUMENTS = const <Object>[]; |
| 1845 | 1845 |
| 1846 /** | 1846 /** |
| 1847 * A flag indicating whether parser is to parse function bodies. | 1847 * A flag indicating whether parser is to parse function bodies. |
| 1848 */ | 1848 */ |
| 1849 static bool parseFunctionBodies = true; | 1849 static bool parseFunctionBodies = true; |
| 1850 | 1850 |
| 1851 /** | 1851 /** |
| 1852 * Create a parser. | 1852 * Create a parser. |
| 1853 * | 1853 * |
| 1854 * @param listener the listener to be passed to the parser | 1854 * @param listener the listener to be passed to the parser |
| (...skipping 6515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8370 main() { | 8370 main() { |
| 8371 groupSep = ' | '; | 8371 groupSep = ' | '; |
| 8372 runReflectiveTests(ComplexParserTest); | 8372 runReflectiveTests(ComplexParserTest); |
| 8373 runReflectiveTests(ErrorParserTest); | 8373 runReflectiveTests(ErrorParserTest); |
| 8374 runReflectiveTests(IncrementalParserTest); | 8374 runReflectiveTests(IncrementalParserTest); |
| 8375 runReflectiveTests(NonErrorParserTest); | 8375 runReflectiveTests(NonErrorParserTest); |
| 8376 runReflectiveTests(RecoveryParserTest); | 8376 runReflectiveTests(RecoveryParserTest); |
| 8377 runReflectiveTests(ResolutionCopierTest); | 8377 runReflectiveTests(ResolutionCopierTest); |
| 8378 runReflectiveTests(SimpleParserTest); | 8378 runReflectiveTests(SimpleParserTest); |
| 8379 } | 8379 } |
| OLD | NEW |