| Index: pkg/docgen/lib/docgen.dart
|
| diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
|
| index a31cf70ccd0ea2933c980e782998cd3e6f606a35..dd3c962b3ddb347296f929ad768a00139371d5d5 100644
|
| --- a/pkg/docgen/lib/docgen.dart
|
| +++ b/pkg/docgen/lib/docgen.dart
|
| @@ -226,7 +226,7 @@ Future<MirrorSystem> getMirrorSystem(List<String> args, {String packageRoot,
|
| if (libraries.isEmpty) throw new StateError('No Libraries.');
|
| // Finds the root of SDK library based off the location of docgen.
|
| var sdkRoot = path.join(path.dirname(path.dirname(path.dirname(path.dirname(
|
| - path.absolute(new Options().script))))), 'sdk');
|
| + path.absolute(Platform.script))))), 'sdk');
|
| logger.info('SDK Root: ${sdkRoot}');
|
| return _analyzeLibraries(libraries, sdkRoot, packageRoot: packageRoot);
|
| }
|
| @@ -451,7 +451,7 @@ void _mdnComment(Indexable item) {
|
| if (_mdn == null) {
|
| // Reading in MDN related json file.
|
| var mdnDir = path.join(path.dirname(path.dirname(path.dirname(path.dirname(
|
| - path.absolute(new Options().script))))), 'utils', 'apidoc', 'mdn');
|
| + path.absolute(Platform.script))))), 'utils', 'apidoc', 'mdn');
|
| _mdn = JSON.decode(new File(path.join(mdnDir, 'database.json'))
|
| .readAsStringSync());
|
| }
|
| @@ -1236,4 +1236,4 @@ class Annotation {
|
| 'name': qualifiedName,
|
| 'parameters': parameters
|
| };
|
| -}
|
| +}
|
|
|