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

Unified Diff: pkg/dartdoc/dartdoc.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dartdoc/block_parser.dart ('k') | pkg/dartdoc/dropdown.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/dartdoc.dart
diff --git a/pkg/dartdoc/dartdoc.dart b/pkg/dartdoc/dartdoc.dart
index f295db4e287cd966fa2d0b264386ae28b145f48c..346acba57d556563622dce91a4656058849adb3c 100644
--- a/pkg/dartdoc/dartdoc.dart
+++ b/pkg/dartdoc/dartdoc.dart
@@ -229,13 +229,13 @@ Usage dartdoc [options] <entrypoint(s)>
*/
// TODO(johnniwinther): Convert to final (lazily initialized) variables when
// the feature is supported.
-Path get scriptDir() =>
+Path get scriptDir =>
new Path.fromNative(new Options().script).directoryPath;
// TODO(johnniwinther): Trailing slashes matter due to the use of [libPath] as
// a base URI with [Uri.resolve].
/// Relative path to the library in which dart2js resides.
-Path get libPath() => IN_SDK
+Path get libPath => IN_SDK
? scriptDir.append('../../lib/dart2js/')
: scriptDir.append('../../');
@@ -451,7 +451,7 @@ class Dartdoc {
return false;
}
- String get footerContent(){
+ String get footerContent{
var footerItems = [];
if (!omitGenerationTime) {
footerItems.add("This page was generated at ${new Date.now()}");
@@ -623,7 +623,7 @@ class Dartdoc {
writeln('<div class="content">');
}
- String get clientScript() {
+ String get clientScript {
switch (mode) {
case MODE_STATIC: return 'client-static';
case MODE_LIVE_NAV: return 'client-live-nav';
@@ -704,10 +704,10 @@ class Dartdoc {
String dartString = jsonString.replaceAll(@"$", @"\$");
final filePath = tmpPath.append('nav.dart');
writeString(new File.fromPath(filePath),
- 'get json() => $dartString;');
+ 'get json => $dartString;');
}
- Path get tmpPath() => dartdocPath.append('tmp');
+ Path get tmpPath => dartdocPath.append('tmp');
void cleanup() {
final dir = new Directory.fromPath(tmpPath);
« no previous file with comments | « pkg/dartdoc/block_parser.dart ('k') | pkg/dartdoc/dropdown.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698