| 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("../../../lib/compiler/implementation/elements/elements.dart"); | 9 #import("../../../lib/compiler/implementation/elements/elements.dart"); |
| 10 #import("../../../lib/compiler/implementation/leg.dart"); | 10 #import("../../../lib/compiler/implementation/leg.dart"); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 guard$string(x) { return x; } | 31 guard$string(x) { return x; } |
| 32 guard$stringOrArray(x) { return x; } | 32 guard$stringOrArray(x) { return x; } |
| 33 builtin$add$1(receiver, value) {} | 33 builtin$add$1(receiver, value) {} |
| 34 builtin$get$length(var receiver) {} | 34 builtin$get$length(var receiver) {} |
| 35 builtin$filter$1(receiver, predicate) {} | 35 builtin$filter$1(receiver, predicate) {} |
| 36 builtin$removeLast$0(receiver) {} | 36 builtin$removeLast$0(receiver) {} |
| 37 index(a, index) {} | 37 index(a, index) {} |
| 38 indexSet(a, index, value) {} | 38 indexSet(a, index, value) {} |
| 39 builtin$iterator$0() {} | 39 builtin$iterator$0() {} |
| 40 builtin$next$0() {} | 40 builtin$next$0() {} |
| 41 builtin$hasNext$0() {}'''; | 41 builtin$hasNext$0() {} |
| 42 setRuntimeTypeInfo(a, b) {} |
| 43 getRuntimeTypeInfo(a) {}'''; |
| 42 | 44 |
| 43 final String DEFAULT_CORELIB = @''' | 45 final String DEFAULT_CORELIB = @''' |
| 44 print(var obj) {} | 46 print(var obj) {} |
| 45 class int {} | 47 class int {} |
| 46 class double {} | 48 class double {} |
| 47 class bool {} | 49 class bool {} |
| 48 class String {} | 50 class String {} |
| 49 class Object {} | 51 class Object {} |
| 50 class num {} | 52 class num {} |
| 51 class Function {} | 53 class Function {} |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 importLibrary(library, compiler.coreLibrary, compiler); | 191 importLibrary(library, compiler.coreLibrary, compiler); |
| 190 return library; | 192 return library; |
| 191 } | 193 } |
| 192 | 194 |
| 193 class StringScript extends Script { | 195 class StringScript extends Script { |
| 194 final String code; | 196 final String code; |
| 195 StringScript(this.code) : super(null, null); | 197 StringScript(this.code) : super(null, null); |
| 196 String get text() => code; | 198 String get text() => code; |
| 197 String get name() => "mock script"; | 199 String get name() => "mock script"; |
| 198 } | 200 } |
| OLD | NEW |