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/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
(...skipping 9178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9189 } | 9189 } |
9190 | 9190 |
9191 void test_parseSymbolLiteral_single() { | 9191 void test_parseSymbolLiteral_single() { |
9192 SymbolLiteral literal = ParserTestCase.parse4("parseSymbolLiteral", "#a", []
); | 9192 SymbolLiteral literal = ParserTestCase.parse4("parseSymbolLiteral", "#a", []
); |
9193 JUnitTestCase.assertNotNull(literal.poundSign); | 9193 JUnitTestCase.assertNotNull(literal.poundSign); |
9194 List<Token> components = literal.components; | 9194 List<Token> components = literal.components; |
9195 EngineTestCase.assertLength(1, components); | 9195 EngineTestCase.assertLength(1, components); |
9196 JUnitTestCase.assertEquals("a", components[0].lexeme); | 9196 JUnitTestCase.assertEquals("a", components[0].lexeme); |
9197 } | 9197 } |
9198 | 9198 |
| 9199 void test_parseSymbolLiteral_void() { |
| 9200 SymbolLiteral literal = ParserTestCase.parse4("parseSymbolLiteral", "#void",
[]); |
| 9201 JUnitTestCase.assertNotNull(literal.poundSign); |
| 9202 List<Token> components = literal.components; |
| 9203 EngineTestCase.assertLength(1, components); |
| 9204 JUnitTestCase.assertEquals("void", components[0].lexeme); |
| 9205 } |
| 9206 |
9199 void test_parseThrowExpression() { | 9207 void test_parseThrowExpression() { |
9200 ThrowExpression expression = ParserTestCase.parse4("parseThrowExpression", "
throw x;", []); | 9208 ThrowExpression expression = ParserTestCase.parse4("parseThrowExpression", "
throw x;", []); |
9201 JUnitTestCase.assertNotNull(expression.keyword); | 9209 JUnitTestCase.assertNotNull(expression.keyword); |
9202 JUnitTestCase.assertNotNull(expression.expression); | 9210 JUnitTestCase.assertNotNull(expression.expression); |
9203 } | 9211 } |
9204 | 9212 |
9205 void test_parseThrowExpressionWithoutCascade() { | 9213 void test_parseThrowExpressionWithoutCascade() { |
9206 ThrowExpression expression = ParserTestCase.parse4("parseThrowExpressionWith
outCascade", "throw x;", []); | 9214 ThrowExpression expression = ParserTestCase.parse4("parseThrowExpressionWith
outCascade", "throw x;", []); |
9207 JUnitTestCase.assertNotNull(expression.keyword); | 9215 JUnitTestCase.assertNotNull(expression.keyword); |
9208 JUnitTestCase.assertNotNull(expression.expression); | 9216 JUnitTestCase.assertNotNull(expression.expression); |
(...skipping 2720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11929 runJUnitTest(__test, __test.test_parseSymbolLiteral_multiple); | 11937 runJUnitTest(__test, __test.test_parseSymbolLiteral_multiple); |
11930 }); | 11938 }); |
11931 _ut.test('test_parseSymbolLiteral_operator', () { | 11939 _ut.test('test_parseSymbolLiteral_operator', () { |
11932 final __test = new SimpleParserTest(); | 11940 final __test = new SimpleParserTest(); |
11933 runJUnitTest(__test, __test.test_parseSymbolLiteral_operator); | 11941 runJUnitTest(__test, __test.test_parseSymbolLiteral_operator); |
11934 }); | 11942 }); |
11935 _ut.test('test_parseSymbolLiteral_single', () { | 11943 _ut.test('test_parseSymbolLiteral_single', () { |
11936 final __test = new SimpleParserTest(); | 11944 final __test = new SimpleParserTest(); |
11937 runJUnitTest(__test, __test.test_parseSymbolLiteral_single); | 11945 runJUnitTest(__test, __test.test_parseSymbolLiteral_single); |
11938 }); | 11946 }); |
| 11947 _ut.test('test_parseSymbolLiteral_void', () { |
| 11948 final __test = new SimpleParserTest(); |
| 11949 runJUnitTest(__test, __test.test_parseSymbolLiteral_void); |
| 11950 }); |
11939 _ut.test('test_parseThrowExpression', () { | 11951 _ut.test('test_parseThrowExpression', () { |
11940 final __test = new SimpleParserTest(); | 11952 final __test = new SimpleParserTest(); |
11941 runJUnitTest(__test, __test.test_parseThrowExpression); | 11953 runJUnitTest(__test, __test.test_parseThrowExpression); |
11942 }); | 11954 }); |
11943 _ut.test('test_parseThrowExpressionWithoutCascade', () { | 11955 _ut.test('test_parseThrowExpressionWithoutCascade', () { |
11944 final __test = new SimpleParserTest(); | 11956 final __test = new SimpleParserTest(); |
11945 runJUnitTest(__test, __test.test_parseThrowExpressionWithoutCascade); | 11957 runJUnitTest(__test, __test.test_parseThrowExpressionWithoutCascade); |
11946 }); | 11958 }); |
11947 _ut.test('test_parseTryStatement_catch', () { | 11959 _ut.test('test_parseTryStatement_catch', () { |
11948 final __test = new SimpleParserTest(); | 11960 final __test = new SimpleParserTest(); |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12246 | 12258 |
12247 main() { | 12259 main() { |
12248 ComplexParserTest.dartSuite(); | 12260 ComplexParserTest.dartSuite(); |
12249 ErrorParserTest.dartSuite(); | 12261 ErrorParserTest.dartSuite(); |
12250 IncrementalParserTest.dartSuite(); | 12262 IncrementalParserTest.dartSuite(); |
12251 NonErrorParserTest.dartSuite(); | 12263 NonErrorParserTest.dartSuite(); |
12252 RecoveryParserTest.dartSuite(); | 12264 RecoveryParserTest.dartSuite(); |
12253 ResolutionCopierTest.dartSuite(); | 12265 ResolutionCopierTest.dartSuite(); |
12254 SimpleParserTest.dartSuite(); | 12266 SimpleParserTest.dartSuite(); |
12255 } | 12267 } |
OLD | NEW |