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. | |
ahe
2013/02/18 12:38:04
Categories like this doesn't work, what happens if
| |
130 void registerInstantiatedClass(ClassElement cls, Enqueuer enqueuer) {} | 131 void registerInstantiatedClass(ClassElement cls, Enqueuer enqueuer) {} |
132 void registerStringInterpolation() {} | |
ahe
2013/02/18 12:38:04
I think all of the following methods should take t
| |
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() {} | |
146 void registerRuntimeType() {} | |
131 } | 147 } |
132 | 148 |
133 /** | 149 /** |
134 * Key class used in [TokenMap] in which the hash code for a token is based | 150 * Key class used in [TokenMap] in which the hash code for a token is based |
135 * on the [charOffset]. | 151 * on the [charOffset]. |
136 */ | 152 */ |
137 class TokenKey { | 153 class TokenKey { |
138 final Token token; | 154 final Token token; |
139 TokenKey(this.token); | 155 TokenKey(this.token); |
140 int get hashCode => token.charOffset; | 156 int get hashCode => token.charOffset; |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1124 | 1140 |
1125 void close() {} | 1141 void close() {} |
1126 | 1142 |
1127 toString() => name; | 1143 toString() => name; |
1128 | 1144 |
1129 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1145 /// Convenience method for getting an [api.CompilerOutputProvider]. |
1130 static NullSink outputProvider(String name, String extension) { | 1146 static NullSink outputProvider(String name, String extension) { |
1131 return new NullSink('$name.$extension'); | 1147 return new NullSink('$name.$extension'); |
1132 } | 1148 } |
1133 } | 1149 } |
OLD | NEW |