| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 /** The entry point for the command-line version analyzer2dart. */ |
| 6 library analyzer2dart.cmdline; |
| 7 |
| 8 import 'package:analyzer/analyzer.dart'; |
| 9 import 'package:compiler/implementation/compiler.dart'; |
| 10 |
| 11 void main(List<String> args) { |
| 12 // TODO(brianwilkerson,paulberry): Run the analyzer `args[0]` and provide |
| 13 // access to the element model/ast of the `main` method. |
| 14 |
| 15 // TODO(brianwilkerson,paulberry,johnniwinther): Perform tree-growing by |
| 16 // visiting the ast and feeding the dependencies into a work queue (enqueuer). |
| 17 |
| 18 // TODO(brianwilkerson,paulberry,johnniwinther): Convert the ast into cps by |
| 19 // visiting the ast and invoking the ir builder. |
| 20 |
| 21 // TODO(johnniwinther): Convert the analyzer element model into the dart2js |
| 22 // element model to fit the needs of the cps encoding above. |
| 23 |
| 24 // TODO(johnniwinther): Feed the cps ir into the new dart2dart backend to |
| 25 // generate dart file(s). |
| 26 } |
| OLD | NEW |