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

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

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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/lisp/grammar.dart ('k') | packages/petitparser/lib/src/lisp/natives.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/petitparser/lib/src/lisp/name.dart
diff --git a/petitparser/lib/src/lisp/name.dart b/packages/petitparser/lib/src/lisp/name.dart
similarity index 50%
rename from petitparser/lib/src/lisp/name.dart
rename to packages/petitparser/lib/src/lisp/name.dart
index c3046ab3cea71bd3bbcf3b665e82c5ff3fd22d2d..d07482aeb9aa4b035d78b4bc4196ac9bcaba3caf 100644
--- a/petitparser/lib/src/lisp/name.dart
+++ b/packages/petitparser/lib/src/lisp/name.dart
@@ -1,24 +1,22 @@
-part of lisp;
+part of petitparser.lisp;
-/**
- * An unique symbolic name.
- */
+/// An unique symbolic name.
class Name {
- /** The interned symbols. */
+ /// The interned symbols.
static final Map<String, Name> _interned = new HashMap();
- /** Factory for new symbol cells. */
+ /// Factory for new symbol cells.
factory Name(String name) {
return _interned.putIfAbsent(name, () => new Name._internal(name));
}
- /** The name of the symbol. */
+ /// The name of the symbol.
final String _name;
- /** Internal constructor for symbol. */
+ /// Internal constructor for symbol.
Name._internal(this._name);
- /** Returns the string representation of the symbolic name. */
+ /// Returns the string representation of the symbolic name.
String toString() => _name;
}
« no previous file with comments | « packages/petitparser/lib/src/lisp/grammar.dart ('k') | packages/petitparser/lib/src/lisp/natives.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698