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

Unified Diff: pkg/logging/logging.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/fixnum/int64.dart ('k') | pkg/unittest/html_enhanced_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/logging/logging.dart
diff --git a/pkg/logging/logging.dart b/pkg/logging/logging.dart
index 5b192d1d7363238cf384b31a1e6eff9707dc614c..3d90ad7e3fcb27036e216a1e75c503f898f6e672 100644
--- a/pkg/logging/logging.dart
+++ b/pkg/logging/logging.dart
@@ -31,7 +31,7 @@ class Logger {
final String name;
/** The full name of this logger, which includes the parent's full name. */
- String get fullName() =>
+ String get fullName =>
(parent == null || parent.name == '') ? name : '${parent.fullName}.$name';
/** Parent of this logger in the hierarchy of loggers. */
@@ -82,7 +82,7 @@ class Logger {
* Effective level considering the levels established in this logger's parents
* (when [hierarchicalLoggingEnabled] is true).
*/
- Level get level() {
+ Level get level {
if (hierarchicalLoggingEnabled) {
if (_level != null) return _level;
if (parent != null) return parent.level;
@@ -110,7 +110,7 @@ class Logger {
* instance:
* logger.on.record.add((record) { ... });
*/
- LoggerEvents get on() => new LoggerEvents(this);
+ LoggerEvents get on => new LoggerEvents(this);
/** Adds a handler to listen whenever a log record is added to this logger. */
void _addHandler(LoggerHandler handler) {
@@ -201,7 +201,7 @@ class Logger {
}
/** Top-level root [Logger]. */
- static get root() => new Logger('');
+ static get root => new Logger('');
/** All [Logger]s in the system. */
static Map<String, Logger> _loggers;
@@ -219,7 +219,7 @@ class LoggerEvents {
LoggerEvents(this._logger);
/** Event fired when a log record is added to a [Logger]. */
- LoggerHandlerList get record() => new LoggerHandlerList(_logger);
+ LoggerHandlerList get record => new LoggerHandlerList(_logger);
}
« no previous file with comments | « pkg/fixnum/int64.dart ('k') | pkg/unittest/html_enhanced_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698