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

Side by Side Diff: pkg/docgen/lib/src/dart2js_mirrors.dart

Issue 16839004: Moved docgen out of the sdk into pkg/ (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 library dart2js_util; 5 library dart2js_util;
6 6
7 // TODO(tmandel): This is a temporary copy of the dart2js_mirrors.dart 7 // TODO(tmandel): This is a temporary copy of the dart2js_mirrors.dart
8 // file in the dartdoc folder. One of the two should be deleted 8 // file in the dartdoc folder. One of the two should be deleted
9 // when docgen can replace dartdoc. 9 // when docgen can replace dartdoc.
10 10
11 import 'dart:async' show Future; 11 import 'dart:async' show Future;
12 import 'dart:io' show Path; 12 import 'dart:io' show Path;
13 13
14 import '../../../compiler/compiler.dart' as api; 14 import '../../../../sdk/lib/_internal/compiler/compiler.dart' as api;
15 import '../../../compiler/implementation/mirrors/dart2js_mirror.dart' as dart2js 15 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mi rror.dart'
16 show analyze, Dart2JsMirrorSystem; 16 as dart2js show analyze, Dart2JsMirrorSystem;
17 import '../../../compiler/implementation/mirrors/mirrors.dart' 17 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.da rt'
18 show MirrorSystem; 18 show MirrorSystem;
19 import '../../../compiler/implementation/source_file_provider.dart' 19 import '../../../../sdk/lib/_internal/compiler/implementation/source_file_provid er.dart'
20 show FormattingDiagnosticHandler, SourceFileProvider; 20 show FormattingDiagnosticHandler, SourceFileProvider;
21 import '../../../compiler/implementation/filenames.dart' 21 import '../../../../sdk/lib/_internal/compiler/implementation/filenames.dart'
22 show appendSlash, currentDirectory; 22 show appendSlash, currentDirectory;
23 23
24 // TODO(johnniwinther): Support client configurable providers. 24 // TODO(johnniwinther): Support client configurable providers.
25 25
26 /** 26 /**
27 * Returns a future that completes to a non-null String when [script] 27 * Returns a future that completes to a non-null String when [script]
28 * has been successfully compiled. 28 * has been successfully compiled.
29 */ 29 */
30 // TODO(amouravski): Remove this method and call dart2js via a process instead. 30 // TODO(amouravski): Remove this method and call dart2js via a process instead.
31 Future<String> compile(Path script, 31 Future<String> compile(Path script,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 packageUri = currentDirectory.resolve(appendSlash('$packageRoot')); 68 packageUri = currentDirectory.resolve(appendSlash('$packageRoot'));
69 } 69 }
70 List<Uri> librariesUri = <Uri>[]; 70 List<Uri> librariesUri = <Uri>[];
71 for (Path library in libraries) { 71 for (Path library in libraries) {
72 librariesUri.add(currentDirectory.resolve(library.toString())); 72 librariesUri.add(currentDirectory.resolve(library.toString()));
73 } 73 }
74 return dart2js.analyze(librariesUri, libraryUri, packageUri, 74 return dart2js.analyze(librariesUri, libraryUri, packageUri,
75 provider.readStringFromUri, diagnosticHandler, 75 provider.readStringFromUri, diagnosticHandler,
76 options); 76 options);
77 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698