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

Side by Side Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10854158: Make selector registration in the resolver and code generator more explicit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #import('dart:uri'); 5 #import('dart:uri');
6 #import('parser_helper.dart'); 6 #import('parser_helper.dart');
7 #import("../../../lib/compiler/compiler.dart"); 7 #import("../../../lib/compiler/compiler.dart");
8 #import("../../../lib/compiler/implementation/tree/tree.dart"); 8 #import("../../../lib/compiler/implementation/tree/tree.dart");
9 9
10 testUnparse(String statement) { 10 testUnparse(String statement) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // Class member of typedef-ed function type. 187 // Class member of typedef-ed function type.
188 // Maybe typedef should be included in the result too, but it 188 // Maybe typedef should be included in the result too, but it
189 // works fine without it. 189 // works fine without it.
190 testDart2Dart( 190 testDart2Dart(
191 'main(){new A((arg){});}typedef void foofunc(arg);' 191 'main(){new A((arg){});}typedef void foofunc(arg);'
192 'class A{A(foofunc this.handler);final foofunc handler;}'); 192 'class A{A(foofunc this.handler);final foofunc handler;}');
193 } 193 }
194 194
195 testGetSet() { 195 testGetSet() {
196 // Top-level get/set. 196 // Top-level get/set.
197 testDart2Dart('get foo(){return 5;}set foo(arg){}main(){foo; foo=5;}'); 197 testDart2Dart('set foo(arg){}get foo(){return 5;}main(){foo; foo=5;}');
198 // Field get/set. 198 // Field get/set.
199 testDart2Dart('main(){var a=new A(); a.foo; a.foo=5;}' 199 testDart2Dart('main(){var a=new A(); a.foo; a.foo=5;}'
200 'class A{set foo(a){}get foo(){return 5;}}'); 200 'class A{set foo(a){}get foo(){return 5;}}');
201 // Typed get/set. 201 // Typed get/set.
202 testDart2Dart('String get foo(){return "a";}main(){foo;}'); 202 testDart2Dart('String get foo(){return "a";}main(){foo;}');
203 } 203 }
204 204
205 testFactoryConstructor() { 205 testFactoryConstructor() {
206 testDart2Dart('main(){new A.fromFoo();}class A{A.fromFoo();}'); 206 testDart2Dart('main(){new A.fromFoo();}class A{A.fromFoo();}');
207 // Now more complicated, with normal constructor and factory parameters. 207 // Now more complicated, with normal constructor and factory parameters.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 testGetSet(); 407 testGetSet();
408 testFactoryConstructor(); 408 testFactoryConstructor();
409 testAbstractClass(); 409 testAbstractClass();
410 testConflictSendsRename(); 410 testConflictSendsRename();
411 testNoConflictSendsRename(); 411 testNoConflictSendsRename();
412 testConflictLibraryClassRename(); 412 testConflictLibraryClassRename();
413 testDefaultClassWithArgs(); 413 testDefaultClassWithArgs();
414 testClassExtendsWithArgs(); 414 testClassExtendsWithArgs();
415 testStaticInvocation(); 415 testStaticInvocation();
416 } 416 }
OLDNEW
« lib/compiler/implementation/resolver.dart ('K') | « tests/compiler/dart2js/type_checker_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698