| 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 |
| 180 bool isDefaultNoSuchMethodImplementation(Element element) { | 182 bool isDefaultNoSuchMethodImplementation(Element element) { |
| 181 assert(element.name == Compiler.NO_SUCH_METHOD); | 183 assert(element.name == Compiler.NO_SUCH_METHOD); |
| 182 ClassElement classElement = element.getEnclosingClass(); | 184 ClassElement classElement = element.getEnclosingClass(); |
| 183 return classElement == compiler.objectClass; | 185 return classElement == compiler.objectClass; |
| 184 } | 186 } |
| 185 } | 187 } |
| 186 | 188 |
| 187 /** | 189 /** |
| 188 * Key class used in [TokenMap] in which the hash code for a token is based | 190 * Key class used in [TokenMap] in which the hash code for a token is based |
| 189 * on the [charOffset]. | 191 * on the [charOffset]. |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 | 1336 |
| 1335 void close() {} | 1337 void close() {} |
| 1336 | 1338 |
| 1337 toString() => name; | 1339 toString() => name; |
| 1338 | 1340 |
| 1339 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1341 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1340 static NullSink outputProvider(String name, String extension) { | 1342 static NullSink outputProvider(String name, String extension) { |
| 1341 return new NullSink('$name.$extension'); | 1343 return new NullSink('$name.$extension'); |
| 1342 } | 1344 } |
| 1343 } | 1345 } |
| OLD | NEW |