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

Side by Side Diff: tests/utils/dummy_compiler_test.dart

Issue 18670003: Remove support for conflicting constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 5 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 | « tests/language/language_dart2js.status ('k') | no next file » | 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) 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 // VMOptions= 4 // VMOptions=
5 // VMOptions=--print-object-histogram 5 // VMOptions=--print-object-histogram
6 6
7 // Smoke test of the dart2js compiler API. 7 // Smoke test of the dart2js compiler API.
8 library dummy_compiler; 8 library dummy_compiler;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 class JSInt {} 71 class JSInt {}
72 class JSDouble {} 72 class JSDouble {}
73 class JSNumber {} 73 class JSNumber {}
74 class JSNull {} 74 class JSNull {}
75 class JSBool {} 75 class JSBool {}
76 getInterceptor(o){} 76 getInterceptor(o){}
77 getDispatchProperty(o) {} 77 getDispatchProperty(o) {}
78 setDispatchProperty(o, v) {}"""; 78 setDispatchProperty(o, v) {}""";
79 } else if (uri.path.endsWith('js_helper.dart')) { 79 } else if (uri.path.endsWith('js_helper.dart')) {
80 source = 'library jshelper; class JSInvocationMirror {} ' 80 source = 'library jshelper; class JSInvocationMirror {} '
81 'class ConstantMap {} class TypeImpl {}'; 81 'class ConstantMap {} class TypeImpl {} '
82 'createRuntimeType(String name) => null;';
82 } else if (uri.path.endsWith('isolate_helper.dart')) { 83 } else if (uri.path.endsWith('isolate_helper.dart')) {
83 source = 'library isolatehelper; class _WorkerStub {}'; 84 source = 'library isolatehelper; class _WorkerStub {}';
84 } else { 85 } else {
85 source = "library lib;"; 86 source = "library lib;";
86 } 87 }
87 } else { 88 } else {
88 throw "unexpected URI $uri"; 89 throw "unexpected URI $uri";
89 } 90 }
90 return new Future.value(source); 91 return new Future.value(source);
91 } 92 }
(...skipping 13 matching lines...) Expand all
105 new Uri(scheme: 'package', path: '/'), 106 new Uri(scheme: 'package', path: '/'),
106 provider, handler); 107 provider, handler);
107 result.then((String code) { 108 result.then((String code) {
108 if (code == null) { 109 if (code == null) {
109 throw 'Compilation failed'; 110 throw 'Compilation failed';
110 } 111 }
111 }, onError: (e) { 112 }, onError: (e) {
112 throw 'Compilation failed'; 113 throw 'Compilation failed';
113 }); 114 });
114 } 115 }
OLDNEW
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698