Inheritance: GlobNode
Exemplo n.º 1
0
 private static string ProcessSegment(PathSegment node)
 {
     switch (node.Type)
     {
         case GlobNodeType.Root:
             return ProcessRoot((Root)node);
         case GlobNodeType.DirectoryWildcard:
             return ProcessDirectoryWildcard((DirectoryWildcard)node);
         case GlobNodeType.PathSegment:
             return ProcessPathSegment(node);
         default:
             throw new InvalidOperationException();
     }
 }
Exemplo n.º 2
0
 private static string ProcessPathSegment(PathSegment node)
 {
     return string.Join("", node.SubSegments.Select(ProcessSubSegment));
 }