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

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

Issue 147903005: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/resolver_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 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 2154
2155 void test_visitClassDeclaration_parameters_implements() { 2155 void test_visitClassDeclaration_parameters_implements() {
2156 assertSource("class C<E> implements B {}", ASTFactory.classDeclaration(null, "C", ASTFactory.typeParameterList(["E"]), null, null, ASTFactory.implementsClau se([ASTFactory.typeName4("B", [])]), [])); 2156 assertSource("class C<E> implements B {}", ASTFactory.classDeclaration(null, "C", ASTFactory.typeParameterList(["E"]), null, null, ASTFactory.implementsClau se([ASTFactory.typeName4("B", [])]), []));
2157 } 2157 }
2158 2158
2159 void test_visitClassDeclaration_singleMember() { 2159 void test_visitClassDeclaration_singleMember() {
2160 assertSource("class C {var a;}", ASTFactory.classDeclaration(null, "C", null , null, null, null, [ASTFactory.fieldDeclaration2(false, Keyword.VAR, [ASTFactor y.variableDeclaration("a")])])); 2160 assertSource("class C {var a;}", ASTFactory.classDeclaration(null, "C", null , null, null, null, [ASTFactory.fieldDeclaration2(false, Keyword.VAR, [ASTFactor y.variableDeclaration("a")])]));
2161 } 2161 }
2162 2162
2163 void test_visitClassTypeAlias_abstract() { 2163 void test_visitClassTypeAlias_abstract() {
2164 assertSource("class C = abstract S with M1;", ASTFactory.classTypeAlias("C", null, Keyword.ABSTRACT, ASTFactory.typeName4("S", []), ASTFactory.withClause([A STFactory.typeName4("M1", [])]), null)); 2164 assertSource("abstract class C = S with M1;", ASTFactory.classTypeAlias("C", null, Keyword.ABSTRACT, ASTFactory.typeName4("S", []), ASTFactory.withClause([A STFactory.typeName4("M1", [])]), null));
2165 } 2165 }
2166 2166
2167 void test_visitClassTypeAlias_abstract_implements() { 2167 void test_visitClassTypeAlias_abstract_implements() {
2168 assertSource("class C = abstract S with M1 implements I;", ASTFactory.classT ypeAlias("C", null, Keyword.ABSTRACT, ASTFactory.typeName4("S", []), ASTFactory. withClause([ASTFactory.typeName4("M1", [])]), ASTFactory.implementsClause([ASTFa ctory.typeName4("I", [])]))); 2168 assertSource("abstract class C = S with M1 implements I;", ASTFactory.classT ypeAlias("C", null, Keyword.ABSTRACT, ASTFactory.typeName4("S", []), ASTFactory. withClause([ASTFactory.typeName4("M1", [])]), ASTFactory.implementsClause([ASTFa ctory.typeName4("I", [])])));
2169 } 2169 }
2170 2170
2171 void test_visitClassTypeAlias_generic() { 2171 void test_visitClassTypeAlias_generic() {
2172 assertSource("class C<E> = S<E> with M1<E>;", ASTFactory.classTypeAlias("C", ASTFactory.typeParameterList(["E"]), null, ASTFactory.typeName4("S", [ASTFactor y.typeName4("E", [])]), ASTFactory.withClause([ASTFactory.typeName4("M1", [ASTFa ctory.typeName4("E", [])])]), null)); 2172 assertSource("class C<E> = S<E> with M1<E>;", ASTFactory.classTypeAlias("C", ASTFactory.typeParameterList(["E"]), null, ASTFactory.typeName4("S", [ASTFactor y.typeName4("E", [])]), ASTFactory.withClause([ASTFactory.typeName4("M1", [ASTFa ctory.typeName4("E", [])])]), null));
2173 } 2173 }
2174 2174
2175 void test_visitClassTypeAlias_implements() { 2175 void test_visitClassTypeAlias_implements() {
2176 assertSource("class C = S with M1 implements I;", ASTFactory.classTypeAlias( "C", null, null, ASTFactory.typeName4("S", []), ASTFactory.withClause([ASTFactor y.typeName4("M1", [])]), ASTFactory.implementsClause([ASTFactory.typeName4("I", [])]))); 2176 assertSource("class C = S with M1 implements I;", ASTFactory.classTypeAlias( "C", null, null, ASTFactory.typeName4("S", []), ASTFactory.withClause([ASTFactor y.typeName4("M1", [])]), ASTFactory.implementsClause([ASTFactory.typeName4("I", [])])));
2177 } 2177 }
2178 2178
2179 void test_visitClassTypeAlias_minimal() { 2179 void test_visitClassTypeAlias_minimal() {
2180 assertSource("class C = S with M1;", ASTFactory.classTypeAlias("C", null, nu ll, ASTFactory.typeName4("S", []), ASTFactory.withClause([ASTFactory.typeName4(" M1", [])]), null)); 2180 assertSource("class C = S with M1;", ASTFactory.classTypeAlias("C", null, nu ll, ASTFactory.typeName4("S", []), ASTFactory.withClause([ASTFactory.typeName4(" M1", [])]), null));
2181 } 2181 }
2182 2182
2183 void test_visitClassTypeAlias_parameters_abstract() { 2183 void test_visitClassTypeAlias_parameters_abstract() {
2184 assertSource("class C<E> = abstract S with M1;", ASTFactory.classTypeAlias(" C", ASTFactory.typeParameterList(["E"]), Keyword.ABSTRACT, ASTFactory.typeName4( "S", []), ASTFactory.withClause([ASTFactory.typeName4("M1", [])]), null)); 2184 assertSource("abstract class C<E> = S with M1;", ASTFactory.classTypeAlias(" C", ASTFactory.typeParameterList(["E"]), Keyword.ABSTRACT, ASTFactory.typeName4( "S", []), ASTFactory.withClause([ASTFactory.typeName4("M1", [])]), null));
2185 } 2185 }
2186 2186
2187 void test_visitClassTypeAlias_parameters_abstract_implements() { 2187 void test_visitClassTypeAlias_parameters_abstract_implements() {
2188 assertSource("class C<E> = abstract S with M1 implements I;", ASTFactory.cla ssTypeAlias("C", ASTFactory.typeParameterList(["E"]), Keyword.ABSTRACT, ASTFacto ry.typeName4("S", []), ASTFactory.withClause([ASTFactory.typeName4("M1", [])]), ASTFactory.implementsClause([ASTFactory.typeName4("I", [])]))); 2188 assertSource("abstract class C<E> = S with M1 implements I;", ASTFactory.cla ssTypeAlias("C", ASTFactory.typeParameterList(["E"]), Keyword.ABSTRACT, ASTFacto ry.typeName4("S", []), ASTFactory.withClause([ASTFactory.typeName4("M1", [])]), ASTFactory.implementsClause([ASTFactory.typeName4("I", [])])));
2189 } 2189 }
2190 2190
2191 void test_visitClassTypeAlias_parameters_implements() { 2191 void test_visitClassTypeAlias_parameters_implements() {
2192 assertSource("class C<E> = S with M1 implements I;", ASTFactory.classTypeAli as("C", ASTFactory.typeParameterList(["E"]), null, ASTFactory.typeName4("S", []) , ASTFactory.withClause([ASTFactory.typeName4("M1", [])]), ASTFactory.implements Clause([ASTFactory.typeName4("I", [])]))); 2192 assertSource("class C<E> = S with M1 implements I;", ASTFactory.classTypeAli as("C", ASTFactory.typeParameterList(["E"]), null, ASTFactory.typeName4("S", []) , ASTFactory.withClause([ASTFactory.typeName4("M1", [])]), ASTFactory.implements Clause([ASTFactory.typeName4("I", [])])));
2193 } 2193 }
2194 2194
2195 void test_visitComment() { 2195 void test_visitComment() {
2196 assertSource("", Comment.createBlockComment(<Token> [TokenFactory.token2("/* comment */")])); 2196 assertSource("", Comment.createBlockComment(<Token> [TokenFactory.token2("/* comment */")]));
2197 } 2197 }
2198 2198
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
4087 NodeLocatorTest.dartSuite(); 4087 NodeLocatorTest.dartSuite();
4088 ToSourceVisitorTest.dartSuite(); 4088 ToSourceVisitorTest.dartSuite();
4089 BreadthFirstVisitorTest.dartSuite(); 4089 BreadthFirstVisitorTest.dartSuite();
4090 ClassDeclarationTest.dartSuite(); 4090 ClassDeclarationTest.dartSuite();
4091 IndexExpressionTest.dartSuite(); 4091 IndexExpressionTest.dartSuite();
4092 NodeListTest.dartSuite(); 4092 NodeListTest.dartSuite();
4093 SimpleIdentifierTest.dartSuite(); 4093 SimpleIdentifierTest.dartSuite();
4094 SimpleStringLiteralTest.dartSuite(); 4094 SimpleStringLiteralTest.dartSuite();
4095 VariableDeclarationTest.dartSuite(); 4095 VariableDeclarationTest.dartSuite();
4096 } 4096 }
OLDNEW
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698