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

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

Issue 383413003: Add @Native(...) annotation for native class names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 'isJsIndexable': 'isJsIndexable(a, b) {}', 145 'isJsIndexable': 'isJsIndexable(a, b) {}',
146 'JavaScriptIndexingBehavior': 'abstract class JavaScriptIndexingBehavior {}', 146 'JavaScriptIndexingBehavior': 'abstract class JavaScriptIndexingBehavior {}',
147 'JSInvocationMirror': 'class JSInvocationMirror {}', 147 'JSInvocationMirror': 'class JSInvocationMirror {}',
148 'listSuperNativeTypeCast': 'listSuperNativeTypeCast(value) {}', 148 'listSuperNativeTypeCast': 'listSuperNativeTypeCast(value) {}',
149 'listSuperNativeTypeCheck': 'listSuperNativeTypeCheck(value) {}', 149 'listSuperNativeTypeCheck': 'listSuperNativeTypeCheck(value) {}',
150 'listSuperTypeCast': 'listSuperTypeCast(value) {}', 150 'listSuperTypeCast': 'listSuperTypeCast(value) {}',
151 'listSuperTypeCheck': 'listSuperTypeCheck(value) {}', 151 'listSuperTypeCheck': 'listSuperTypeCheck(value) {}',
152 'listTypeCast': 'listTypeCast(value) {}', 152 'listTypeCast': 'listTypeCast(value) {}',
153 'listTypeCheck': 'listTypeCheck(value) {}', 153 'listTypeCheck': 'listTypeCheck(value) {}',
154 'makeLiteralMap': 'makeLiteralMap(List keyValuePairs) {}', 154 'makeLiteralMap': 'makeLiteralMap(List keyValuePairs) {}',
155 'Native': 'class Native {}',
155 'NoInline': 'class NoInline {}', 156 'NoInline': 'class NoInline {}',
156 'NoSideEffects': 'class NoSideEffects {}', 157 'NoSideEffects': 'class NoSideEffects {}',
157 'NoThrows': 'class NoThrows {}', 158 'NoThrows': 'class NoThrows {}',
158 'numberOrStringSuperNativeTypeCast': 159 'numberOrStringSuperNativeTypeCast':
159 'numberOrStringSuperNativeTypeCast(value) {}', 160 'numberOrStringSuperNativeTypeCast(value) {}',
160 'numberOrStringSuperNativeTypeCheck': 161 'numberOrStringSuperNativeTypeCheck':
161 'numberOrStringSuperNativeTypeCheck(value) {}', 162 'numberOrStringSuperNativeTypeCheck(value) {}',
162 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}', 163 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}',
163 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}', 164 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}',
164 'numTypeCast': 'numTypeCast(value) {}', 165 'numTypeCast': 'numTypeCast(value) {}',
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 '_callInIsolate': 'var _callInIsolate;', 329 '_callInIsolate': 'var _callInIsolate;',
329 '_WorkerBase': 'class _WorkerBase {}', 330 '_WorkerBase': 'class _WorkerBase {}',
330 }; 331 };
331 332
332 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 333 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
333 'Comment': 'class Comment {}', 334 'Comment': 'class Comment {}',
334 'MirrorSystem': 'class MirrorSystem {}', 335 'MirrorSystem': 'class MirrorSystem {}',
335 'MirrorsUsed': 'class MirrorsUsed {}', 336 'MirrorsUsed': 'class MirrorsUsed {}',
336 }; 337 };
337 338
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/dart_backend_test.dart ('k') | tests/compiler/dart2js_native/abstract_class_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698