| 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 import 'dart:uri'; | 9 import 'dart:uri'; |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 boolConversionCheck(x) {} | 52 boolConversionCheck(x) {} |
| 53 abstract class JavaScriptIndexingBehavior {} | 53 abstract class JavaScriptIndexingBehavior {} |
| 54 class JSInvocationMirror {} | 54 class JSInvocationMirror {} |
| 55 class Closure {} | 55 class Closure {} |
| 56 class Null {} | 56 class Null {} |
| 57 class Dynamic_ {} | 57 class Dynamic_ {} |
| 58 class LinkedHashMap {} | 58 class LinkedHashMap {} |
| 59 class ConstantMap {} | 59 class ConstantMap {} |
| 60 class TypeImpl {} | 60 class TypeImpl {} |
| 61 S() {} | 61 S() {} |
| 62 throwExpression(e) {} |
| 62 unwrapException(e) {} | 63 unwrapException(e) {} |
| 63 assertHelper(a){} | 64 assertHelper(a){} |
| 64 createRuntimeType(a) {} | 65 createRuntimeType(a) {} |
| 65 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} | 66 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} |
| 66 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} | 67 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} |
| 67 throwAbstractClassInstantiationError(className) {}'''; | 68 throwAbstractClassInstantiationError(className) {}'''; |
| 68 | 69 |
| 69 const String FOREIGN_LIBRARY = r''' | 70 const String FOREIGN_LIBRARY = r''' |
| 70 dynamic JS(String typeDescription, String codeTemplate, | 71 dynamic JS(String typeDescription, String codeTemplate, |
| 71 [var arg0, var arg1, var arg2, var arg3, var arg4, var arg5, var arg6, | 72 [var arg0, var arg1, var arg2, var arg3, var arg4, var arg5, var arg6, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 } | 400 } |
| 400 } | 401 } |
| 401 | 402 |
| 402 class MockDeferredLoadTask extends DeferredLoadTask { | 403 class MockDeferredLoadTask extends DeferredLoadTask { |
| 403 MockDeferredLoadTask(Compiler compiler) : super(compiler); | 404 MockDeferredLoadTask(Compiler compiler) : super(compiler); |
| 404 | 405 |
| 405 void registerMainApp(LibraryElement mainApp) { | 406 void registerMainApp(LibraryElement mainApp) { |
| 406 // Do nothing. | 407 // Do nothing. |
| 407 } | 408 } |
| 408 } | 409 } |
| OLD | NEW |