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

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

Issue 243263004: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 static CascadeExpression cascadeExpression(Expression target, List<Expression> cascadeSections) => new CascadeExpression(target, list(cascadeSections)); 362 static CascadeExpression cascadeExpression(Expression target, List<Expression> cascadeSections) => new CascadeExpression(target, list(cascadeSections));
363 363
364 static CatchClause catchClause(String exceptionParameter, List<Statement> stat ements) => catchClause5(null, exceptionParameter, null, statements); 364 static CatchClause catchClause(String exceptionParameter, List<Statement> stat ements) => catchClause5(null, exceptionParameter, null, statements);
365 365
366 static CatchClause catchClause2(String exceptionParameter, String stackTracePa rameter, List<Statement> statements) => catchClause5(null, exceptionParameter, s tackTraceParameter, statements); 366 static CatchClause catchClause2(String exceptionParameter, String stackTracePa rameter, List<Statement> statements) => catchClause5(null, exceptionParameter, s tackTraceParameter, statements);
367 367
368 static CatchClause catchClause3(TypeName exceptionType, List<Statement> statem ents) => catchClause5(exceptionType, null, null, statements); 368 static CatchClause catchClause3(TypeName exceptionType, List<Statement> statem ents) => catchClause5(exceptionType, null, null, statements);
369 369
370 static CatchClause catchClause4(TypeName exceptionType, String exceptionParame ter, List<Statement> statements) => catchClause5(exceptionType, exceptionParamet er, null, statements); 370 static CatchClause catchClause4(TypeName exceptionType, String exceptionParame ter, List<Statement> statements) => catchClause5(exceptionType, exceptionParamet er, null, statements);
371 371
372 static CatchClause catchClause5(TypeName exceptionType, String exceptionParame ter, String stackTraceParameter, List<Statement> statements) => new CatchClause( exceptionType == null ? null : TokenFactory.tokenFromTypeAndString(TokenType.IDE NTIFIER, "on"), exceptionType, exceptionParameter == null ? null : TokenFactory. tokenFromKeyword(Keyword.CATCH), exceptionParameter == null ? null : TokenFactor y.tokenFromType(TokenType.OPEN_PAREN), identifier3(exceptionParameter), stackTra ceParameter == null ? null : TokenFactory.tokenFromType(TokenType.COMMA), stackT raceParameter == null ? null : identifier3(stackTraceParameter), exceptionParame ter == null ? null : TokenFactory.tokenFromType(TokenType.CLOSE_PAREN), block(st atements)); 372 static CatchClause catchClause5(TypeName exceptionType, String exceptionParame ter, String stackTraceParameter, List<Statement> statements) => new CatchClause( exceptionType == null ? null : TokenFactory.tokenFromTypeAndString(TokenType.IDE NTIFIER, "on"), exceptionType, exceptionParameter == null ? null : TokenFactory. tokenFromKeyword(Keyword.CATCH), exceptionParameter == null ? null : TokenFactor y.tokenFromType(TokenType.OPEN_PAREN), exceptionParameter == null ? null : ident ifier3(exceptionParameter), stackTraceParameter == null ? null : TokenFactory.to kenFromType(TokenType.COMMA), stackTraceParameter == null ? null : identifier3(s tackTraceParameter), exceptionParameter == null ? null : TokenFactory.tokenFromT ype(TokenType.CLOSE_PAREN), block(statements));
373 373
374 static ClassDeclaration classDeclaration(Keyword abstractKeyword, String name, TypeParameterList typeParameters, ExtendsClause extendsClause, WithClause withC lause, ImplementsClause implementsClause, List<ClassMember> members) => new Clas sDeclaration(null, null, abstractKeyword == null ? null : TokenFactory.tokenFrom Keyword(abstractKeyword), TokenFactory.tokenFromKeyword(Keyword.CLASS), identifi er3(name), typeParameters, extendsClause, withClause, implementsClause, TokenFac tory.tokenFromType(TokenType.OPEN_CURLY_BRACKET), list(members), TokenFactory.to kenFromType(TokenType.CLOSE_CURLY_BRACKET)); 374 static ClassDeclaration classDeclaration(Keyword abstractKeyword, String name, TypeParameterList typeParameters, ExtendsClause extendsClause, WithClause withC lause, ImplementsClause implementsClause, List<ClassMember> members) => new Clas sDeclaration(null, null, abstractKeyword == null ? null : TokenFactory.tokenFrom Keyword(abstractKeyword), TokenFactory.tokenFromKeyword(Keyword.CLASS), identifi er3(name), typeParameters, extendsClause, withClause, implementsClause, TokenFac tory.tokenFromType(TokenType.OPEN_CURLY_BRACKET), list(members), TokenFactory.to kenFromType(TokenType.CLOSE_CURLY_BRACKET));
375 375
376 static ClassTypeAlias classTypeAlias(String name, TypeParameterList typeParame ters, Keyword abstractKeyword, TypeName superclass, WithClause withClause, Imple mentsClause implementsClause) => new ClassTypeAlias(null, null, TokenFactory.tok enFromKeyword(Keyword.CLASS), identifier3(name), typeParameters, TokenFactory.to kenFromType(TokenType.EQ), abstractKeyword == null ? null : TokenFactory.tokenFr omKeyword(abstractKeyword), superclass, withClause, implementsClause, TokenFacto ry.tokenFromType(TokenType.SEMICOLON)); 376 static ClassTypeAlias classTypeAlias(String name, TypeParameterList typeParame ters, Keyword abstractKeyword, TypeName superclass, WithClause withClause, Imple mentsClause implementsClause) => new ClassTypeAlias(null, null, TokenFactory.tok enFromKeyword(Keyword.CLASS), identifier3(name), typeParameters, TokenFactory.to kenFromType(TokenType.EQ), abstractKeyword == null ? null : TokenFactory.tokenFr omKeyword(abstractKeyword), superclass, withClause, implementsClause, TokenFacto ry.tokenFromType(TokenType.SEMICOLON));
377 377
378 static CompilationUnit compilationUnit() => compilationUnit8(null, null, null) ; 378 static CompilationUnit compilationUnit() => compilationUnit8(null, null, null) ;
379 379
380 static CompilationUnit compilationUnit2(List<CompilationUnitMember> declaratio ns) => compilationUnit8(null, null, list(declarations)); 380 static CompilationUnit compilationUnit2(List<CompilationUnitMember> declaratio ns) => compilationUnit8(null, null, list(declarations));
381 381
382 static CompilationUnit compilationUnit3(List<Directive> directives) => compila tionUnit8(null, list(directives), null); 382 static CompilationUnit compilationUnit3(List<Directive> directives) => compila tionUnit8(null, list(directives), null);
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 } 2401 }
2402 2402
2403 void test_visitFieldFormalParameter_keywordAndType() { 2403 void test_visitFieldFormalParameter_keywordAndType() {
2404 _assertSource("final A this.a", AstFactory.fieldFormalParameter(Keyword.FINA L, AstFactory.typeName4("A", []), "a")); 2404 _assertSource("final A this.a", AstFactory.fieldFormalParameter(Keyword.FINA L, AstFactory.typeName4("A", []), "a"));
2405 } 2405 }
2406 2406
2407 void test_visitFieldFormalParameter_type() { 2407 void test_visitFieldFormalParameter_type() {
2408 _assertSource("A this.a", AstFactory.fieldFormalParameter(null, AstFactory.t ypeName4("A", []), "a")); 2408 _assertSource("A this.a", AstFactory.fieldFormalParameter(null, AstFactory.t ypeName4("A", []), "a"));
2409 } 2409 }
2410 2410
2411 void test_visitForEachStatement() { 2411 void test_visitForEachStatement_declared() {
2412 _assertSource("for (a in b) {}", AstFactory.forEachStatement(AstFactory.decl aredIdentifier3("a"), AstFactory.identifier3("b"), AstFactory.block([]))); 2412 _assertSource("for (a in b) {}", AstFactory.forEachStatement(AstFactory.decl aredIdentifier3("a"), AstFactory.identifier3("b"), AstFactory.block([])));
2413 } 2413 }
2414 2414
2415 void test_visitForEachStatement_variable() {
2416 _assertSource("for (a in b) {}", new ForEachStatement.con2(TokenFactory.toke nFromKeyword(Keyword.FOR), TokenFactory.tokenFromType(TokenType.OPEN_PAREN), Ast Factory.identifier3("a"), TokenFactory.tokenFromKeyword(Keyword.IN), AstFactory. identifier3("b"), TokenFactory.tokenFromType(TokenType.CLOSE_PAREN), AstFactory. block([])));
2417 }
2418
2415 void test_visitFormalParameterList_empty() { 2419 void test_visitFormalParameterList_empty() {
2416 _assertSource("()", AstFactory.formalParameterList([])); 2420 _assertSource("()", AstFactory.formalParameterList([]));
2417 } 2421 }
2418 2422
2419 void test_visitFormalParameterList_n() { 2423 void test_visitFormalParameterList_n() {
2420 _assertSource("({a : 0})", AstFactory.formalParameterList([AstFactory.namedF ormalParameter(AstFactory.simpleFormalParameter3("a"), AstFactory.integer(0))])) ; 2424 _assertSource("({a : 0})", AstFactory.formalParameterList([AstFactory.namedF ormalParameter(AstFactory.simpleFormalParameter3("a"), AstFactory.integer(0))])) ;
2421 } 2425 }
2422 2426
2423 void test_visitFormalParameterList_nn() { 2427 void test_visitFormalParameterList_nn() {
2424 _assertSource("({a : 0, b : 1})", AstFactory.formalParameterList([ 2428 _assertSource("({a : 0, b : 1})", AstFactory.formalParameterList([
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
3559 runJUnitTest(__test, __test.test_visitFieldFormalParameter_keyword); 3563 runJUnitTest(__test, __test.test_visitFieldFormalParameter_keyword);
3560 }); 3564 });
3561 _ut.test('test_visitFieldFormalParameter_keywordAndType', () { 3565 _ut.test('test_visitFieldFormalParameter_keywordAndType', () {
3562 final __test = new ToSourceVisitorTest(); 3566 final __test = new ToSourceVisitorTest();
3563 runJUnitTest(__test, __test.test_visitFieldFormalParameter_keywordAndTyp e); 3567 runJUnitTest(__test, __test.test_visitFieldFormalParameter_keywordAndTyp e);
3564 }); 3568 });
3565 _ut.test('test_visitFieldFormalParameter_type', () { 3569 _ut.test('test_visitFieldFormalParameter_type', () {
3566 final __test = new ToSourceVisitorTest(); 3570 final __test = new ToSourceVisitorTest();
3567 runJUnitTest(__test, __test.test_visitFieldFormalParameter_type); 3571 runJUnitTest(__test, __test.test_visitFieldFormalParameter_type);
3568 }); 3572 });
3569 _ut.test('test_visitForEachStatement', () { 3573 _ut.test('test_visitForEachStatement_declared', () {
3570 final __test = new ToSourceVisitorTest(); 3574 final __test = new ToSourceVisitorTest();
3571 runJUnitTest(__test, __test.test_visitForEachStatement); 3575 runJUnitTest(__test, __test.test_visitForEachStatement_declared);
3576 });
3577 _ut.test('test_visitForEachStatement_variable', () {
3578 final __test = new ToSourceVisitorTest();
3579 runJUnitTest(__test, __test.test_visitForEachStatement_variable);
3572 }); 3580 });
3573 _ut.test('test_visitForStatement_c', () { 3581 _ut.test('test_visitForStatement_c', () {
3574 final __test = new ToSourceVisitorTest(); 3582 final __test = new ToSourceVisitorTest();
3575 runJUnitTest(__test, __test.test_visitForStatement_c); 3583 runJUnitTest(__test, __test.test_visitForStatement_c);
3576 }); 3584 });
3577 _ut.test('test_visitForStatement_cu', () { 3585 _ut.test('test_visitForStatement_cu', () {
3578 final __test = new ToSourceVisitorTest(); 3586 final __test = new ToSourceVisitorTest();
3579 runJUnitTest(__test, __test.test_visitForStatement_cu); 3587 runJUnitTest(__test, __test.test_visitForStatement_cu);
3580 }); 3588 });
3581 _ut.test('test_visitForStatement_e', () { 3589 _ut.test('test_visitForStatement_e', () {
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
4239 NodeLocatorTest.dartSuite(); 4247 NodeLocatorTest.dartSuite();
4240 ToSourceVisitorTest.dartSuite(); 4248 ToSourceVisitorTest.dartSuite();
4241 BreadthFirstVisitorTest.dartSuite(); 4249 BreadthFirstVisitorTest.dartSuite();
4242 ClassDeclarationTest.dartSuite(); 4250 ClassDeclarationTest.dartSuite();
4243 IndexExpressionTest.dartSuite(); 4251 IndexExpressionTest.dartSuite();
4244 NodeListTest.dartSuite(); 4252 NodeListTest.dartSuite();
4245 SimpleIdentifierTest.dartSuite(); 4253 SimpleIdentifierTest.dartSuite();
4246 SimpleStringLiteralTest.dartSuite(); 4254 SimpleStringLiteralTest.dartSuite();
4247 VariableDeclarationTest.dartSuite(); 4255 VariableDeclarationTest.dartSuite();
4248 } 4256 }
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