Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 263913003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 3803 matching lines...) Expand 10 before | Expand all | Expand 10 after
3814 } 3814 }
3815 3815
3816 void test_logicalOrExpression_precedence_logicalAnd_right() { 3816 void test_logicalOrExpression_precedence_logicalAnd_right() {
3817 BinaryExpression expression = ParserTestCase.parseExpression("|| &&", [ 3817 BinaryExpression expression = ParserTestCase.parseExpression("|| &&", [
3818 ParserErrorCode.MISSING_IDENTIFIER, 3818 ParserErrorCode.MISSING_IDENTIFIER,
3819 ParserErrorCode.MISSING_IDENTIFIER, 3819 ParserErrorCode.MISSING_IDENTIFIER,
3820 ParserErrorCode.MISSING_IDENTIFIER]); 3820 ParserErrorCode.MISSING_IDENTIFIER]);
3821 EngineTestCase.assertInstanceOf((obj) => obj is BinaryExpression, BinaryExpr ession, expression.rightOperand); 3821 EngineTestCase.assertInstanceOf((obj) => obj is BinaryExpression, BinaryExpr ession, expression.rightOperand);
3822 } 3822 }
3823 3823
3824 void test_missingGet() {
3825 CompilationUnit unit = ParserTestCase.parseCompilationUnit(EngineTestCase.cr eateSource(["class C {", " int length {}", " void foo() {}", "}"]), [ParserErr orCode.MISSING_GET]);
3826 JUnitTestCase.assertNotNull(unit);
3827 ClassDeclaration classDeclaration = unit.declarations[0] as ClassDeclaration ;
3828 NodeList<ClassMember> members = classDeclaration.members;
3829 EngineTestCase.assertSizeOfList(2, members);
3830 EngineTestCase.assertInstanceOf((obj) => obj is MethodDeclaration, MethodDec laration, members[0]);
3831 ClassMember member = members[1];
3832 EngineTestCase.assertInstanceOf((obj) => obj is MethodDeclaration, MethodDec laration, member);
3833 JUnitTestCase.assertEquals("foo", (member as MethodDeclaration).name.name);
3834 }
3835
3824 void test_missingIdentifier_afterAnnotation() { 3836 void test_missingIdentifier_afterAnnotation() {
3825 MethodDeclaration method = ParserTestCase.parse3("parseClassMember", <Object > ["C"], "@override }", [ParserErrorCode.EXPECTED_CLASS_MEMBER]); 3837 MethodDeclaration method = ParserTestCase.parse3("parseClassMember", <Object > ["C"], "@override }", [ParserErrorCode.EXPECTED_CLASS_MEMBER]);
3826 JUnitTestCase.assertNull(method.documentationComment); 3838 JUnitTestCase.assertNull(method.documentationComment);
3827 NodeList<Annotation> metadata = method.metadata; 3839 NodeList<Annotation> metadata = method.metadata;
3828 EngineTestCase.assertSizeOfList(1, metadata); 3840 EngineTestCase.assertSizeOfList(1, metadata);
3829 JUnitTestCase.assertEquals("override", metadata[0].name.name); 3841 JUnitTestCase.assertEquals("override", metadata[0].name.name);
3830 } 3842 }
3831 3843
3832 void test_multiplicativeExpression_missing_LHS() { 3844 void test_multiplicativeExpression_missing_LHS() {
3833 BinaryExpression expression = ParserTestCase.parseExpression("* y", [ParserE rrorCode.MISSING_IDENTIFIER]); 3845 BinaryExpression expression = ParserTestCase.parseExpression("* y", [ParserE rrorCode.MISSING_IDENTIFIER]);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
3875 EngineTestCase.assertInstanceOf((obj) => obj is BinaryExpression, BinaryExpr ession, expression.leftOperand); 3887 EngineTestCase.assertInstanceOf((obj) => obj is BinaryExpression, BinaryExpr ession, expression.leftOperand);
3876 } 3888 }
3877 3889
3878 void test_prefixExpression_missing_operand_minus() { 3890 void test_prefixExpression_missing_operand_minus() {
3879 PrefixExpression expression = ParserTestCase.parseExpression("-", [ParserErr orCode.MISSING_IDENTIFIER]); 3891 PrefixExpression expression = ParserTestCase.parseExpression("-", [ParserErr orCode.MISSING_IDENTIFIER]);
3880 EngineTestCase.assertInstanceOf((obj) => obj is SimpleIdentifier, SimpleIden tifier, expression.operand); 3892 EngineTestCase.assertInstanceOf((obj) => obj is SimpleIdentifier, SimpleIden tifier, expression.operand);
3881 JUnitTestCase.assertTrue(expression.operand.isSynthetic); 3893 JUnitTestCase.assertTrue(expression.operand.isSynthetic);
3882 JUnitTestCase.assertEquals(TokenType.MINUS, expression.operator.type); 3894 JUnitTestCase.assertEquals(TokenType.MINUS, expression.operator.type);
3883 } 3895 }
3884 3896
3897 void test_primaryExpression_argumentDefinitionTest() {
3898 Expression expression = ParserTestCase.parse4("parsePrimaryExpression", "?a" , [ParserErrorCode.UNEXPECTED_TOKEN]);
3899 EngineTestCase.assertInstanceOf((obj) => obj is SimpleIdentifier, SimpleIden tifier, expression);
3900 }
3901
3885 void test_relationalExpression_missing_LHS() { 3902 void test_relationalExpression_missing_LHS() {
3886 IsExpression expression = ParserTestCase.parseExpression("is y", [ParserErro rCode.MISSING_IDENTIFIER]); 3903 IsExpression expression = ParserTestCase.parseExpression("is y", [ParserErro rCode.MISSING_IDENTIFIER]);
3887 EngineTestCase.assertInstanceOf((obj) => obj is SimpleIdentifier, SimpleIden tifier, expression.expression); 3904 EngineTestCase.assertInstanceOf((obj) => obj is SimpleIdentifier, SimpleIden tifier, expression.expression);
3888 JUnitTestCase.assertTrue(expression.expression.isSynthetic); 3905 JUnitTestCase.assertTrue(expression.expression.isSynthetic);
3889 } 3906 }
3890 3907
3891 void test_relationalExpression_missing_LHS_RHS() { 3908 void test_relationalExpression_missing_LHS_RHS() {
3892 IsExpression expression = ParserTestCase.parseExpression("is", [ 3909 IsExpression expression = ParserTestCase.parseExpression("is", [
3893 ParserErrorCode.EXPECTED_TYPE_NAME, 3910 ParserErrorCode.EXPECTED_TYPE_NAME,
3894 ParserErrorCode.MISSING_IDENTIFIER]); 3911 ParserErrorCode.MISSING_IDENTIFIER]);
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
4204 runJUnitTest(__test, __test.test_logicalOrExpression_missing_RHS); 4221 runJUnitTest(__test, __test.test_logicalOrExpression_missing_RHS);
4205 }); 4222 });
4206 _ut.test('test_logicalOrExpression_precedence_logicalAnd_left', () { 4223 _ut.test('test_logicalOrExpression_precedence_logicalAnd_left', () {
4207 final __test = new RecoveryParserTest(); 4224 final __test = new RecoveryParserTest();
4208 runJUnitTest(__test, __test.test_logicalOrExpression_precedence_logicalA nd_left); 4225 runJUnitTest(__test, __test.test_logicalOrExpression_precedence_logicalA nd_left);
4209 }); 4226 });
4210 _ut.test('test_logicalOrExpression_precedence_logicalAnd_right', () { 4227 _ut.test('test_logicalOrExpression_precedence_logicalAnd_right', () {
4211 final __test = new RecoveryParserTest(); 4228 final __test = new RecoveryParserTest();
4212 runJUnitTest(__test, __test.test_logicalOrExpression_precedence_logicalA nd_right); 4229 runJUnitTest(__test, __test.test_logicalOrExpression_precedence_logicalA nd_right);
4213 }); 4230 });
4231 _ut.test('test_missingGet', () {
4232 final __test = new RecoveryParserTest();
4233 runJUnitTest(__test, __test.test_missingGet);
4234 });
4214 _ut.test('test_missingIdentifier_afterAnnotation', () { 4235 _ut.test('test_missingIdentifier_afterAnnotation', () {
4215 final __test = new RecoveryParserTest(); 4236 final __test = new RecoveryParserTest();
4216 runJUnitTest(__test, __test.test_missingIdentifier_afterAnnotation); 4237 runJUnitTest(__test, __test.test_missingIdentifier_afterAnnotation);
4217 }); 4238 });
4218 _ut.test('test_multiplicativeExpression_missing_LHS', () { 4239 _ut.test('test_multiplicativeExpression_missing_LHS', () {
4219 final __test = new RecoveryParserTest(); 4240 final __test = new RecoveryParserTest();
4220 runJUnitTest(__test, __test.test_multiplicativeExpression_missing_LHS); 4241 runJUnitTest(__test, __test.test_multiplicativeExpression_missing_LHS);
4221 }); 4242 });
4222 _ut.test('test_multiplicativeExpression_missing_LHS_RHS', () { 4243 _ut.test('test_multiplicativeExpression_missing_LHS_RHS', () {
4223 final __test = new RecoveryParserTest(); 4244 final __test = new RecoveryParserTest();
(...skipping 16 matching lines...) Expand all
4240 runJUnitTest(__test, __test.test_multiplicativeExpression_precedence_una ry_right); 4261 runJUnitTest(__test, __test.test_multiplicativeExpression_precedence_una ry_right);
4241 }); 4262 });
4242 _ut.test('test_multiplicativeExpression_super', () { 4263 _ut.test('test_multiplicativeExpression_super', () {
4243 final __test = new RecoveryParserTest(); 4264 final __test = new RecoveryParserTest();
4244 runJUnitTest(__test, __test.test_multiplicativeExpression_super); 4265 runJUnitTest(__test, __test.test_multiplicativeExpression_super);
4245 }); 4266 });
4246 _ut.test('test_prefixExpression_missing_operand_minus', () { 4267 _ut.test('test_prefixExpression_missing_operand_minus', () {
4247 final __test = new RecoveryParserTest(); 4268 final __test = new RecoveryParserTest();
4248 runJUnitTest(__test, __test.test_prefixExpression_missing_operand_minus) ; 4269 runJUnitTest(__test, __test.test_prefixExpression_missing_operand_minus) ;
4249 }); 4270 });
4271 _ut.test('test_primaryExpression_argumentDefinitionTest', () {
4272 final __test = new RecoveryParserTest();
4273 runJUnitTest(__test, __test.test_primaryExpression_argumentDefinitionTes t);
4274 });
4250 _ut.test('test_relationalExpression_missing_LHS', () { 4275 _ut.test('test_relationalExpression_missing_LHS', () {
4251 final __test = new RecoveryParserTest(); 4276 final __test = new RecoveryParserTest();
4252 runJUnitTest(__test, __test.test_relationalExpression_missing_LHS); 4277 runJUnitTest(__test, __test.test_relationalExpression_missing_LHS);
4253 }); 4278 });
4254 _ut.test('test_relationalExpression_missing_LHS_RHS', () { 4279 _ut.test('test_relationalExpression_missing_LHS_RHS', () {
4255 final __test = new RecoveryParserTest(); 4280 final __test = new RecoveryParserTest();
4256 runJUnitTest(__test, __test.test_relationalExpression_missing_LHS_RHS); 4281 runJUnitTest(__test, __test.test_relationalExpression_missing_LHS_RHS);
4257 }); 4282 });
4258 _ut.test('test_relationalExpression_missing_RHS', () { 4283 _ut.test('test_relationalExpression_missing_RHS', () {
4259 final __test = new RecoveryParserTest(); 4284 final __test = new RecoveryParserTest();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
4303 void test_visitAnnotation() { 4328 void test_visitAnnotation() {
4304 String annotationName = "proxy"; 4329 String annotationName = "proxy";
4305 Annotation fromNode = AstFactory.annotation(AstFactory.identifier3(annotatio nName)); 4330 Annotation fromNode = AstFactory.annotation(AstFactory.identifier3(annotatio nName));
4306 Element element = ElementFactory.topLevelVariableElement2(annotationName); 4331 Element element = ElementFactory.topLevelVariableElement2(annotationName);
4307 fromNode.element = element; 4332 fromNode.element = element;
4308 Annotation toNode = AstFactory.annotation(AstFactory.identifier3(annotationN ame)); 4333 Annotation toNode = AstFactory.annotation(AstFactory.identifier3(annotationN ame));
4309 ResolutionCopier.copyResolutionData(fromNode, toNode); 4334 ResolutionCopier.copyResolutionData(fromNode, toNode);
4310 JUnitTestCase.assertSame(element, toNode.element); 4335 JUnitTestCase.assertSame(element, toNode.element);
4311 } 4336 }
4312 4337
4313 void test_visitArgumentDefinitionTest() {
4314 String identifier = "p";
4315 ArgumentDefinitionTest fromNode = AstFactory.argumentDefinitionTest(identifi er);
4316 DartType propagatedType = ElementFactory.classElement2("A", []).type;
4317 fromNode.propagatedType = propagatedType;
4318 DartType staticType = ElementFactory.classElement2("B", []).type;
4319 fromNode.staticType = staticType;
4320 ArgumentDefinitionTest toNode = AstFactory.argumentDefinitionTest(identifier );
4321 ResolutionCopier.copyResolutionData(fromNode, toNode);
4322 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
4323 JUnitTestCase.assertSame(staticType, toNode.staticType);
4324 }
4325
4326 void test_visitAsExpression() { 4338 void test_visitAsExpression() {
4327 AsExpression fromNode = AstFactory.asExpression(AstFactory.identifier3("x"), AstFactory.typeName4("A", [])); 4339 AsExpression fromNode = AstFactory.asExpression(AstFactory.identifier3("x"), AstFactory.typeName4("A", []));
4328 DartType propagatedType = ElementFactory.classElement2("A", []).type; 4340 DartType propagatedType = ElementFactory.classElement2("A", []).type;
4329 fromNode.propagatedType = propagatedType; 4341 fromNode.propagatedType = propagatedType;
4330 DartType staticType = ElementFactory.classElement2("B", []).type; 4342 DartType staticType = ElementFactory.classElement2("B", []).type;
4331 fromNode.staticType = staticType; 4343 fromNode.staticType = staticType;
4332 AsExpression toNode = AstFactory.asExpression(AstFactory.identifier3("x"), A stFactory.typeName4("A", [])); 4344 AsExpression toNode = AstFactory.asExpression(AstFactory.identifier3("x"), A stFactory.typeName4("A", []));
4333 ResolutionCopier.copyResolutionData(fromNode, toNode); 4345 ResolutionCopier.copyResolutionData(fromNode, toNode);
4334 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType); 4346 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
4335 JUnitTestCase.assertSame(staticType, toNode.staticType); 4347 JUnitTestCase.assertSame(staticType, toNode.staticType);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
4484 fromNode.staticType = staticType; 4496 fromNode.staticType = staticType;
4485 FunctionExpressionInvocation toNode = AstFactory.functionExpressionInvocatio n(AstFactory.identifier3("f"), []); 4497 FunctionExpressionInvocation toNode = AstFactory.functionExpressionInvocatio n(AstFactory.identifier3("f"), []);
4486 ResolutionCopier.copyResolutionData(fromNode, toNode); 4498 ResolutionCopier.copyResolutionData(fromNode, toNode);
4487 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement); 4499 JUnitTestCase.assertSame(propagatedElement, toNode.propagatedElement);
4488 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType); 4500 JUnitTestCase.assertSame(propagatedType, toNode.propagatedType);
4489 JUnitTestCase.assertSame(staticElement, toNode.staticElement); 4501 JUnitTestCase.assertSame(staticElement, toNode.staticElement);
4490 JUnitTestCase.assertSame(staticType, toNode.staticType); 4502 JUnitTestCase.assertSame(staticType, toNode.staticType);
4491 } 4503 }
4492 4504
4493 void test_visitImportDirective() { 4505 void test_visitImportDirective() {
4494 ImportDirective fromNode = AstFactory.importDirective2("dart:uri", null, []) ; 4506 ImportDirective fromNode = AstFactory.importDirective3("dart:uri", null, []) ;
4495 ImportElement element = new ImportElementImpl(0); 4507 ImportElement element = new ImportElementImpl(0);
4496 fromNode.element = element; 4508 fromNode.element = element;
4497 ImportDirective toNode = AstFactory.importDirective2("dart:uri", null, []); 4509 ImportDirective toNode = AstFactory.importDirective3("dart:uri", null, []);
4498 ResolutionCopier.copyResolutionData(fromNode, toNode); 4510 ResolutionCopier.copyResolutionData(fromNode, toNode);
4499 JUnitTestCase.assertSame(element, toNode.element); 4511 JUnitTestCase.assertSame(element, toNode.element);
4500 } 4512 }
4501 4513
4502 void test_visitIndexExpression() { 4514 void test_visitIndexExpression() {
4503 IndexExpression fromNode = AstFactory.indexExpression(AstFactory.identifier3 ("a"), AstFactory.integer(0)); 4515 IndexExpression fromNode = AstFactory.indexExpression(AstFactory.identifier3 ("a"), AstFactory.integer(0));
4504 MethodElement propagatedElement = ElementFactory.methodElement("m", ElementF actory.classElement2("C", []).type, []); 4516 MethodElement propagatedElement = ElementFactory.methodElement("m", ElementF actory.classElement2("C", []).type, []);
4505 MethodElement staticElement = ElementFactory.methodElement("m", ElementFacto ry.classElement2("C", []).type, []); 4517 MethodElement staticElement = ElementFactory.methodElement("m", ElementFacto ry.classElement2("C", []).type, []);
4506 AuxiliaryElements auxiliaryElements = new AuxiliaryElements(staticElement, p ropagatedElement); 4518 AuxiliaryElements auxiliaryElements = new AuxiliaryElements(staticElement, p ropagatedElement);
4507 fromNode.auxiliaryElements = auxiliaryElements; 4519 fromNode.auxiliaryElements = auxiliaryElements;
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
4853 ResolutionCopier.copyResolutionData(fromNode, toNode); 4865 ResolutionCopier.copyResolutionData(fromNode, toNode);
4854 JUnitTestCase.assertSame(type, toNode.type); 4866 JUnitTestCase.assertSame(type, toNode.type);
4855 } 4867 }
4856 4868
4857 static dartSuite() { 4869 static dartSuite() {
4858 _ut.group('ResolutionCopierTest', () { 4870 _ut.group('ResolutionCopierTest', () {
4859 _ut.test('test_visitAnnotation', () { 4871 _ut.test('test_visitAnnotation', () {
4860 final __test = new ResolutionCopierTest(); 4872 final __test = new ResolutionCopierTest();
4861 runJUnitTest(__test, __test.test_visitAnnotation); 4873 runJUnitTest(__test, __test.test_visitAnnotation);
4862 }); 4874 });
4863 _ut.test('test_visitArgumentDefinitionTest', () {
4864 final __test = new ResolutionCopierTest();
4865 runJUnitTest(__test, __test.test_visitArgumentDefinitionTest);
4866 });
4867 _ut.test('test_visitAsExpression', () { 4875 _ut.test('test_visitAsExpression', () {
4868 final __test = new ResolutionCopierTest(); 4876 final __test = new ResolutionCopierTest();
4869 runJUnitTest(__test, __test.test_visitAsExpression); 4877 runJUnitTest(__test, __test.test_visitAsExpression);
4870 }); 4878 });
4871 _ut.test('test_visitAssignmentExpression', () { 4879 _ut.test('test_visitAssignmentExpression', () {
4872 final __test = new ResolutionCopierTest(); 4880 final __test = new ResolutionCopierTest();
4873 runJUnitTest(__test, __test.test_visitAssignmentExpression); 4881 runJUnitTest(__test, __test.test_visitAssignmentExpression);
4874 }); 4882 });
4875 _ut.test('test_visitBinaryExpression', () { 4883 _ut.test('test_visitBinaryExpression', () {
4876 final __test = new ResolutionCopierTest(); 4884 final __test = new ResolutionCopierTest();
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
5415 JUnitTestCase.assertNotNull(name.colon); 5423 JUnitTestCase.assertNotNull(name.colon);
5416 JUnitTestCase.assertNotNull(expression.expression); 5424 JUnitTestCase.assertNotNull(expression.expression);
5417 } 5425 }
5418 5426
5419 void test_parseArgument_unnamed() { 5427 void test_parseArgument_unnamed() {
5420 String lexeme = "x"; 5428 String lexeme = "x";
5421 SimpleIdentifier identifier = ParserTestCase.parse4("parseArgument", lexeme, []); 5429 SimpleIdentifier identifier = ParserTestCase.parse4("parseArgument", lexeme, []);
5422 JUnitTestCase.assertEquals(lexeme, identifier.name); 5430 JUnitTestCase.assertEquals(lexeme, identifier.name);
5423 } 5431 }
5424 5432
5425 void test_parseArgumentDefinitionTest() {
5426 ArgumentDefinitionTest test = ParserTestCase.parse4("parseArgumentDefinition Test", "?x", [ParserErrorCode.DEPRECATED_ARGUMENT_DEFINITION_TEST]);
5427 JUnitTestCase.assertNotNull(test.question);
5428 JUnitTestCase.assertNotNull(test.identifier);
5429 }
5430
5431 void test_parseArgumentList_empty() { 5433 void test_parseArgumentList_empty() {
5432 ArgumentList argumentList = ParserTestCase.parse4("parseArgumentList", "()", []); 5434 ArgumentList argumentList = ParserTestCase.parse4("parseArgumentList", "()", []);
5433 NodeList<Expression> arguments = argumentList.arguments; 5435 NodeList<Expression> arguments = argumentList.arguments;
5434 EngineTestCase.assertSizeOfList(0, arguments); 5436 EngineTestCase.assertSizeOfList(0, arguments);
5435 } 5437 }
5436 5438
5437 void test_parseArgumentList_mixed() { 5439 void test_parseArgumentList_mixed() {
5438 ArgumentList argumentList = ParserTestCase.parse4("parseArgumentList", "(w, x, y: y, z: z)", []); 5440 ArgumentList argumentList = ParserTestCase.parse4("parseArgumentList", "(w, x, y: y, z: z)", []);
5439 NodeList<Expression> arguments = argumentList.arguments; 5441 NodeList<Expression> arguments = argumentList.arguments;
5440 EngineTestCase.assertSizeOfList(4, arguments); 5442 EngineTestCase.assertSizeOfList(4, arguments);
(...skipping 4575 matching lines...) Expand 10 before | Expand all | Expand 10 after
10016 runJUnitTest(__test, __test.test_parseAnnotation_n2_a); 10018 runJUnitTest(__test, __test.test_parseAnnotation_n2_a);
10017 }); 10019 });
10018 _ut.test('test_parseAnnotation_n3', () { 10020 _ut.test('test_parseAnnotation_n3', () {
10019 final __test = new SimpleParserTest(); 10021 final __test = new SimpleParserTest();
10020 runJUnitTest(__test, __test.test_parseAnnotation_n3); 10022 runJUnitTest(__test, __test.test_parseAnnotation_n3);
10021 }); 10023 });
10022 _ut.test('test_parseAnnotation_n3_a', () { 10024 _ut.test('test_parseAnnotation_n3_a', () {
10023 final __test = new SimpleParserTest(); 10025 final __test = new SimpleParserTest();
10024 runJUnitTest(__test, __test.test_parseAnnotation_n3_a); 10026 runJUnitTest(__test, __test.test_parseAnnotation_n3_a);
10025 }); 10027 });
10026 _ut.test('test_parseArgumentDefinitionTest', () {
10027 final __test = new SimpleParserTest();
10028 runJUnitTest(__test, __test.test_parseArgumentDefinitionTest);
10029 });
10030 _ut.test('test_parseArgumentList_empty', () { 10028 _ut.test('test_parseArgumentList_empty', () {
10031 final __test = new SimpleParserTest(); 10029 final __test = new SimpleParserTest();
10032 runJUnitTest(__test, __test.test_parseArgumentList_empty); 10030 runJUnitTest(__test, __test.test_parseArgumentList_empty);
10033 }); 10031 });
10034 _ut.test('test_parseArgumentList_mixed', () { 10032 _ut.test('test_parseArgumentList_mixed', () {
10035 final __test = new SimpleParserTest(); 10033 final __test = new SimpleParserTest();
10036 runJUnitTest(__test, __test.test_parseArgumentList_mixed); 10034 runJUnitTest(__test, __test.test_parseArgumentList_mixed);
10037 }); 10035 });
10038 _ut.test('test_parseArgumentList_noNamed', () { 10036 _ut.test('test_parseArgumentList_noNamed', () {
10039 final __test = new SimpleParserTest(); 10037 final __test = new SimpleParserTest();
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
11961 11959
11962 main() { 11960 main() {
11963 ComplexParserTest.dartSuite(); 11961 ComplexParserTest.dartSuite();
11964 ErrorParserTest.dartSuite(); 11962 ErrorParserTest.dartSuite();
11965 IncrementalParserTest.dartSuite(); 11963 IncrementalParserTest.dartSuite();
11966 NonErrorParserTest.dartSuite(); 11964 NonErrorParserTest.dartSuite();
11967 RecoveryParserTest.dartSuite(); 11965 RecoveryParserTest.dartSuite();
11968 ResolutionCopierTest.dartSuite(); 11966 ResolutionCopierTest.dartSuite();
11969 SimpleParserTest.dartSuite(); 11967 SimpleParserTest.dartSuite();
11970 } 11968 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/element_test.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698