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

Unified Diff: frog/leg/util/link_implementation.dart

Issue 8952006: Fix factories in Frog to correspond to the new syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | « frog/leg/util/link.dart ('k') | frog/member.dart » ('j') | frog/parser.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/util/link_implementation.dart
diff --git a/frog/leg/util/link_implementation.dart b/frog/leg/util/link_implementation.dart
index 9dce2c4b1eac7f7a8b2be30815980b56cff548f2..bc204b08aec3191557307bf86788ffb4844ca329 100644
--- a/frog/leg/util/link_implementation.dart
+++ b/frog/leg/util/link_implementation.dart
@@ -2,16 +2,15 @@
// 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.
-// TODO(ahe): This class should not be generic.
-class LinkFactory {
- factory Link<T>(T head, [Link<T> tail]) {
+class LinkFactory<T> {
+ factory Link(T head, [Link<T> tail]) {
if (tail === null) {
tail = new LinkTail<T>();
}
return new LinkEntry<T>(head, tail);
}
- factory Link<T>.fromList(List<T> list) {
+ factory Link.fromList(List<T> list) {
switch (list.length) {
case 0:
return new LinkTail<T>();
« no previous file with comments | « frog/leg/util/link.dart ('k') | frog/member.dart » ('j') | frog/parser.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698