| 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 #library('mirrors.dart2js'); | 5 #library('mirrors.dart2js'); |
| 6 | 6 |
| 7 #import('../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); | 7 #import('../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); |
| 8 #import('../../../lib/compiler/implementation/elements/elements.dart'); | 8 #import('../../../lib/compiler/implementation/elements/elements.dart'); |
| 9 #import('../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api'); | 9 #import('../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api'); |
| 10 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); | 10 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 library.localMembers.forEach((element) { | 239 library.localMembers.forEach((element) { |
| 240 world.addToWorkList(element); | 240 world.addToWorkList(element); |
| 241 }); | 241 }); |
| 242 } | 242 } |
| 243 progress.reset(); | 243 progress.reset(); |
| 244 world.forEach((WorkItem work) { | 244 world.forEach((WorkItem work) { |
| 245 withCurrentElement(work.element, () => work.run(this, world)); | 245 withCurrentElement(work.element, () => work.run(this, world)); |
| 246 }); | 246 }); |
| 247 //world.queueIsClosed = true; | 247 //world.queueIsClosed = true; |
| 248 assert(world.checkNoEnqueuedInvokedInstanceMethods()); | 248 assert(world.checkNoEnqueuedInvokedInstanceMethods()); |
| 249 world.registerFieldClosureInvocations(); | |
| 250 } | 249 } |
| 251 | 250 |
| 252 String codegen(WorkItem work, Enqueuer world) { | 251 String codegen(WorkItem work, Enqueuer world) { |
| 253 return null; | 252 return null; |
| 254 } | 253 } |
| 255 } | 254 } |
| 256 | 255 |
| 257 // TODO(johnniwinther): The source for the apidoc includes calls to methods on | 256 // TODO(johnniwinther): The source for the apidoc includes calls to methods on |
| 258 // for instance [MathPrimitives] which are not resolved by dart2js. Since we | 257 // for instance [MathPrimitives] which are not resolved by dart2js. Since we |
| 259 // do not need to analyse the body of functions to produce the documenation | 258 // do not need to analyse the body of functions to produce the documenation |
| (...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 if (node !== null) { | 1354 if (node !== null) { |
| 1356 var span = system.compiler.spanFromNode(node, script.uri); | 1355 var span = system.compiler.spanFromNode(node, script.uri); |
| 1357 return new Dart2JsLocation(script, span); | 1356 return new Dart2JsLocation(script, span); |
| 1358 } else { | 1357 } else { |
| 1359 var span = system.compiler.spanFromElement(_variable); | 1358 var span = system.compiler.spanFromElement(_variable); |
| 1360 return new Dart2JsLocation(script, span); | 1359 return new Dart2JsLocation(script, span); |
| 1361 } | 1360 } |
| 1362 } | 1361 } |
| 1363 } | 1362 } |
| 1364 | 1363 |
| OLD | NEW |