| 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/elements/elements.dar
t'; | 10 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 indexSet(a, index, value) {} | 45 indexSet(a, index, value) {} |
| 46 makeLiteralMap(List keyValuePairs) {} | 46 makeLiteralMap(List keyValuePairs) {} |
| 47 setRuntimeTypeInfo(a, b) {} | 47 setRuntimeTypeInfo(a, b) {} |
| 48 getRuntimeTypeInfo(a) {} | 48 getRuntimeTypeInfo(a) {} |
| 49 stringTypeCheck(x) {} | 49 stringTypeCheck(x) {} |
| 50 boolConversionCheck(x) {} | 50 boolConversionCheck(x) {} |
| 51 abstract class JavaScriptIndexingBehavior {} | 51 abstract class JavaScriptIndexingBehavior {} |
| 52 class JSInvocationMirror {} | 52 class JSInvocationMirror {} |
| 53 S() {} | 53 S() {} |
| 54 assertHelper(a){} | 54 assertHelper(a){} |
| 55 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; | 55 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} |
| 56 throwAbstractClassInstantiationError(className) {}'''; |
| 56 | 57 |
| 57 const String DEFAULT_INTERCEPTORSLIB = r''' | 58 const String DEFAULT_INTERCEPTORSLIB = r''' |
| 58 class JSArray { | 59 class JSArray { |
| 59 var length; | 60 var length; |
| 60 operator[](index) {} | 61 operator[](index) {} |
| 61 operator[]=(index, value) {} | 62 operator[]=(index, value) {} |
| 62 var add; | 63 var add; |
| 63 } | 64 } |
| 64 class JSString { | 65 class JSString { |
| 65 var length; | 66 var length; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 operator []=(Node node, Element element) { | 300 operator []=(Node node, Element element) { |
| 300 map[node] = element; | 301 map[node] = element; |
| 301 } | 302 } |
| 302 | 303 |
| 303 operator [](Node node) => map[node]; | 304 operator [](Node node) => map[node]; |
| 304 | 305 |
| 305 void remove(Node node) { | 306 void remove(Node node) { |
| 306 map.remove(node); | 307 map.remove(node); |
| 307 } | 308 } |
| 308 } | 309 } |
| OLD | NEW |