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

Unified Diff: third_party/pkg/route_hierarchical/lib/url_matcher.dart

Issue 1086713003: Remove everything but markdown from third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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: third_party/pkg/route_hierarchical/lib/url_matcher.dart
diff --git a/third_party/pkg/route_hierarchical/lib/url_matcher.dart b/third_party/pkg/route_hierarchical/lib/url_matcher.dart
deleted file mode 100644
index a3ca79d9c4151d6399f8196bc1def7b4b367a2cc..0000000000000000000000000000000000000000
--- a/third_party/pkg/route_hierarchical/lib/url_matcher.dart
+++ /dev/null
@@ -1,65 +0,0 @@
-library url_matcher;
-
-import 'src/utils.dart';
-
-/**
- * A reversible URL matcher interface.
- */
-abstract class UrlMatcher extends Comparable {
-
- /**
- * Attempts to match a given URL. If match is successul then returns an
- * instance or [UrlMatch], otherwise returns [null].
- */
- UrlMatch match(String url);
-
- /**
- * Reverses (reconstructs) a URL from optionally provided parameters map
- * and a tail.
- */
- String reverse({Map parameters, String tail});
-
- /**
- * Returns a list of named parameters in the URL.
- */
- List<String> urlParameterNames();
-
- /**
- * Return a value which is:
- * * negative if this matcher should be tested before another.
- * * zero if this matcher and another can be tested in no particular order.
- * * positive if this matcher should be tested after another.
- */
- int compareTo(UrlMatcher other) => 0;
-}
-
-/**
- * Object representing a successul URL match.
- */
-class UrlMatch {
-
- /// Matched section of the URL
- final String match;
-
- /// Remaining unmatched suffix
- final String tail;
-
- ///
- final Map parameters;
-
- UrlMatch(this.match, this.tail, this.parameters);
-
- bool operator ==(o) {
- if (!(o is UrlMatch)) {
- return false;
- }
- return o.match == match && o.tail == tail &&
- mapsShallowEqual(o.parameters, parameters);
- }
-
- int get hashCode => 13 + match.hashCode + tail.hashCode + parameters.hashCode;
-
- String toString() {
- return '{$match, $tail, $parameters}';
- }
-}
« no previous file with comments | « third_party/pkg/route_hierarchical/lib/src/utils.dart ('k') | third_party/pkg/route_hierarchical/lib/url_pattern.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698