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

Unified Diff: lib/compiler/implementation/typechecker.dart

Issue 10115026: Address the remaining review comments on http://chromiumcodereview.appspot.com/9431029. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Break a long line. Created 8 years, 8 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: lib/compiler/implementation/typechecker.dart
diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
index c44326180dce5407de98ff00452b1a6f585a8dad..13478662c4f1c03d429f063ae4cb98d9c399bdcb 100644
--- a/lib/compiler/implementation/typechecker.dart
+++ b/lib/compiler/implementation/typechecker.dart
@@ -61,19 +61,20 @@ class StatementType implements Type {
}
class InterfaceType implements Type {
- final SourceString name;
final Element element;
final Link<Type> arguments;
- const InterfaceType(this.name, this.element,
+ const InterfaceType(name, this.element,
[this.arguments = const EmptyLink<Type>()]);
+ SourceString get name() => element.name;
+
toString() {
StringBuffer sb = new StringBuffer();
sb.add(name.slowToString());
if (!arguments.isEmpty()) {
sb.add('<');
- arguments.printOn(sb);
+ arguments.printOn(sb, ', ');
sb.add('>');
}
return sb.toString();
« lib/compiler/implementation/resolver.dart ('K') | « lib/compiler/implementation/ssa/tracer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698