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

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

Issue 839323003: Implementation of async-await transformation on js ast. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 5 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 | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/language/asyncstar_yield_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 // Library for creating mock versions of platform and internal libraries. 5 // Library for creating mock versions of platform and internal libraries.
6 6
7 library mock_libraries; 7 library mock_libraries;
8 8
9 String buildLibrarySource( 9 String buildLibrarySource(
10 Map<String, String> elementMap, 10 Map<String, String> elementMap,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 'S': 'S() {}', 202 'S': 'S() {}',
203 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', 203 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}',
204 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', 204 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}',
205 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}', 205 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}',
206 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}', 206 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}',
207 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}', 207 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}',
208 'stringTypeCast': 'stringTypeCast(x) {}', 208 'stringTypeCast': 'stringTypeCast(x) {}',
209 'stringTypeCheck': 'stringTypeCheck(x) {}', 209 'stringTypeCheck': 'stringTypeCheck(x) {}',
210 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}', 210 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}',
211 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}', 211 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}',
212 'thenHelper':
213 'thenHelper(object, helperCallback, completer, errorCallback) {}',
212 'throwAbstractClassInstantiationError': 214 'throwAbstractClassInstantiationError':
213 'throwAbstractClassInstantiationError(className) {}', 215 'throwAbstractClassInstantiationError(className) {}',
214 'throwCyclicInit': 'throwCyclicInit(staticName) {}', 216 'throwCyclicInit': 'throwCyclicInit(staticName) {}',
215 'throwExpression': 'throwExpression(e) {}', 217 'throwExpression': 'throwExpression(e) {}',
216 'throwNoSuchMethod': 218 'throwNoSuchMethod':
217 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', 219 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}',
218 'throwRuntimeError': 'throwRuntimeError(message) {}', 220 'throwRuntimeError': 'throwRuntimeError(message) {}',
219 'throwTypeError': 'throwTypeError(message) {}', 221 'throwTypeError': 'throwTypeError(message) {}',
220 'TypeImpl': 'class TypeImpl {}', 222 'TypeImpl': 'class TypeImpl {}',
221 'TypeVariable': 'class TypeVariable {}', 223 'TypeVariable': 'class TypeVariable {}',
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 'startRootIsolate': 'void startRootIsolate(entry, args) {}', 361 'startRootIsolate': 'void startRootIsolate(entry, args) {}',
360 '_currentIsolate': 'var _currentIsolate;', 362 '_currentIsolate': 'var _currentIsolate;',
361 '_callInIsolate': 'var _callInIsolate;', 363 '_callInIsolate': 'var _callInIsolate;',
362 '_WorkerBase': 'class _WorkerBase {}', 364 '_WorkerBase': 'class _WorkerBase {}',
363 }; 365 };
364 366
365 const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{ 367 const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{
366 'DeferredLibrary': 'class DeferredLibrary {}', 368 'DeferredLibrary': 'class DeferredLibrary {}',
367 'Future': 'class Future<T> {}', 369 'Future': 'class Future<T> {}',
368 'Stream': 'class Stream<T> {}', 370 'Stream': 'class Stream<T> {}',
371 'Completer': 'class Completer<T> {}',
372 'StreamIterator': 'class StreamIterator<T> {}',
369 }; 373 };
370 374
371 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 375 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
372 'Comment': 'class Comment {}', 376 'Comment': 'class Comment {}',
373 'MirrorSystem': 'class MirrorSystem {}', 377 'MirrorSystem': 'class MirrorSystem {}',
374 'MirrorsUsed': 'class MirrorsUsed {}', 378 'MirrorsUsed': 'class MirrorsUsed {}',
375 }; 379 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/language/asyncstar_yield_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698