We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 449b13e + 01ab831 commit 2f0a285Copy full SHA for 2f0a285
lib/dartdoc.dart
@@ -182,8 +182,8 @@ class DartDoc {
182
if (name.startsWith(Platform.pathSeparator)) name = name.substring(1);
183
}
184
print('parsing ${name}...');
185
- JavaFile javaFile = new JavaFile(filePath);
186
- Source source = new FileBasedSource(new JavaFile(filePath));
+ JavaFile javaFile = new JavaFile(filePath).getAbsoluteFile();
+ Source source = new FileBasedSource(javaFile);
187
Uri uri = context.sourceFactory.restoreUri(source);
188
if (uri != null) {
189
source = new FileBasedSource(javaFile, uri);
0 commit comments