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

Unified Diff: dart/lib/compiler/implementation/typechecker.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/tree/nodes.dart ('k') | dart/lib/compiler/implementation/universe.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/typechecker.dart
diff --git a/dart/lib/compiler/implementation/typechecker.dart b/dart/lib/compiler/implementation/typechecker.dart
index b01a79391b6938e9e1b5ef9f32ec0e889aa2d39d..b88fd9d86903c636a4c5a21bb6695e078c2c2391 100644
--- a/dart/lib/compiler/implementation/typechecker.dart
+++ b/dart/lib/compiler/implementation/typechecker.dart
@@ -4,7 +4,7 @@
class TypeCheckerTask extends CompilerTask {
TypeCheckerTask(Compiler compiler) : super(compiler);
- String get name() => "Type checker";
+ String get name => "Type checker";
static final bool LOG_FAILURES = false;
@@ -46,7 +46,7 @@ class TypeVariableType implements Type {
TypeVariableType(this.element);
- SourceString get name() => element.name;
+ SourceString get name => element.name;
Type unalias(Compiler compiler) => this;
@@ -58,9 +58,9 @@ class TypeVariableType implements Type {
*/
class StatementType implements Type {
final String stringName;
- Element get element() => null;
+ Element get element => null;
- SourceString get name() => new SourceString(stringName);
+ SourceString get name => new SourceString(stringName);
const StatementType(this.stringName);
@@ -80,7 +80,7 @@ class StatementType implements Type {
class VoidType implements Type {
const VoidType(this.element);
- SourceString get name() => element.name;
+ SourceString get name => element.name;
final VoidElement element;
Type unalias(Compiler compiler) => this;
@@ -95,7 +95,7 @@ class InterfaceType implements Type {
const InterfaceType(this.element,
[this.arguments = const EmptyLink<Type>()]);
- SourceString get name() => element.name;
+ SourceString get name => element.name;
Type unalias(Compiler compiler) => this;
@@ -130,7 +130,7 @@ class FunctionType implements Type {
return sb.toString();
}
- SourceString get name() => const SourceString('Function');
+ SourceString get name => const SourceString('Function');
int computeArity() {
int arity = 0;
@@ -153,7 +153,7 @@ class TypedefType implements Type {
const TypedefType(this.element,
[this.typeArguments = const EmptyLink<Type>()]);
- SourceString get name() => element.name;
+ SourceString get name => element.name;
Type unalias(Compiler compiler) {
// TODO(ahe): This should be [ensureResolved].
« no previous file with comments | « dart/lib/compiler/implementation/tree/nodes.dart ('k') | dart/lib/compiler/implementation/universe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698