| OLD | NEW |
| 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 | 4 |
| 5 library mock_compiler; | 5 library mock_compiler; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 var target; | 58 var target; |
| 59 var receiver; | 59 var receiver; |
| 60 } | 60 } |
| 61 class Closure {} | 61 class Closure {} |
| 62 class Null {} | 62 class Null {} |
| 63 class Dynamic_ {} | 63 class Dynamic_ {} |
| 64 class LinkedHashMap {} | 64 class LinkedHashMap {} |
| 65 class ConstantMap {} | 65 class ConstantMap {} |
| 66 class TypeImpl {} | 66 class TypeImpl {} |
| 67 S() {} | 67 S() {} |
| 68 throwCyclicInit() {} |
| 68 throwExpression(e) {} | 69 throwExpression(e) {} |
| 69 unwrapException(e) {} | 70 unwrapException(e) {} |
| 70 assertHelper(a) {} | 71 assertHelper(a) {} |
| 71 isJsIndexable(a, b) {} | 72 isJsIndexable(a, b) {} |
| 72 createRuntimeType(a) {} | 73 createRuntimeType(a) {} |
| 73 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} | 74 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} |
| 74 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} | 75 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} |
| 75 throwAbstractClassInstantiationError(className) {}'''; | 76 throwAbstractClassInstantiationError(className) {}'''; |
| 76 | 77 |
| 77 const String FOREIGN_LIBRARY = r''' | 78 const String FOREIGN_LIBRARY = r''' |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 class bool {} | 161 class bool {} |
| 161 class String implements Pattern {} | 162 class String implements Pattern {} |
| 162 class Object { | 163 class Object { |
| 163 operator ==(other) { return true; } | 164 operator ==(other) { return true; } |
| 164 String toString() { return null; } | 165 String toString() { return null; } |
| 165 noSuchMethod(im) { throw im; } | 166 noSuchMethod(im) { throw im; } |
| 166 } | 167 } |
| 167 abstract class StackTrace {} | 168 abstract class StackTrace {} |
| 168 class Type {} | 169 class Type {} |
| 169 class Function {} | 170 class Function {} |
| 170 class List<E> {} | 171 class List<E> { List([length]); } |
| 171 abstract class Map<K,V> {} | 172 abstract class Map<K,V> {} |
| 172 class DateTime { | 173 class DateTime { |
| 173 DateTime(year); | 174 DateTime(year); |
| 174 DateTime.utc(year); | 175 DateTime.utc(year); |
| 175 } | 176 } |
| 176 abstract class Pattern {} | 177 abstract class Pattern {} |
| 177 bool identical(Object a, Object b) { return true; }'''; | 178 bool identical(Object a, Object b) { return true; }'''; |
| 178 | 179 |
| 179 const String DEFAULT_ISOLATE_HELPERLIB = r''' | 180 const String DEFAULT_ISOLATE_HELPERLIB = r''' |
| 180 class _WorkerBase {}'''; | 181 class _WorkerBase {}'''; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 } | 431 } |
| 431 } | 432 } |
| 432 | 433 |
| 433 class MockDeferredLoadTask extends DeferredLoadTask { | 434 class MockDeferredLoadTask extends DeferredLoadTask { |
| 434 MockDeferredLoadTask(Compiler compiler) : super(compiler); | 435 MockDeferredLoadTask(Compiler compiler) : super(compiler); |
| 435 | 436 |
| 436 void registerMainApp(LibraryElement mainApp) { | 437 void registerMainApp(LibraryElement mainApp) { |
| 437 // Do nothing. | 438 // Do nothing. |
| 438 } | 439 } |
| 439 } | 440 } |
| OLD | NEW |