| 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].
|
|
|