OLD | NEW |
1 >>> (indent 2) | 1 >>> (indent 2) |
2 main() { | 2 main() { |
3 List<Future<List<LocationImpl>>> nodeFutures = | 3 List<Future<List<LocationImpl>>> nodeFutures = |
4 <Future<List<LocationImpl>>>[]; | 4 <Future<List<LocationImpl>>>[]; |
5 } | 5 } |
6 <<< | 6 <<< |
7 main() { | 7 main() { |
8 List<Future<List<LocationImpl>>> nodeFutures = | 8 List<Future<List<LocationImpl>>> nodeFutures = |
9 <Future<List<LocationImpl>>>[]; | 9 <Future<List<LocationImpl>>>[]; |
10 } | 10 } |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 }); | 179 }); |
180 })); | 180 })); |
181 } | 181 } |
182 <<< | 182 <<< |
183 void emitEmptyObjectClass(String className, ImpliedType impliedType) { | 183 void emitEmptyObjectClass(String className, ImpliedType impliedType) { |
184 docComment(toHtmlVisitor.collectHtml(() { | 184 docComment(toHtmlVisitor.collectHtml(() { |
185 toHtmlVisitor.p(() { | 185 toHtmlVisitor.p(() { |
186 toHtmlVisitor.write(impliedType.humanReadableName); | 186 toHtmlVisitor.write(impliedType.humanReadableName); |
187 }); | 187 }); |
188 })); | 188 })); |
| 189 } |
| 190 >>> (indent 2) |
| 191 main() { |
| 192 manager.setRoots(<String>[ |
| 193 projPath |
| 194 ], <String>[], <String, String>{}); |
| 195 } |
| 196 <<< |
| 197 main() { |
| 198 manager.setRoots(<String>[projPath], <String>[], <String, String>{}); |
| 199 } |
| 200 >>> (indent 2) |
| 201 main() { |
| 202 server.setAnalysisRoots('0', [ |
| 203 '/foo', |
| 204 '/bar' |
| 205 ], [], {}); |
| 206 return pumpEventQueue(40).then((_) { |
| 207 expect(server.statusAnalyzing, isFalse); |
| 208 }); |
| 209 } |
| 210 <<< |
| 211 main() { |
| 212 server.setAnalysisRoots('0', ['/foo', '/bar'], [], {}); |
| 213 return pumpEventQueue(40).then((_) { |
| 214 expect(server.statusAnalyzing, isFalse); |
| 215 }); |
| 216 } |
| 217 >>> (indent 2) |
| 218 main() { |
| 219 return withBuilder(new DartIrBuilder( |
| 220 DART_CONSTANT_SYSTEM, |
| 221 element, |
| 222 // TODO(johnniwinther): Support closure variables. |
| 223 new Set<dart2js.Local>()), () { |
| 224 irBuilder.buildFunctionHeader( |
| 225 constructor.parameters.map(converter.convertElement)); |
| 226 // Visit the body directly to avoid processing the signature as |
| 227 // expressions. |
| 228 // Call to allow for `body == null` in case of synthesized constructors. |
| 229 build(body); |
| 230 return irBuilder.makeConstructorDefinition(const [], const []); |
| 231 }); |
| 232 } |
| 233 <<< |
| 234 main() { |
| 235 return withBuilder( |
| 236 new DartIrBuilder( |
| 237 DART_CONSTANT_SYSTEM, |
| 238 element, |
| 239 // TODO(johnniwinther): Support closure variables. |
| 240 new Set<dart2js.Local>()), () { |
| 241 irBuilder.buildFunctionHeader( |
| 242 constructor.parameters.map(converter.convertElement)); |
| 243 // Visit the body directly to avoid processing the signature as |
| 244 // expressions. |
| 245 // Call to allow for `body == null` in case of synthesized constructors. |
| 246 build(body); |
| 247 return irBuilder.makeConstructorDefinition(const [], const []); |
| 248 }); |
189 } | 249 } |
OLD | NEW |