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

Unified Diff: packages/petitparser/lib/src/lisp/cons.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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
« no previous file with comments | « packages/petitparser/lib/src/json/parser.dart ('k') | packages/petitparser/lib/src/lisp/environment.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/petitparser/lib/src/lisp/cons.dart
diff --git a/packages/petitparser/lib/src/lisp/cons.dart b/packages/petitparser/lib/src/lisp/cons.dart
deleted file mode 100644
index e9fcae7a867559260b735f8560f254ad0a910193..0000000000000000000000000000000000000000
--- a/packages/petitparser/lib/src/lisp/cons.dart
+++ /dev/null
@@ -1,42 +0,0 @@
-part of petitparser.lisp;
-
-/// The basic data structure of LISP.
-class Cons {
-
- /// The head of the cons.
- dynamic head;
-
- /// The tail of the cons.
- dynamic tail;
-
- /// Constructs a cons.
- Cons(this.head, this.tail);
-
- @override
- bool operator ==(other) {
- return other is Cons && head == other.head && tail == other.tail;
- }
-
- @override
- int get hashCode => 31 * head.hashCode + tail.hashCode;
-
- @override
- String toString() {
- var buffer = new StringBuffer();
- buffer.write('(');
- var current = this;
- while (current is Cons) {
- buffer.write(current.head.toString());
- current = current.tail;
- if (current != null) {
- buffer.write(' ');
- }
- }
- if (current != null) {
- buffer.write('. ');
- buffer.write(current);
- }
- buffer.write(')');
- return buffer.toString();
- }
-}
« no previous file with comments | « packages/petitparser/lib/src/json/parser.dart ('k') | packages/petitparser/lib/src/lisp/environment.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698