| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 ClassElement get growableListImplementation => compiler.listClass; | 170 ClassElement get growableListImplementation => compiler.listClass; |
| 171 ClassElement get fixedListImplementation => compiler.listClass; | 171 ClassElement get fixedListImplementation => compiler.listClass; |
| 172 ClassElement get constListImplementation => compiler.listClass; | 172 ClassElement get constListImplementation => compiler.listClass; |
| 173 ClassElement get mapImplementation => compiler.mapClass; | 173 ClassElement get mapImplementation => compiler.mapClass; |
| 174 ClassElement get constMapImplementation => compiler.mapClass; | 174 ClassElement get constMapImplementation => compiler.mapClass; |
| 175 ClassElement get functionImplementation => compiler.functionClass; | 175 ClassElement get functionImplementation => compiler.functionClass; |
| 176 ClassElement get typeImplementation => compiler.typeClass; | 176 ClassElement get typeImplementation => compiler.typeClass; |
| 177 ClassElement get boolImplementation => compiler.boolClass; | 177 ClassElement get boolImplementation => compiler.boolClass; |
| 178 ClassElement get nullImplementation => compiler.nullClass; | 178 ClassElement get nullImplementation => compiler.nullClass; |
| 179 | 179 |
| 180 ClassElement defaultSuperclass(ClassElement element) => compiler.objectClass; | |
| 181 | |
| 182 bool isDefaultNoSuchMethodImplementation(Element element) { | 180 bool isDefaultNoSuchMethodImplementation(Element element) { |
| 183 assert(element.name == Compiler.NO_SUCH_METHOD); | 181 assert(element.name == Compiler.NO_SUCH_METHOD); |
| 184 ClassElement classElement = element.getEnclosingClass(); | 182 ClassElement classElement = element.getEnclosingClass(); |
| 185 return classElement == compiler.objectClass; | 183 return classElement == compiler.objectClass; |
| 186 } | 184 } |
| 187 } | 185 } |
| 188 | 186 |
| 189 /** | 187 /** |
| 190 * Key class used in [TokenMap] in which the hash code for a token is based | 188 * Key class used in [TokenMap] in which the hash code for a token is based |
| 191 * on the [charOffset]. | 189 * on the [charOffset]. |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 | 1334 |
| 1337 void close() {} | 1335 void close() {} |
| 1338 | 1336 |
| 1339 toString() => name; | 1337 toString() => name; |
| 1340 | 1338 |
| 1341 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1339 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1342 static NullSink outputProvider(String name, String extension) { | 1340 static NullSink outputProvider(String name, String extension) { |
| 1343 return new NullSink('$name.$extension'); | 1341 return new NullSink('$name.$extension'); |
| 1344 } | 1342 } |
| 1345 } | 1343 } |
| OLD | NEW |