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

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

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 * **docgen** is a tool for creating machine readable representations of Dart 6 * **docgen** is a tool for creating machine readable representations of Dart
7 * code metadata, including: classes, members, comments and annotations. 7 * code metadata, including: classes, members, comments and annotations.
8 * 8 *
9 * docgen is run on a `.dart` file or a directory containing `.dart` files. 9 * docgen is run on a `.dart` file or a directory containing `.dart` files.
10 * 10 *
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 logger.info('SDK Root: ${sdkRoot}'); 191 logger.info('SDK Root: ${sdkRoot}');
192 return _analyzeLibraries(libraries, sdkRoot, packageRoot: packageRoot); 192 return _analyzeLibraries(libraries, sdkRoot, packageRoot: packageRoot);
193 } 193 }
194 194
195 /** 195 /**
196 * Analyzes set of libraries and provides a mirror system which can be used 196 * Analyzes set of libraries and provides a mirror system which can be used
197 * for static inspection of the source code. 197 * for static inspection of the source code.
198 */ 198 */
199 Future<MirrorSystem> _analyzeLibraries(List<String> libraries, 199 Future<MirrorSystem> _analyzeLibraries(List<String> libraries,
200 String libraryRoot, {String packageRoot}) { 200 String libraryRoot, {String packageRoot}) {
201 SourceFileProvider provider = new SourceFileProvider(); 201 SourceFileProvider provider = new CompilerSourceFileProvider();
202 api.DiagnosticHandler diagnosticHandler = 202 api.DiagnosticHandler diagnosticHandler =
203 new FormattingDiagnosticHandler(provider).diagnosticHandler; 203 new FormattingDiagnosticHandler(provider).diagnosticHandler;
204 Uri libraryUri = new Uri(scheme: 'file', path: appendSlash(libraryRoot)); 204 Uri libraryUri = new Uri(scheme: 'file', path: appendSlash(libraryRoot));
205 Uri packageUri = null; 205 Uri packageUri = null;
206 if (packageRoot != null) { 206 if (packageRoot != null) {
207 packageUri = new Uri(scheme: 'file', path: appendSlash(packageRoot)); 207 packageUri = new Uri(scheme: 'file', path: appendSlash(packageRoot));
208 } 208 }
209 List<Uri> librariesUri = <Uri>[]; 209 List<Uri> librariesUri = <Uri>[];
210 libraries.forEach((library) { 210 libraries.forEach((library) {
211 librariesUri.add(currentDirectory.resolve(library)); 211 librariesUri.add(currentDirectory.resolve(library));
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 String qualifiedName; 1173 String qualifiedName;
1174 List<String> parameters; 1174 List<String> parameters;
1175 1175
1176 Annotation(this.qualifiedName, this.parameters); 1176 Annotation(this.qualifiedName, this.parameters);
1177 1177
1178 Map toMap() => { 1178 Map toMap() => {
1179 'name': qualifiedName, 1179 'name': qualifiedName,
1180 'parameters': parameters 1180 'parameters': parameters
1181 }; 1181 };
1182 } 1182 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/compiler.dart » ('j') | sdk/lib/_internal/compiler/implementation/apiimpl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698