Add iterator in PathSet for superset and subset combination

This commit is contained in:
Zaid Abdulla committed 2016-10-24 17:21:46 -07:00
1 parent f24e05b7b6
commit 15437361e1
1 file changed
+9
+9
View File
@@ -111,6 +111,15 @@ class PathSet {
}
*all(path, depth) {
var p = path.slice();
for (let i = 0; i < p.length; ++ i)
if (p[i] === '*')
p[i] = null;
yield* this.find(p, depth || 0, true);
}
*find(pattern, depth, wildcard) {
var sets = [];