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

Unified Diff: tests/compiler/dart2js/mock_libraries.dart

Issue 574683002: Use ConstExp for storing constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_test_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_libraries.dart
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart
index 147be161a8a69235e7b00d44055c23e5cde5c781..734db25f3d4169d9a868caa4b8fc70ded0a2f5d6 100644
--- a/tests/compiler/dart2js/mock_libraries.dart
+++ b/tests/compiler/dart2js/mock_libraries.dart
@@ -55,7 +55,12 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
}''',
'Map': 'abstract class Map<K,V> {}',
'Null': 'class Null {}',
- 'num': 'abstract class num {}',
+ 'num': r'''
+ abstract class num {
+ operator +(_);
+ operator *(_);
+ operator -();
+ }''',
'print': 'print(var obj) {}',
'proxy': 'const proxy = 0;',
'Object': r'''
@@ -68,6 +73,7 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
}''',
'StackTrace': 'abstract class StackTrace {}',
'String': 'class String implements Pattern {}',
+ 'Symbol': 'class Symbol { final name; const Symbol(this.name); }',
'Type': 'class Type {}',
'Pattern': 'abstract class Pattern {}',
};
@@ -116,9 +122,9 @@ const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{
isStatic, jsArguments, name) {}''',
'computeSignature':
'computeSignature(var signature, var context, var contextName) {}',
- 'ConstantMap': 'class ConstantMap {}',
- 'ConstantProtoMap': 'class ConstantProtoMap {}',
- 'ConstantStringMap': 'class ConstantStringMap {}',
+ 'ConstantMap': 'class ConstantMap<K, V> {}',
+ 'ConstantProtoMap': 'class ConstantProtoMap<K, V> {}',
+ 'ConstantStringMap': 'class ConstantStringMap<K, V> {}',
'copyTypeArguments': 'copyTypeArguments(source, target) {}',
'createInvocationMirror': 'createInvocationMirror(a0, a1, a2, a3, a4, a5) {}',
'createRuntimeType': 'createRuntimeType(a) {}',
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698