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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/source_io.dart

Issue 15675016: More fixes for java2dart and status files. (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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.source.io; 3 library engine.source.io;
4 import 'source.dart'; 4 import 'source.dart';
5 import 'dart:io'; 5 import 'dart:io';
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 import 'java_io.dart'; 7 import 'java_io.dart';
8 import 'sdk.dart' show DartSdk; 8 import 'sdk.dart' show DartSdk;
9 import 'engine.dart' show AnalysisContext, AnalysisEngine; 9 import 'engine.dart' show AnalysisContext, AnalysisEngine;
10 export 'source.dart'; 10 export 'source.dart';
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 try { 227 try {
228 pkgDir = pkgDir.getCanonicalFile(); 228 pkgDir = pkgDir.getCanonicalFile();
229 } on IOException catch (e) { 229 } on IOException catch (e) {
230 if (!e.toString().contains("Required key not available")) { 230 if (!e.toString().contains("Required key not available")) {
231 AnalysisEngine.instance.logger.logError2("Canonical failed: ${pkgDir}", e); 231 AnalysisEngine.instance.logger.logError2("Canonical failed: ${pkgDir}", e);
232 } else if (_CanLogRequiredKeyIoException) { 232 } else if (_CanLogRequiredKeyIoException) {
233 _CanLogRequiredKeyIoException = false; 233 _CanLogRequiredKeyIoException = false;
234 AnalysisEngine.instance.logger.logError2("Canonical failed: ${pkgDir}", e); 234 AnalysisEngine.instance.logger.logError2("Canonical failed: ${pkgDir}", e);
235 } 235 }
236 } 236 }
237 return new JavaFile.relative(pkgDir, relPath.replaceAll('/', JavaFile.separa torChar)); 237 return new JavaFile.relative(pkgDir, relPath.replaceAll('/', new String.from CharCode(JavaFile.separatorChar)));
238 } 238 }
239 } 239 }
240 /** 240 /**
241 * Instances of the class {@link DirectoryBasedSourceContainer} represent a sour ce container that 241 * Instances of the class {@link DirectoryBasedSourceContainer} represent a sour ce container that
242 * contains all sources within a given directory. 242 * contains all sources within a given directory.
243 * @coverage dart.engine.source 243 * @coverage dart.engine.source
244 */ 244 */
245 class DirectoryBasedSourceContainer implements SourceContainer { 245 class DirectoryBasedSourceContainer implements SourceContainer {
246 246
247 /** 247 /**
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 318 }
319 return null; 319 return null;
320 } 320 }
321 Source resolveAbsolute(ContentCache contentCache, Uri uri) { 321 Source resolveAbsolute(ContentCache contentCache, Uri uri) {
322 if (!isFileUri(uri)) { 322 if (!isFileUri(uri)) {
323 return null; 323 return null;
324 } 324 }
325 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri)); 325 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri));
326 } 326 }
327 } 327 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698