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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 void assembleProgram(); | 119 void assembleProgram(); |
120 List<CompilerTask> get tasks; | 120 List<CompilerTask> get tasks; |
121 | 121 |
122 // TODO(ahe,karlklose): rename this? | 122 // TODO(ahe,karlklose): rename this? |
123 void dumpInferredTypes() {} | 123 void dumpInferredTypes() {} |
124 | 124 |
125 ItemCompilationContext createItemCompilationContext() { | 125 ItemCompilationContext createItemCompilationContext() { |
126 return new ItemCompilationContext(); | 126 return new ItemCompilationContext(); |
127 } | 127 } |
128 | 128 |
129 SourceString getCheckedModeHelper(DartType type) => null; | 129 // The following methods are hooks for the backend to register its |
| 130 // helper methods. |
130 void registerInstantiatedClass(ClassElement cls, Enqueuer enqueuer) {} | 131 void registerInstantiatedClass(ClassElement cls, Enqueuer enqueuer) {} |
| 132 void registerStringInterpolation() {} |
| 133 void registerCatchStatement() {} |
| 134 void registerThrow() {} |
| 135 void registerLazyField() {} |
| 136 void registerTypeLiteral() {} |
| 137 void registerStackTraceInCatch() {} |
| 138 void registerIsCheck(DartType type, Enqueuer enqueuer) {} |
| 139 void registerAsCheck(DartType type) {} |
| 140 void registerThrowNoSuchMethod() {} |
| 141 void registerThrowRuntimeError() {} |
| 142 void registerAbstractClassInstantiation() {} |
| 143 void registerFallThroughError() {} |
| 144 void registerSuperNoSuchMethod() {} |
| 145 void registerConstantMap() {} |
131 } | 146 } |
132 | 147 |
133 /** | 148 /** |
134 * Key class used in [TokenMap] in which the hash code for a token is based | 149 * Key class used in [TokenMap] in which the hash code for a token is based |
135 * on the [charOffset]. | 150 * on the [charOffset]. |
136 */ | 151 */ |
137 class TokenKey { | 152 class TokenKey { |
138 final Token token; | 153 final Token token; |
139 TokenKey(this.token); | 154 TokenKey(this.token); |
140 int get hashCode => token.charOffset; | 155 int get hashCode => token.charOffset; |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 | 1139 |
1125 void close() {} | 1140 void close() {} |
1126 | 1141 |
1127 toString() => name; | 1142 toString() => name; |
1128 | 1143 |
1129 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1144 /// Convenience method for getting an [api.CompilerOutputProvider]. |
1130 static NullSink outputProvider(String name, String extension) { | 1145 static NullSink outputProvider(String name, String extension) { |
1131 return new NullSink('$name.$extension'); | 1146 return new NullSink('$name.$extension'); |
1132 } | 1147 } |
1133 } | 1148 } |
OLD | NEW |