| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 /** | 5 /** |
| 6 * Generates the complete set of corelib reference documentation. | 6 * Generates the complete set of corelib reference documentation. |
| 7 */ | 7 */ |
| 8 #library('apidoc'); | 8 #library('apidoc'); |
| 9 | 9 |
| 10 #import('dart:json'); | 10 #import('dart:json'); |
| 11 #import('html_diff.dart'); | 11 #import('html_diff.dart'); |
| 12 #import('../../frog/lang.dart'); | 12 #import('../../frog/lang.dart'); |
| 13 #import('../../frog/file_system_node.dart'); | 13 #import('../../frog/file_system_vm.dart'); |
| 14 #import('../../frog/file_system.dart'); | 14 #import('../../frog/file_system.dart'); |
| 15 #import('../dartdoc/dartdoc.dart', prefix: 'doc'); | 15 #import('../dartdoc/dartdoc.dart', prefix: 'doc'); |
| 16 | 16 |
| 17 HtmlDiff _diff; | 17 HtmlDiff _diff; |
| 18 | 18 |
| 19 final GET_PREFIX = 'get:'; | 19 final GET_PREFIX = 'get:'; |
| 20 | 20 |
| 21 void main() { | 21 void main() { |
| 22 var files = new NodeFileSystem(); | 22 var files = new VMFileSystem(); |
| 23 parseOptions('../../frog', [] /* args */, files); | 23 parseOptions('../../frog', ['', '', '--libdir=../../frog/lib'], files); |
| 24 initializeWorld(files); | 24 initializeWorld(files); |
| 25 | 25 |
| 26 print('Parsing MDN data...'); | 26 print('Parsing MDN data...'); |
| 27 final mdn = JSON.parse(files.readAll('mdn/database.json')); | 27 final mdn = JSON.parse(files.readAll('mdn/database.json')); |
| 28 | 28 |
| 29 print('Cross-referencing dart:dom and dart:html...'); | 29 print('Cross-referencing dart:dom and dart:html...'); |
| 30 HtmlDiff.initialize(); | 30 HtmlDiff.initialize(); |
| 31 _diff = new HtmlDiff(); | 31 _diff = new HtmlDiff(); |
| 32 _diff.run(); | 32 _diff.run(); |
| 33 world.reset(); | 33 world.reset(); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 return | 383 return |
| 384 ''' | 384 ''' |
| 385 <p class="correspond">This corresponds to $domTypesText in the | 385 <p class="correspond">This corresponds to $domTypesText in the |
| 386 ${a("dom.html", "dart:dom")} library.</p> | 386 ${a("dom.html", "dart:dom")} library.</p> |
| 387 '''; | 387 '''; |
| 388 } | 388 } |
| 389 | 389 |
| 390 return ''; | 390 return ''; |
| 391 } | 391 } |
| 392 } | 392 } |
| OLD | NEW |