Chromium Code Reviews| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 void registerStackTraceInCatch() {} | 144 void registerStackTraceInCatch() {} |
| 145 void registerIsCheck(DartType type, Enqueuer enqueuer) {} | 145 void registerIsCheck(DartType type, Enqueuer enqueuer) {} |
| 146 void registerAsCheck(DartType type) {} | 146 void registerAsCheck(DartType type) {} |
| 147 void registerThrowNoSuchMethod() {} | 147 void registerThrowNoSuchMethod() {} |
| 148 void registerThrowRuntimeError() {} | 148 void registerThrowRuntimeError() {} |
| 149 void registerAbstractClassInstantiation() {} | 149 void registerAbstractClassInstantiation() {} |
| 150 void registerFallThroughError() {} | 150 void registerFallThroughError() {} |
| 151 void registerSuperNoSuchMethod() {} | 151 void registerSuperNoSuchMethod() {} |
| 152 void registerConstantMap() {} | 152 void registerConstantMap() {} |
| 153 void registerRuntimeType() {} | 153 void registerRuntimeType() {} |
| 154 | |
| 155 bool isNullImplementation(ClassElement cls) { | |
|
kasperl
2013/03/06 08:32:26
Why do we need this on both the compiler and the b
ngeoffray
2013/03/06 08:40:06
This is the backend super class, not the compiler
kasperl
2013/03/06 08:41:07
Ah. Funky.
| |
| 156 return cls == compiler.nullClass; | |
| 157 } | |
| 154 } | 158 } |
| 155 | 159 |
| 156 /** | 160 /** |
| 157 * Key class used in [TokenMap] in which the hash code for a token is based | 161 * Key class used in [TokenMap] in which the hash code for a token is based |
| 158 * on the [charOffset]. | 162 * on the [charOffset]. |
| 159 */ | 163 */ |
| 160 class TokenKey { | 164 class TokenKey { |
| 161 final Token token; | 165 final Token token; |
| 162 TokenKey(this.token); | 166 TokenKey(this.token); |
| 163 int get hashCode => token.charOffset; | 167 int get hashCode => token.charOffset; |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1167 | 1171 |
| 1168 void close() {} | 1172 void close() {} |
| 1169 | 1173 |
| 1170 toString() => name; | 1174 toString() => name; |
| 1171 | 1175 |
| 1172 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1176 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1173 static NullSink outputProvider(String name, String extension) { | 1177 static NullSink outputProvider(String name, String extension) { |
| 1174 return new NullSink('$name.$extension'); | 1178 return new NullSink('$name.$extension'); |
| 1175 } | 1179 } |
| 1176 } | 1180 } |
| OLD | NEW |