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

Unified Diff: dart/lib/compiler/implementation/universe.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/universe.dart
diff --git a/dart/lib/compiler/implementation/universe.dart b/dart/lib/compiler/implementation/universe.dart
index 942be4ab7b2e2d3f6eb0cc25dd281a9b4381eef9..0e8fdf2eb93077eed95223448a29f318758e3392 100644
--- a/dart/lib/compiler/implementation/universe.dart
+++ b/dart/lib/compiler/implementation/universe.dart
@@ -168,9 +168,9 @@ class Selector implements Hashable {
=> operatorName(const SourceString('[]='), false);
int hashCode() => argumentCount + 1000 * namedArguments.length;
- int get namedArgumentCount() => namedArguments.length;
- int get positionalArgumentCount() => argumentCount - namedArgumentCount;
- Type get receiverType() => null;
+ int get namedArgumentCount => namedArguments.length;
+ int get positionalArgumentCount => argumentCount - namedArgumentCount;
+ Type get receiverType => null;
bool applies(Element element, Compiler compiler) {
if (element.isSetter()) return isSetter();
@@ -361,7 +361,7 @@ class TypedSelector extends Selector {
// A closure can be called through any typed selector:
// class A {
- // get foo() => () => 42;
+ // get foo => () => 42;
// bar() => foo(); // The call to 'foo' is a typed selector.
// }
ClassElement other = element.getEnclosingClass();
« no previous file with comments | « dart/lib/compiler/implementation/typechecker.dart ('k') | dart/lib/compiler/implementation/util/link_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698