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

Unified Diff: utils/apidoc/mdn/extract.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 | « tests/utils/dummy.dart ('k') | utils/apidoc/mdn/util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/mdn/extract.dart
diff --git a/utils/apidoc/mdn/extract.dart b/utils/apidoc/mdn/extract.dart
index 979604ce6b3ce627af987ecf9494a513a574d2c2..7fd39b7e37f7cac14b1a6bfe9394b5b1d8a12914 100644
--- a/utils/apidoc/mdn/extract.dart
+++ b/utils/apidoc/mdn/extract.dart
@@ -229,11 +229,11 @@ final domTypesRaw = const [
Map dbEntry;
-Map get dartIdl() => data['dartIdl'];
-String get currentType() => data['type'];
+Map get dartIdl => data['dartIdl'];
+String get currentType => data['type'];
String _currentTypeShort;
-String get currentTypeShort() {
+String get currentTypeShort {
if (_currentTypeShort == null) {
_currentTypeShort = currentType;
_currentTypeShort = trimPrefix(_currentTypeShort, "HTML");
@@ -246,7 +246,7 @@ String get currentTypeShort() {
}
String _currentTypeTiny;
-String get currentTypeTiny() {
+String get currentTypeTiny {
if (_currentTypeTiny == null) {
_currentTypeTiny = currentTypeShort;
_currentTypeTiny = trimEnd(_currentTypeTiny, "Element");
@@ -254,18 +254,18 @@ String get currentTypeTiny() {
return _currentTypeTiny;
}
-Map get searchResult() => data['searchResult'];
-String get pageUrl() => searchResult['link'];
+Map get searchResult => data['searchResult'];
+String get pageUrl => searchResult['link'];
String _pageDomain;
-String get pageDomain() {
+String get pageDomain {
if (_pageDomain == null) {
_pageDomain = pageUrl.substring(0, pageUrl.indexOf("/", "https://".length));
}
return _pageDomain;
}
-String get pageDir() {
+String get pageDir {
return pageUrl.substring(0, pageUrl.lastIndexOf('/') + 1);
}
« no previous file with comments | « tests/utils/dummy.dart ('k') | utils/apidoc/mdn/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698