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 'dart:uri'; | 7 import 'dart:uri'; |
8 | 8 |
9 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 9 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; |
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' | 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' |
(...skipping 30 matching lines...) Expand all Loading... |
41 setRuntimeTypeInfo(a, b) {} | 41 setRuntimeTypeInfo(a, b) {} |
42 getRuntimeTypeInfo(a) {} | 42 getRuntimeTypeInfo(a) {} |
43 stringTypeCheck(x) {} | 43 stringTypeCheck(x) {} |
44 boolConversionCheck(x) {} | 44 boolConversionCheck(x) {} |
45 abstract class JavaScriptIndexingBehavior {} | 45 abstract class JavaScriptIndexingBehavior {} |
46 class JSInvocationMirror {} | 46 class JSInvocationMirror {} |
47 S() {} | 47 S() {} |
48 assertHelper(a){}'''; | 48 assertHelper(a){}'''; |
49 | 49 |
50 const String DEFAULT_INTERCEPTORSLIB = r''' | 50 const String DEFAULT_INTERCEPTORSLIB = r''' |
51 add$1(receiver, value) {} | 51 class JSArray { |
52 get$length(receiver) {} | 52 var length; |
53 filter(receiver, predicate) {} | 53 } |
54 removeLast(receiver) {} | 54 class JSString { |
55 iterator(receiver) {} | 55 var length; |
56 next(receiver) {} | 56 } |
57 hasNext(receiver) {}'''; | 57 getInterceptor(x) {}'''; |
58 | 58 |
59 const String DEFAULT_CORELIB = r''' | 59 const String DEFAULT_CORELIB = r''' |
60 print(var obj) {} | 60 print(var obj) {} |
61 abstract class num {} | 61 abstract class num {} |
62 abstract class int extends num { } | 62 abstract class int extends num { } |
63 abstract class double extends num { } | 63 abstract class double extends num { } |
64 class bool {} | 64 class bool {} |
65 class String {} | 65 class String {} |
66 class Object {} | 66 class Object {} |
67 class Type {} | 67 class Type {} |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 operator []=(Node node, Element element) { | 257 operator []=(Node node, Element element) { |
258 map[node] = element; | 258 map[node] = element; |
259 } | 259 } |
260 | 260 |
261 operator [](Node node) => map[node]; | 261 operator [](Node node) => map[node]; |
262 | 262 |
263 void remove(Node node) { | 263 void remove(Node node) { |
264 map.remove(node); | 264 map.remove(node); |
265 } | 265 } |
266 } | 266 } |
OLD | NEW |