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

Unified Diff: dart/lib/compiler/implementation/compiler.dart

Issue 10876008: Remove most superfluous getter arguments from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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
Index: dart/lib/compiler/implementation/compiler.dart
diff --git a/dart/lib/compiler/implementation/compiler.dart b/dart/lib/compiler/implementation/compiler.dart
index 2a9ea4687a167511ca197463d1223ea53e700c68..e17e661538d1e27f260fd11c35ca130b636c82b6 100644
--- a/dart/lib/compiler/implementation/compiler.dart
+++ b/dart/lib/compiler/implementation/compiler.dart
@@ -104,7 +104,7 @@ class Compiler implements DiagnosticListener {
*/
ClassElement jsIndexingBehaviorInterface;
- Element get currentElement() => _currentElement;
+ Element get currentElement => _currentElement;
withCurrentElement(Element element, f()) {
Element old = currentElement;
_currentElement = element;
@@ -192,8 +192,8 @@ class Compiler implements DiagnosticListener {
tasks.addAll(backend.tasks);
}
- Universe get resolverWorld() => enqueuer.resolution.universe;
- Universe get codegenWorld() => enqueuer.codegen.universe;
+ Universe get resolverWorld => enqueuer.resolution.universe;
+ Universe get codegenWorld => enqueuer.codegen.universe;
int getNextFreeClassId() => nextFreeClassId++;
@@ -826,7 +826,7 @@ class Compiler implements DiagnosticListener {
unimplemented('Compiler.readScript');
}
- String get legDirectory() {
+ String get legDirectory {
unimplemented('Compiler.legDirectory');
}
@@ -835,7 +835,7 @@ class Compiler implements DiagnosticListener {
Element findInterceptor(SourceString name)
=> interceptorsLibrary.findLocal(name);
- bool get isMockCompilation() => false;
+ bool get isMockCompilation => false;
}
class CompilerTask {
@@ -844,8 +844,8 @@ class CompilerTask {
CompilerTask(this.compiler) : watch = new Stopwatch();
- String get name() => 'Unknown task';
- int get timing() => watch.elapsedInMs();
+ String get name => 'Unknown task';
+ int get timing => watch.elapsedInMs();
measure(Function action) {
// TODO(kasperl): Do we have to worry about exceptions here?

Powered by Google App Engine
This is Rietveld 408576698