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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 } | 869 } |
870 | 870 |
871 void test_factoryTopLevelDeclaration_class() { | 871 void test_factoryTopLevelDeclaration_class() { |
872 ParserTestCase.parseCompilationUnit("factory class C {}", [ParserErrorCode.F
ACTORY_TOP_LEVEL_DECLARATION]); | 872 ParserTestCase.parseCompilationUnit("factory class C {}", [ParserErrorCode.F
ACTORY_TOP_LEVEL_DECLARATION]); |
873 } | 873 } |
874 | 874 |
875 void test_factoryTopLevelDeclaration_typedef() { | 875 void test_factoryTopLevelDeclaration_typedef() { |
876 ParserTestCase.parseCompilationUnit("factory typedef F();", [ParserErrorCode
.FACTORY_TOP_LEVEL_DECLARATION]); | 876 ParserTestCase.parseCompilationUnit("factory typedef F();", [ParserErrorCode
.FACTORY_TOP_LEVEL_DECLARATION]); |
877 } | 877 } |
878 | 878 |
| 879 void test_factoryWithInitializers() { |
| 880 ParserTestCase.parse3( |
| 881 "parseClassMember", |
| 882 <Object> ["C"], |
| 883 "factory C() : x = 3 {}", |
| 884 [ParserErrorCode.FACTORY_WITH_INITIALIZERS]); |
| 885 } |
| 886 |
879 void test_factoryWithoutBody() { | 887 void test_factoryWithoutBody() { |
880 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "factory C();", [P
arserErrorCode.FACTORY_WITHOUT_BODY]); | 888 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "factory C();", [P
arserErrorCode.FACTORY_WITHOUT_BODY]); |
881 } | 889 } |
882 | 890 |
883 void test_fieldInitializerOutsideConstructor() { | 891 void test_fieldInitializerOutsideConstructor() { |
884 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "void m(this.x);",
[ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR]); | 892 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "void m(this.x);",
[ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR]); |
885 } | 893 } |
886 | 894 |
887 void test_finalAndVar() { | 895 void test_finalAndVar() { |
888 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "final var x;", [P
arserErrorCode.FINAL_AND_VAR]); | 896 ParserTestCase.parse3("parseClassMember", <Object> ["C"], "final var x;", [P
arserErrorCode.FINAL_AND_VAR]); |
(...skipping 7405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8294 main() { | 8302 main() { |
8295 groupSep = ' | '; | 8303 groupSep = ' | '; |
8296 runReflectiveTests(ComplexParserTest); | 8304 runReflectiveTests(ComplexParserTest); |
8297 runReflectiveTests(ErrorParserTest); | 8305 runReflectiveTests(ErrorParserTest); |
8298 runReflectiveTests(IncrementalParserTest); | 8306 runReflectiveTests(IncrementalParserTest); |
8299 runReflectiveTests(NonErrorParserTest); | 8307 runReflectiveTests(NonErrorParserTest); |
8300 runReflectiveTests(RecoveryParserTest); | 8308 runReflectiveTests(RecoveryParserTest); |
8301 runReflectiveTests(ResolutionCopierTest); | 8309 runReflectiveTests(ResolutionCopierTest); |
8302 runReflectiveTests(SimpleParserTest); | 8310 runReflectiveTests(SimpleParserTest); |
8303 } | 8311 } |
OLD | NEW |