| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 var receiver; | 59 var receiver; |
| 60 } | 60 } |
| 61 class Closure implements Function {} | 61 class Closure implements Function {} |
| 62 class Null {} | 62 class Null {} |
| 63 class Dynamic_ {} | 63 class Dynamic_ {} |
| 64 class LinkedHashMap { | 64 class LinkedHashMap { |
| 65 factory LinkedHashMap._empty() => null; | 65 factory LinkedHashMap._empty() => null; |
| 66 factory LinkedHashMap._literal(elements) => null; | 66 factory LinkedHashMap._literal(elements) => null; |
| 67 } | 67 } |
| 68 class ConstantMap {} | 68 class ConstantMap {} |
| 69 class ConstantStringMap {} |
| 69 class TypeImpl {} | 70 class TypeImpl {} |
| 70 S() {} | 71 S() {} |
| 71 throwCyclicInit() {} | 72 throwCyclicInit() {} |
| 72 throwExpression(e) {} | 73 throwExpression(e) {} |
| 73 unwrapException(e) {} | 74 unwrapException(e) {} |
| 74 assertHelper(a) {} | 75 assertHelper(a) {} |
| 75 isJsIndexable(a, b) {} | 76 isJsIndexable(a, b) {} |
| 76 createRuntimeType(a) {} | 77 createRuntimeType(a) {} |
| 77 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} | 78 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} |
| 78 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} | 79 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 } else { | 579 } else { |
| 579 sourceFile = compiler.sourceFiles[uri.toString()]; | 580 sourceFile = compiler.sourceFiles[uri.toString()]; |
| 580 } | 581 } |
| 581 if (sourceFile != null && begin != null && end != null) { | 582 if (sourceFile != null && begin != null && end != null) { |
| 582 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); | 583 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); |
| 583 } else { | 584 } else { |
| 584 print(message); | 585 print(message); |
| 585 } | 586 } |
| 586 }; | 587 }; |
| 587 } | 588 } |
| OLD | NEW |