pub fn as_folder<V>(v: V) -> Folder<V> where
    V: VisitMut
Expand description

The returned folder only handles fold_script and fold_module, and typescript nodes are ignored. So if your visitor needs to handle typescript or low-level nodes, you should use as_folder instead.