Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: frog/reader.dart

Issue 9705088: Generate API docs during build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix arg parsing. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 /** 5 /**
6 * An code reader that abstracts away the distinction between internal and user 6 * An code reader that abstracts away the distinction between internal and user
7 * libraries. 7 * libraries.
8 */ 8 */
9 class LibraryReader { 9 class LibraryReader {
10 Map _specialLibs; 10 Map _specialLibs;
11 LibraryReader() { 11 LibraryReader() {
12 if (options.config == 'dev') { 12 if (options.config == 'dev') {
13 _specialLibs = { 13 _specialLibs = {
14 'dart:core': joinPaths(options.libDir, 'corelib.dart'), 14 'dart:core': joinPaths(options.libDir, 'corelib.dart'),
15 'dart:coreimpl': joinPaths(options.libDir, 'corelib_impl.dart'), 15 'dart:coreimpl': joinPaths(options.libDir, 'corelib_impl.dart'),
16 'dart:html': joinPaths(options.libDir, 16 'dart:html': joinPaths(options.libDir,
17 '../../lib/html/frog/html_frog.dart'), 17 '../../lib/html/frog/html_frog.dart'),
18 'dart:dom': joinPaths(options.libDir, 18 'dart:dom': joinPaths(options.libDir,
19 '../../lib/dom/frog/dom_frog.dart'), 19 '../../lib/dom/frog/dom_frog.dart'),
20 'dart:json': joinPaths(options.libDir, '../../lib/json/json_frog.dart'), 20 'dart:json': joinPaths(options.libDir, '../../lib/json/json_frog.dart'),
21 'dart:io': joinPaths(options.libDir, '../leg/lib/io.dart'), 21 'dart:io': joinPaths(options.libDir,
22 '../../lib/compiler/implementation/lib/io.dart'),
22 'dart:isolate': joinPaths(options.libDir, 23 'dart:isolate': joinPaths(options.libDir,
23 '../../lib/isolate/isolate_frog.dart'), 24 '../../lib/isolate/isolate_frog.dart'),
24 'dart:uri': joinPaths(options.libDir, '../../lib/uri/uri.dart'), 25 'dart:uri': joinPaths(options.libDir, '../../lib/uri/uri.dart'),
25 'dart:utf': joinPaths(options.libDir, '../../lib/utf/utf.dart'), 26 'dart:utf': joinPaths(options.libDir, '../../lib/utf/utf.dart'),
26 }; 27 };
27 } else if (options.config == 'sdk') { 28 } else if (options.config == 'sdk') {
28 _specialLibs = { 29 _specialLibs = {
29 'dart:core': joinPaths(options.libDir, 'core/core_frog.dart'), 30 'dart:core': joinPaths(options.libDir, 'core/core_frog.dart'),
30 'dart:coreimpl': joinPaths(options.libDir, 31 'dart:coreimpl': joinPaths(options.libDir,
31 'coreimpl/coreimpl_frog.dart'), 32 'coreimpl/coreimpl_frog.dart'),
(...skipping 18 matching lines...) Expand all
50 51
51 if (world.files.fileExists(filename)) { 52 if (world.files.fileExists(filename)) {
52 // TODO(jimhug): Should we cache these based on time stamps here? 53 // TODO(jimhug): Should we cache these based on time stamps here?
53 return new SourceFile(filename, world.files.readAll(filename)); 54 return new SourceFile(filename, world.files.readAll(filename));
54 } else { 55 } else {
55 world.error('File not found: $filename', null); 56 world.error('File not found: $filename', null);
56 return new SourceFile(filename, ''); 57 return new SourceFile(filename, '');
57 } 58 }
58 } 59 }
59 } 60 }
OLDNEW
« no previous file with comments | « dart.gyp ('k') | lib/dartdoc/dartdoc.dart » ('j') | utils/apidoc/apidoc.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698