| 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 5880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5891 } | 5891 } |
| 5892 | 5892 |
| 5893 void test_parseForStatement_each_await() { | 5893 void test_parseForStatement_each_await() { |
| 5894 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "awa
it for (element in list) {}", []); | 5894 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "awa
it for (element in list) {}", []); |
| 5895 expect(statement.awaitKeyword, isNotNull); | 5895 expect(statement.awaitKeyword, isNotNull); |
| 5896 expect(statement.forKeyword, isNotNull); | 5896 expect(statement.forKeyword, isNotNull); |
| 5897 expect(statement.leftParenthesis, isNotNull); | 5897 expect(statement.leftParenthesis, isNotNull); |
| 5898 expect(statement.loopVariable, isNull); | 5898 expect(statement.loopVariable, isNull); |
| 5899 expect(statement.identifier, isNotNull); | 5899 expect(statement.identifier, isNotNull); |
| 5900 expect(statement.inKeyword, isNotNull); | 5900 expect(statement.inKeyword, isNotNull); |
| 5901 expect(statement.iterator, isNotNull); | 5901 expect(statement.iterable, isNotNull); |
| 5902 expect(statement.rightParenthesis, isNotNull); | 5902 expect(statement.rightParenthesis, isNotNull); |
| 5903 expect(statement.body, isNotNull); | 5903 expect(statement.body, isNotNull); |
| 5904 } | 5904 } |
| 5905 | 5905 |
| 5906 void test_parseForStatement_each_identifier() { | 5906 void test_parseForStatement_each_identifier() { |
| 5907 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(element in list) {}", []); | 5907 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(element in list) {}", []); |
| 5908 expect(statement.awaitKeyword, isNull); | 5908 expect(statement.awaitKeyword, isNull); |
| 5909 expect(statement.forKeyword, isNotNull); | 5909 expect(statement.forKeyword, isNotNull); |
| 5910 expect(statement.leftParenthesis, isNotNull); | 5910 expect(statement.leftParenthesis, isNotNull); |
| 5911 expect(statement.loopVariable, isNull); | 5911 expect(statement.loopVariable, isNull); |
| 5912 expect(statement.identifier, isNotNull); | 5912 expect(statement.identifier, isNotNull); |
| 5913 expect(statement.inKeyword, isNotNull); | 5913 expect(statement.inKeyword, isNotNull); |
| 5914 expect(statement.iterator, isNotNull); | 5914 expect(statement.iterable, isNotNull); |
| 5915 expect(statement.rightParenthesis, isNotNull); | 5915 expect(statement.rightParenthesis, isNotNull); |
| 5916 expect(statement.body, isNotNull); | 5916 expect(statement.body, isNotNull); |
| 5917 } | 5917 } |
| 5918 | 5918 |
| 5919 void test_parseForStatement_each_noType_metadata() { | 5919 void test_parseForStatement_each_noType_metadata() { |
| 5920 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(@A var element in list) {}", []); | 5920 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(@A var element in list) {}", []); |
| 5921 expect(statement.awaitKeyword, isNull); | 5921 expect(statement.awaitKeyword, isNull); |
| 5922 expect(statement.forKeyword, isNotNull); | 5922 expect(statement.forKeyword, isNotNull); |
| 5923 expect(statement.leftParenthesis, isNotNull); | 5923 expect(statement.leftParenthesis, isNotNull); |
| 5924 expect(statement.loopVariable, isNotNull); | 5924 expect(statement.loopVariable, isNotNull); |
| 5925 expect(statement.loopVariable.metadata, hasLength(1)); | 5925 expect(statement.loopVariable.metadata, hasLength(1)); |
| 5926 expect(statement.identifier, isNull); | 5926 expect(statement.identifier, isNull); |
| 5927 expect(statement.inKeyword, isNotNull); | 5927 expect(statement.inKeyword, isNotNull); |
| 5928 expect(statement.iterator, isNotNull); | 5928 expect(statement.iterable, isNotNull); |
| 5929 expect(statement.rightParenthesis, isNotNull); | 5929 expect(statement.rightParenthesis, isNotNull); |
| 5930 expect(statement.body, isNotNull); | 5930 expect(statement.body, isNotNull); |
| 5931 } | 5931 } |
| 5932 | 5932 |
| 5933 void test_parseForStatement_each_type() { | 5933 void test_parseForStatement_each_type() { |
| 5934 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(A element in list) {}", []); | 5934 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(A element in list) {}", []); |
| 5935 expect(statement.awaitKeyword, isNull); | 5935 expect(statement.awaitKeyword, isNull); |
| 5936 expect(statement.forKeyword, isNotNull); | 5936 expect(statement.forKeyword, isNotNull); |
| 5937 expect(statement.leftParenthesis, isNotNull); | 5937 expect(statement.leftParenthesis, isNotNull); |
| 5938 expect(statement.loopVariable, isNotNull); | 5938 expect(statement.loopVariable, isNotNull); |
| 5939 expect(statement.identifier, isNull); | 5939 expect(statement.identifier, isNull); |
| 5940 expect(statement.inKeyword, isNotNull); | 5940 expect(statement.inKeyword, isNotNull); |
| 5941 expect(statement.iterator, isNotNull); | 5941 expect(statement.iterable, isNotNull); |
| 5942 expect(statement.rightParenthesis, isNotNull); | 5942 expect(statement.rightParenthesis, isNotNull); |
| 5943 expect(statement.body, isNotNull); | 5943 expect(statement.body, isNotNull); |
| 5944 } | 5944 } |
| 5945 | 5945 |
| 5946 void test_parseForStatement_each_var() { | 5946 void test_parseForStatement_each_var() { |
| 5947 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(var element in list) {}", []); | 5947 ForEachStatement statement = ParserTestCase.parse4("parseForStatement", "for
(var element in list) {}", []); |
| 5948 expect(statement.awaitKeyword, isNull); | 5948 expect(statement.awaitKeyword, isNull); |
| 5949 expect(statement.forKeyword, isNotNull); | 5949 expect(statement.forKeyword, isNotNull); |
| 5950 expect(statement.leftParenthesis, isNotNull); | 5950 expect(statement.leftParenthesis, isNotNull); |
| 5951 expect(statement.loopVariable, isNotNull); | 5951 expect(statement.loopVariable, isNotNull); |
| 5952 expect(statement.identifier, isNull); | 5952 expect(statement.identifier, isNull); |
| 5953 expect(statement.inKeyword, isNotNull); | 5953 expect(statement.inKeyword, isNotNull); |
| 5954 expect(statement.iterator, isNotNull); | 5954 expect(statement.iterable, isNotNull); |
| 5955 expect(statement.rightParenthesis, isNotNull); | 5955 expect(statement.rightParenthesis, isNotNull); |
| 5956 expect(statement.body, isNotNull); | 5956 expect(statement.body, isNotNull); |
| 5957 } | 5957 } |
| 5958 | 5958 |
| 5959 void test_parseForStatement_loop_c() { | 5959 void test_parseForStatement_loop_c() { |
| 5960 ForStatement statement = ParserTestCase.parse4("parseForStatement", "for (;
i < count;) {}", []); | 5960 ForStatement statement = ParserTestCase.parse4("parseForStatement", "for (;
i < count;) {}", []); |
| 5961 expect(statement.forKeyword, isNotNull); | 5961 expect(statement.forKeyword, isNotNull); |
| 5962 expect(statement.leftParenthesis, isNotNull); | 5962 expect(statement.leftParenthesis, isNotNull); |
| 5963 expect(statement.variables, isNull); | 5963 expect(statement.variables, isNull); |
| 5964 expect(statement.initialization, isNull); | 5964 expect(statement.initialization, isNull); |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8276 main() { | 8276 main() { |
| 8277 groupSep = ' | '; | 8277 groupSep = ' | '; |
| 8278 runReflectiveTests(ComplexParserTest); | 8278 runReflectiveTests(ComplexParserTest); |
| 8279 runReflectiveTests(ErrorParserTest); | 8279 runReflectiveTests(ErrorParserTest); |
| 8280 runReflectiveTests(IncrementalParserTest); | 8280 runReflectiveTests(IncrementalParserTest); |
| 8281 runReflectiveTests(NonErrorParserTest); | 8281 runReflectiveTests(NonErrorParserTest); |
| 8282 runReflectiveTests(RecoveryParserTest); | 8282 runReflectiveTests(RecoveryParserTest); |
| 8283 runReflectiveTests(ResolutionCopierTest); | 8283 runReflectiveTests(ResolutionCopierTest); |
| 8284 runReflectiveTests(SimpleParserTest); | 8284 runReflectiveTests(SimpleParserTest); |
| 8285 } | 8285 } |
| OLD | NEW |