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

Unified Diff: dart/lib/compiler/implementation/compile_time_constants.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
« no previous file with comments | « dart/lib/compiler/implementation/code_buffer.dart ('k') | dart/lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/compile_time_constants.dart
diff --git a/dart/lib/compiler/implementation/compile_time_constants.dart b/dart/lib/compiler/implementation/compile_time_constants.dart
index d70bd83f3b5126ab021a1ee99ea2982f923a6bde..f2110bbd05a4b1ddc72766cfa5f3638d03c9e3ad 100644
--- a/dart/lib/compiler/implementation/compile_time_constants.dart
+++ b/dart/lib/compiler/implementation/compile_time_constants.dart
@@ -62,7 +62,7 @@ class NullConstant extends PrimitiveConstant {
factory NullConstant() => const NullConstant._internal();
const NullConstant._internal();
bool isNull() => true;
- get value() => null;
+ get value => null;
void _writeJsCode(CodeBuffer buffer, ConstantHandler handler) {
buffer.add(JsNull);
@@ -254,7 +254,7 @@ class StringConstant extends PrimitiveConstant {
int hashCode() => _hashCode;
DartString toDartString() => value;
- int get length() => value.length;
+ int get length => value.length;
}
class ObjectConstant extends Constant {
@@ -314,7 +314,7 @@ class ListConstant extends ObjectConstant {
List<Constant> getDependencies() => entries;
- int get length() => entries.length;
+ int get length => entries.length;
}
class MapConstant extends ObjectConstant {
@@ -427,7 +427,7 @@ class MapConstant extends ObjectConstant {
return result;
}
- int get length() => keys.length;
+ int get length => keys.length;
}
class ConstructedConstant extends ObjectConstant {
@@ -496,7 +496,7 @@ class ConstantHandler extends CompilerTask {
compiledConstants = new Map<Constant, String>(),
pendingVariables = new Set<VariableElement>(),
super(compiler);
- String get name() => 'ConstantHandler';
+ String get name => 'ConstantHandler';
void registerCompileTimeConstant(Constant constant) {
Function ifAbsentThunk = (() => compiler.namer.getFreshGlobalName("CTC"));
« no previous file with comments | « dart/lib/compiler/implementation/code_buffer.dart ('k') | dart/lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698