| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 class WarningMessage { | 33 class WarningMessage { |
| 34 Node node; | 34 Node node; |
| 35 Message message; | 35 Message message; |
| 36 WarningMessage(this.node, this.message); | 36 WarningMessage(this.node, this.message); |
| 37 | 37 |
| 38 toString() => message.toString(); | 38 toString() => message.toString(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 const String DEFAULT_HELPERLIB = r''' | 41 const String DEFAULT_HELPERLIB = r''' |
| 42 $throw(x) { return x; } | 42 wrapException(x) { return x; } |
| 43 iae(x) { throw x; } ioore(x) { throw x; } | 43 iae(x) { throw x; } ioore(x) { throw x; } |
| 44 guard$array(x) { return x; } | 44 guard$array(x) { return x; } |
| 45 guard$num(x) { return x; } | 45 guard$num(x) { return x; } |
| 46 guard$string(x) { return x; } | 46 guard$string(x) { return x; } |
| 47 guard$stringOrArray(x) { return x; } | 47 guard$stringOrArray(x) { return x; } |
| 48 makeLiteralMap(List keyValuePairs) {} | 48 makeLiteralMap(List keyValuePairs) {} |
| 49 setRuntimeTypeInfo(a, b) {} | 49 setRuntimeTypeInfo(a, b) {} |
| 50 getRuntimeTypeInfo(a) {} | 50 getRuntimeTypeInfo(a) {} |
| 51 stringTypeCheck(x) {} | 51 stringTypeCheck(x) {} |
| 52 boolConversionCheck(x) {} | 52 boolConversionCheck(x) {} |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 } | 388 } |
| 389 } | 389 } |
| 390 | 390 |
| 391 class MockDeferredLoadTask extends DeferredLoadTask { | 391 class MockDeferredLoadTask extends DeferredLoadTask { |
| 392 MockDeferredLoadTask(Compiler compiler) : super(compiler); | 392 MockDeferredLoadTask(Compiler compiler) : super(compiler); |
| 393 | 393 |
| 394 void registerMainApp(LibraryElement mainApp) { | 394 void registerMainApp(LibraryElement mainApp) { |
| 395 // Do nothing. | 395 // Do nothing. |
| 396 } | 396 } |
| 397 } | 397 } |
| OLD | NEW |