| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class TypeCheckerTask extends CompilerTask { | 5 class TypeCheckerTask extends CompilerTask { |
| 6 TypeCheckerTask(Compiler compiler) : super(compiler); | 6 TypeCheckerTask(Compiler compiler) : super(compiler); |
| 7 String get name() => "Type checker"; | 7 String get name() => "Type checker"; |
| 8 | 8 |
| 9 static final bool LOG_FAILURES = false; | 9 static final bool LOG_FAILURES = false; |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 String toString() => stringName; | 52 String toString() => stringName; |
| 53 } | 53 } |
| 54 | 54 |
| 55 class SimpleType implements Type { | 55 class SimpleType implements Type { |
| 56 final SourceString name; | 56 final SourceString name; |
| 57 final Element element; | 57 final Element element; |
| 58 | 58 |
| 59 const SimpleType(SourceString this.name, Element this.element); | 59 const SimpleType(SourceString this.name, Element this.element); |
| 60 | 60 |
| 61 String toString() => name.toString(); | 61 String toString() => name.slowToString(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 class FunctionType implements Type { | 64 class FunctionType implements Type { |
| 65 final Element element; | 65 final Element element; |
| 66 final Type returnType; | 66 final Type returnType; |
| 67 final Link<Type> parameterTypes; | 67 final Link<Type> parameterTypes; |
| 68 | 68 |
| 69 const FunctionType(Type this.returnType, Link<Type> this.parameterTypes, | 69 const FunctionType(Type this.returnType, Link<Type> this.parameterTypes, |
| 70 Element this.element); | 70 Element this.element); |
| 71 | 71 |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 } | 666 } |
| 667 | 667 |
| 668 visitCatchBlock(CatchBlock node) { | 668 visitCatchBlock(CatchBlock node) { |
| 669 compiler.unimplemented('visitCatchBlock', node: node); | 669 compiler.unimplemented('visitCatchBlock', node: node); |
| 670 } | 670 } |
| 671 | 671 |
| 672 visitTypedef(Typedef node) { | 672 visitTypedef(Typedef node) { |
| 673 compiler.unimplemented('visitTypedef', node: node); | 673 compiler.unimplemented('visitTypedef', node: node); |
| 674 } | 674 } |
| 675 } | 675 } |
| OLD | NEW |