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

Unified Diff: packages/petitparser/lib/src/reflection/transform.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
Index: packages/petitparser/lib/src/reflection/transform.dart
diff --git a/petitparser/lib/src/reflection/transform.dart b/packages/petitparser/lib/src/reflection/transform.dart
similarity index 59%
rename from petitparser/lib/src/reflection/transform.dart
rename to packages/petitparser/lib/src/reflection/transform.dart
index 7206ea444d1652b66e44b1914eaab41c655a71ce..8ee449f4654da9dbfa2df9d8fe9cd489e290410f 100644
--- a/petitparser/lib/src/reflection/transform.dart
+++ b/packages/petitparser/lib/src/reflection/transform.dart
@@ -1,18 +1,14 @@
-part of reflection;
+part of petitparser.reflection;
-/**
- * A function transforming one parser to another one.
- */
+/// A function transforming one parser to another one.
typedef Parser TransformationHandler(Parser parser);
-/**
- * Transforms all parsers reachable from [parser] with the given [handler].
- * The identity function returns a copy of the the incoming parser.
- *
- * The implementation first creates a copy of each parser reachable in the
- * input grammar; then the resulting grammar is traversed until all references
- * to old parsers are replaced with the transformed ones.
- */
+/// Transforms all parsers reachable from [parser] with the given [handler].
+/// The identity function returns a copy of the the incoming parser.
+///
+/// The implementation first creates a copy of each parser reachable in the
+/// input grammar; then the resulting grammar is traversed until all references
+/// to old parsers are replaced with the transformed ones.
Parser transformParser(Parser parser, TransformationHandler handler) {
var mapping = new Map.identity();
for (var each in allParser(parser)) {
« no previous file with comments | « packages/petitparser/lib/src/reflection/optimize.dart ('k') | packages/petitparser/lib/src/smalltalk/grammar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698