| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed | 215 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed |
| 216 /// annotations. The arguments corresponds to the unions of the corresponding | 216 /// annotations. The arguments corresponds to the unions of the corresponding |
| 217 /// fields of the annotations. | 217 /// fields of the annotations. |
| 218 void registerMirrorUsage(Set<String> symbols, | 218 void registerMirrorUsage(Set<String> symbols, |
| 219 Set<Element> targets, | 219 Set<Element> targets, |
| 220 Set<Element> metaTargets) {} | 220 Set<Element> metaTargets) {} |
| 221 | 221 |
| 222 /// Returns true if this element should be retained for reflection even if it | 222 /// Returns true if this element should be retained for reflection even if it |
| 223 /// would normally be tree-shaken away. | 223 /// would normally be tree-shaken away. |
| 224 bool isNeededForReflection(Element element) => false; | 224 bool isNeededForReflection(Element element) => false; |
| 225 |
| 226 void registerStaticSend(Element element, Node node) {} |
| 225 } | 227 } |
| 226 | 228 |
| 227 /** | 229 /** |
| 228 * Key class used in [TokenMap] in which the hash code for a token is based | 230 * Key class used in [TokenMap] in which the hash code for a token is based |
| 229 * on the [charOffset]. | 231 * on the [charOffset]. |
| 230 */ | 232 */ |
| 231 class TokenKey { | 233 class TokenKey { |
| 232 final Token token; | 234 final Token token; |
| 233 TokenKey(this.token); | 235 TokenKey(this.token); |
| 234 int get hashCode => token.charOffset; | 236 int get hashCode => token.charOffset; |
| (...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 | 1488 |
| 1487 void close() {} | 1489 void close() {} |
| 1488 | 1490 |
| 1489 toString() => name; | 1491 toString() => name; |
| 1490 | 1492 |
| 1491 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1493 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1492 static NullSink outputProvider(String name, String extension) { | 1494 static NullSink outputProvider(String name, String extension) { |
| 1493 return new NullSink('$name.$extension'); | 1495 return new NullSink('$name.$extension'); |
| 1494 } | 1496 } |
| 1495 } | 1497 } |
| OLD | NEW |