| 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:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 class WarningMessage { | 32 class WarningMessage { |
| 33 Spannable node; | 33 Spannable node; |
| 34 Message message; | 34 Message message; |
| 35 WarningMessage(this.node, this.message); | 35 WarningMessage(this.node, this.message); |
| 36 | 36 |
| 37 toString() => message.toString(); | 37 toString() => message.toString(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 const String DEFAULT_HELPERLIB = r''' | 40 const String DEFAULT_HELPERLIB = r''' |
| 41 const patch = 0; |
| 41 wrapException(x) { return x; } | 42 wrapException(x) { return x; } |
| 42 iae(x) { throw x; } ioore(x) { throw x; } | 43 iae(x) { throw x; } ioore(x) { throw x; } |
| 43 guard$array(x) { return x; } | 44 guard$array(x) { return x; } |
| 44 guard$num(x) { return x; } | 45 guard$num(x) { return x; } |
| 45 guard$string(x) { return x; } | 46 guard$string(x) { return x; } |
| 46 guard$stringOrArray(x) { return x; } | 47 guard$stringOrArray(x) { return x; } |
| 47 makeLiteralMap(List keyValuePairs) {} | 48 makeLiteralMap(List keyValuePairs) {} |
| 48 setRuntimeTypeInfo(a, b) {} | 49 setRuntimeTypeInfo(a, b) {} |
| 49 getRuntimeTypeInfo(a) {} | 50 getRuntimeTypeInfo(a) {} |
| 50 stringTypeCheck(x) {} | 51 stringTypeCheck(x) {} |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 | 594 |
| 594 class MockElement extends FunctionElementX { | 595 class MockElement extends FunctionElementX { |
| 595 MockElement(Element enclosingElement) | 596 MockElement(Element enclosingElement) |
| 596 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, | 597 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, |
| 597 enclosingElement, false); | 598 enclosingElement, false); |
| 598 | 599 |
| 599 get node => null; | 600 get node => null; |
| 600 | 601 |
| 601 parseNode(_) => null; | 602 parseNode(_) => null; |
| 602 } | 603 } |
| OLD | NEW |