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

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

Issue 2684783003: Refactor ConstantSystem (Closed)
Patch Set: Updated cf. comments. Created 3 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
« no previous file with comments | « tests/compiler/dart2js/constant_expression_evaluate_test.dart ('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) 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 const DEFAULT_PLATFORM_CONFIG = """ 9 const DEFAULT_PLATFORM_CONFIG = """
10 [libraries] 10 [libraries]
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 class Object { 91 class Object {
92 const Object(); 92 const Object();
93 operator ==(other) { return true; } 93 operator ==(other) { return true; }
94 get hashCode => throw "Object.hashCode not implemented."; 94 get hashCode => throw "Object.hashCode not implemented.";
95 String toString() { return null; } 95 String toString() { return null; }
96 noSuchMethod(im) { throw im; } 96 noSuchMethod(im) { throw im; }
97 }''', 97 }''',
98 'Resource': 'class Resource {}', 98 'Resource': 'class Resource {}',
99 'StackTrace': 'abstract class StackTrace {}', 99 'StackTrace': 'abstract class StackTrace {}',
100 'String': 'class String implements Pattern {}', 100 'String': 'class String implements Pattern {}',
101 'Symbol': 'class Symbol { final name; const Symbol(this.name); }', 101 'Symbol': 'class Symbol { final _name; const Symbol(this._name); }',
102 'Type': 'class Type {}', 102 'Type': 'class Type {}',
103 'Pattern': 'abstract class Pattern {}', 103 'Pattern': 'abstract class Pattern {}',
104 '_genericNoSuchMethod': '_genericNoSuchMethod(a,b,c,d,e) {}', 104 '_genericNoSuchMethod': '_genericNoSuchMethod(a,b,c,d,e) {}',
105 '_unresolvedConstructorError': '_unresolvedConstructorError(a,b,c,d,e) {}', 105 '_unresolvedConstructorError': '_unresolvedConstructorError(a,b,c,d,e) {}',
106 '_malformedTypeError': '_malformedTypeError(message) {}', 106 '_malformedTypeError': '_malformedTypeError(message) {}',
107 }; 107 };
108 108
109 const String DEFAULT_PATCH_CORE_SOURCE = r''' 109 const String DEFAULT_PATCH_CORE_SOURCE = r'''
110 import 'dart:_js_helper'; 110 import 'dart:_js_helper';
111 import 'dart:_interceptors'; 111 import 'dart:_interceptors';
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 459
460 const LookupMap(this._entries, [this._nestedMaps = const []]) 460 const LookupMap(this._entries, [this._nestedMaps = const []])
461 : _key = null, _value = null; 461 : _key = null, _value = null;
462 462
463 const LookupMap.pair(this._key, this._value) 463 const LookupMap.pair(this._key, this._value)
464 : _entries = const [], _nestedMaps = const []; 464 : _entries = const [], _nestedMaps = const [];
465 V operator[](K k) => null; 465 V operator[](K k) => null;
466 }''', 466 }''',
467 '_version': 'const _version = "0.0.1+1";', 467 '_version': 'const _version = "0.0.1+1";',
468 }; 468 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/constant_expression_evaluate_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698