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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 abstract class JavaScriptIndexingBehavior {} | 54 abstract class JavaScriptIndexingBehavior {} |
55 class JSInvocationMirror {} | 55 class JSInvocationMirror {} |
56 class BoundClosure extends Closure { | 56 class BoundClosure extends Closure { |
57 var self; | 57 var self; |
58 var target; | 58 var target; |
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; |
| 66 factory LinkedHashMap._literal(elements) => null; |
| 67 } |
65 class ConstantMap {} | 68 class ConstantMap {} |
66 class TypeImpl {} | 69 class TypeImpl {} |
67 S() {} | 70 S() {} |
68 throwCyclicInit() {} | 71 throwCyclicInit() {} |
69 throwExpression(e) {} | 72 throwExpression(e) {} |
70 unwrapException(e) {} | 73 unwrapException(e) {} |
71 assertHelper(a) {} | 74 assertHelper(a) {} |
72 isJsIndexable(a, b) {} | 75 isJsIndexable(a, b) {} |
73 createRuntimeType(a) {} | 76 createRuntimeType(a) {} |
74 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} | 77 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } else { | 578 } else { |
576 sourceFile = compiler.sourceFiles[uri.toString()]; | 579 sourceFile = compiler.sourceFiles[uri.toString()]; |
577 } | 580 } |
578 if (sourceFile != null && begin != null && end != null) { | 581 if (sourceFile != null && begin != null && end != null) { |
579 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); | 582 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); |
580 } else { | 583 } else { |
581 print(message); | 584 print(message); |
582 } | 585 } |
583 }; | 586 }; |
584 } | 587 } |
OLD | NEW |