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

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

Issue 581733002: New analyzer snaphot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rollback Java changes Created 6 years, 3 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
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | pkg/analyzer/test/generated/element_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.ast_test; 8 library engine.ast_test;
9 9
10 import 'package:analyzer/src/generated/java_core.dart'; 10 import 'package:analyzer/src/generated/java_core.dart';
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 AstFactory.labeledStatement(AstFactory.list([label]), AstFactory.emptyStatem ent()); 1274 AstFactory.labeledStatement(AstFactory.list([label]), AstFactory.emptyStatem ent());
1275 JUnitTestCase.assertTrue(identifier.inDeclarationContext()); 1275 JUnitTestCase.assertTrue(identifier.inDeclarationContext());
1276 } 1276 }
1277 1277
1278 void test_inDeclarationContext_methodDeclaration() { 1278 void test_inDeclarationContext_methodDeclaration() {
1279 SimpleIdentifier identifier = AstFactory.identifier3("m"); 1279 SimpleIdentifier identifier = AstFactory.identifier3("m");
1280 AstFactory.methodDeclaration2(null, null, null, null, identifier, null, null ); 1280 AstFactory.methodDeclaration2(null, null, null, null, identifier, null, null );
1281 JUnitTestCase.assertTrue(identifier.inDeclarationContext()); 1281 JUnitTestCase.assertTrue(identifier.inDeclarationContext());
1282 } 1282 }
1283 1283
1284 void test_inDeclarationContext_prefix() {
1285 SimpleIdentifier identifier = AstFactory.importDirective3("uri", "pref", []) .prefix;
1286 JUnitTestCase.assertTrue(identifier.inDeclarationContext());
1287 }
1288
1284 void test_inDeclarationContext_simpleFormalParameter() { 1289 void test_inDeclarationContext_simpleFormalParameter() {
1285 SimpleIdentifier identifier = AstFactory.simpleFormalParameter3("p").identif ier; 1290 SimpleIdentifier identifier = AstFactory.simpleFormalParameter3("p").identif ier;
1286 JUnitTestCase.assertTrue(identifier.inDeclarationContext()); 1291 JUnitTestCase.assertTrue(identifier.inDeclarationContext());
1287 } 1292 }
1288 1293
1289 void test_inDeclarationContext_typeParameter_bound() { 1294 void test_inDeclarationContext_typeParameter_bound() {
1290 TypeName bound = AstFactory.typeName4("A", []); 1295 TypeName bound = AstFactory.typeName4("A", []);
1291 SimpleIdentifier identifier = bound.name as SimpleIdentifier; 1296 SimpleIdentifier identifier = bound.name as SimpleIdentifier;
1292 AstFactory.typeParameter2("E", bound); 1297 AstFactory.typeParameter2("E", bound);
1293 JUnitTestCase.assertFalse(identifier.inDeclarationContext()); 1298 JUnitTestCase.assertFalse(identifier.inDeclarationContext());
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 runJUnitTest(__test, __test.test_inDeclarationContext_label_false); 1492 runJUnitTest(__test, __test.test_inDeclarationContext_label_false);
1488 }); 1493 });
1489 _ut.test('test_inDeclarationContext_label_true', () { 1494 _ut.test('test_inDeclarationContext_label_true', () {
1490 final __test = new SimpleIdentifierTest(); 1495 final __test = new SimpleIdentifierTest();
1491 runJUnitTest(__test, __test.test_inDeclarationContext_label_true); 1496 runJUnitTest(__test, __test.test_inDeclarationContext_label_true);
1492 }); 1497 });
1493 _ut.test('test_inDeclarationContext_methodDeclaration', () { 1498 _ut.test('test_inDeclarationContext_methodDeclaration', () {
1494 final __test = new SimpleIdentifierTest(); 1499 final __test = new SimpleIdentifierTest();
1495 runJUnitTest(__test, __test.test_inDeclarationContext_methodDeclaration) ; 1500 runJUnitTest(__test, __test.test_inDeclarationContext_methodDeclaration) ;
1496 }); 1501 });
1502 _ut.test('test_inDeclarationContext_prefix', () {
1503 final __test = new SimpleIdentifierTest();
1504 runJUnitTest(__test, __test.test_inDeclarationContext_prefix);
1505 });
1497 _ut.test('test_inDeclarationContext_simpleFormalParameter', () { 1506 _ut.test('test_inDeclarationContext_simpleFormalParameter', () {
1498 final __test = new SimpleIdentifierTest(); 1507 final __test = new SimpleIdentifierTest();
1499 runJUnitTest(__test, __test.test_inDeclarationContext_simpleFormalParame ter); 1508 runJUnitTest(__test, __test.test_inDeclarationContext_simpleFormalParame ter);
1500 }); 1509 });
1501 _ut.test('test_inDeclarationContext_typeParameter_bound', () { 1510 _ut.test('test_inDeclarationContext_typeParameter_bound', () {
1502 final __test = new SimpleIdentifierTest(); 1511 final __test = new SimpleIdentifierTest();
1503 runJUnitTest(__test, __test.test_inDeclarationContext_typeParameter_boun d); 1512 runJUnitTest(__test, __test.test_inDeclarationContext_typeParameter_boun d);
1504 }); 1513 });
1505 _ut.test('test_inDeclarationContext_typeParameter_name', () { 1514 _ut.test('test_inDeclarationContext_typeParameter_name', () {
1506 final __test = new SimpleIdentifierTest(); 1515 final __test = new SimpleIdentifierTest();
(...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after
4033 ToSourceVisitorTest.dartSuite(); 4042 ToSourceVisitorTest.dartSuite();
4034 BreadthFirstVisitorTest.dartSuite(); 4043 BreadthFirstVisitorTest.dartSuite();
4035 ClassDeclarationTest.dartSuite(); 4044 ClassDeclarationTest.dartSuite();
4036 ClassTypeAliasTest.dartSuite(); 4045 ClassTypeAliasTest.dartSuite();
4037 IndexExpressionTest.dartSuite(); 4046 IndexExpressionTest.dartSuite();
4038 NodeListTest.dartSuite(); 4047 NodeListTest.dartSuite();
4039 SimpleIdentifierTest.dartSuite(); 4048 SimpleIdentifierTest.dartSuite();
4040 SimpleStringLiteralTest.dartSuite(); 4049 SimpleStringLiteralTest.dartSuite();
4041 VariableDeclarationTest.dartSuite(); 4050 VariableDeclarationTest.dartSuite();
4042 } 4051 }
OLDNEW
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | pkg/analyzer/test/generated/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698