| 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:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:uri'; | 8 import 'dart:uri'; |
| 9 | 9 |
| 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 guard$stringOrArray(x) { return x; } | 40 guard$stringOrArray(x) { return x; } |
| 41 makeLiteralMap(List keyValuePairs) {} | 41 makeLiteralMap(List keyValuePairs) {} |
| 42 setRuntimeTypeInfo(a, b) {} | 42 setRuntimeTypeInfo(a, b) {} |
| 43 getRuntimeTypeInfo(a) {} | 43 getRuntimeTypeInfo(a) {} |
| 44 stringTypeCheck(x) {} | 44 stringTypeCheck(x) {} |
| 45 boolConversionCheck(x) {} | 45 boolConversionCheck(x) {} |
| 46 abstract class JavaScriptIndexingBehavior {} | 46 abstract class JavaScriptIndexingBehavior {} |
| 47 class JSInvocationMirror {} | 47 class JSInvocationMirror {} |
| 48 S() {} | 48 S() {} |
| 49 assertHelper(a){} | 49 assertHelper(a){} |
| 50 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; | 50 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} |
| 51 throwAbstractClassInstantiationError(className) {}'''; |
| 51 | 52 |
| 52 const String DEFAULT_INTERCEPTORSLIB = r''' | 53 const String DEFAULT_INTERCEPTORSLIB = r''' |
| 53 class JSArray { | 54 class JSArray { |
| 54 var length; | 55 var length; |
| 55 operator[](index) {} | 56 operator[](index) {} |
| 56 operator[]=(index, value) {} | 57 operator[]=(index, value) {} |
| 57 var add; | 58 var add; |
| 58 } | 59 } |
| 59 class JSString { | 60 class JSString { |
| 60 var length; | 61 var length; |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 operator []=(Node node, Element element) { | 329 operator []=(Node node, Element element) { |
| 329 map[node] = element; | 330 map[node] = element; |
| 330 } | 331 } |
| 331 | 332 |
| 332 operator [](Node node) => map[node]; | 333 operator [](Node node) => map[node]; |
| 333 | 334 |
| 334 void remove(Node node) { | 335 void remove(Node node) { |
| 335 map.remove(node); | 336 map.remove(node); |
| 336 } | 337 } |
| 337 } | 338 } |
| OLD | NEW |