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

Unified Diff: packages/petitparser/lib/src/debug/progress.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/debug/profile.dart ('k') | packages/petitparser/lib/src/debug/trace.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/petitparser/lib/src/debug/progress.dart
diff --git a/packages/petitparser/lib/src/debug/progress.dart b/packages/petitparser/lib/src/debug/progress.dart
deleted file mode 100644
index 022e085fa5c611baba3610374e106dbf7400b63e..0000000000000000000000000000000000000000
--- a/packages/petitparser/lib/src/debug/progress.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-part of petitparser.debug;
-
-/// Returns a transformed [parser] that when being used to read input
-/// visually prints its progress while progressing.
-///
-/// For example, the snippet
-///
-/// var parser = letter() & word().star();
-/// progress(parser).parse('f123');
-///
-/// produces the following output:
-///
-/// * Instance of 'SequenceParser'
-/// * Instance of 'CharacterParser'[letter expected]
-/// ** Instance of 'PossessiveRepeatingParser'[0..*]
-/// ** Instance of 'CharacterParser'[letter or digit expected]
-/// *** Instance of 'CharacterParser'[letter or digit expected]
-/// **** Instance of 'CharacterParser'[letter or digit expected]
-/// ***** Instance of 'CharacterParser'[letter or digit expected]
-///
-/// Jumps backwards mean that the parser is back-tracking. Often choices can
-/// be reordered to such expensive parses.
-Parser progress(Parser parser, [OutputHandler output = print]) {
- return transformParser(parser, (each) {
- return new ContinuationParser(each, (continuation, context) {
- output('${_repeat(1 + context.position, '*')} $each');
- return continuation(context);
- });
- });
-}
« no previous file with comments | « packages/petitparser/lib/src/debug/profile.dart ('k') | packages/petitparser/lib/src/debug/trace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698