| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void registerIsCheck(DartType type, | 148 void registerIsCheck(DartType type, |
| 149 Enqueuer enqueuer, | 149 Enqueuer enqueuer, |
| 150 TreeElements elements) {} | 150 TreeElements elements) {} |
| 151 void registerAsCheck(DartType type, TreeElements elements) {} | 151 void registerAsCheck(DartType type, TreeElements elements) {} |
| 152 void registerThrowNoSuchMethod(TreeElements elements) {} | 152 void registerThrowNoSuchMethod(TreeElements elements) {} |
| 153 void registerThrowRuntimeError(TreeElements elements) {} | 153 void registerThrowRuntimeError(TreeElements elements) {} |
| 154 void registerAbstractClassInstantiation(TreeElements elements) {} | 154 void registerAbstractClassInstantiation(TreeElements elements) {} |
| 155 void registerFallThroughError(TreeElements elements) {} | 155 void registerFallThroughError(TreeElements elements) {} |
| 156 void registerSuperNoSuchMethod(TreeElements elements) {} | 156 void registerSuperNoSuchMethod(TreeElements elements) {} |
| 157 void registerConstantMap(TreeElements elements) {} | 157 void registerConstantMap(TreeElements elements) {} |
| 158 /** |
| 159 * Called this to register that a getter exists for a function on an |
| 160 * instantiated generic class. |
| 161 */ |
| 162 void registerGenericClosure(Enqueuer enqueuer, TreeElements elements) {} |
| 158 void registerRuntimeType(TreeElements elements) {} | 163 void registerRuntimeType(TreeElements elements) {} |
| 159 | 164 |
| 160 bool isNullImplementation(ClassElement cls) { | 165 bool isNullImplementation(ClassElement cls) { |
| 161 return cls == compiler.nullClass; | 166 return cls == compiler.nullClass; |
| 162 } | 167 } |
| 163 ClassElement get intImplementation => compiler.intClass; | 168 ClassElement get intImplementation => compiler.intClass; |
| 164 ClassElement get doubleImplementation => compiler.doubleClass; | 169 ClassElement get doubleImplementation => compiler.doubleClass; |
| 165 ClassElement get numImplementation => compiler.numClass; | 170 ClassElement get numImplementation => compiler.numClass; |
| 166 ClassElement get stringImplementation => compiler.stringClass; | 171 ClassElement get stringImplementation => compiler.stringClass; |
| 167 ClassElement get listImplementation => compiler.listClass; | 172 ClassElement get listImplementation => compiler.listClass; |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 | 1246 |
| 1242 void close() {} | 1247 void close() {} |
| 1243 | 1248 |
| 1244 toString() => name; | 1249 toString() => name; |
| 1245 | 1250 |
| 1246 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1251 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1247 static NullSink outputProvider(String name, String extension) { | 1252 static NullSink outputProvider(String name, String extension) { |
| 1248 return new NullSink('$name.$extension'); | 1253 return new NullSink('$name.$extension'); |
| 1249 } | 1254 } |
| 1250 } | 1255 } |
| OLD | NEW |