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)) { |