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

Unified Diff: frog/leg/tree/unparser.dart

Issue 9616058: Implement parsing and resolving of type-variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 9 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: frog/leg/tree/unparser.dart
diff --git a/frog/leg/tree/unparser.dart b/frog/leg/tree/unparser.dart
index d4b12f148705a2cc0a9eca1e983088fcc518a6ab..803d68074b0cd0e722fe215b3c72104ba13ddb17 100644
--- a/frog/leg/tree/unparser.dart
+++ b/frog/leg/tree/unparser.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -212,6 +212,14 @@ class Unparser implements Visitor {
node.visitChildren(this);
}
+ visitTypeVariable(TypeVariable node) {
+ visit(node.name);
+ if (node.bound !== null) {
+ sb.add(' extends ');
+ visit(node.bound);
+ }
+ }
+
visitVariableDefinitions(VariableDefinitions node) {
if (node.type !== null) {
visit(node.type);

Powered by Google App Engine
This is Rietveld 408576698