diff options
author | 2023-08-24 10:38:14 -0400 | |
---|---|---|
committer | 2023-08-24 10:38:14 -0400 | |
commit | f1c610636a7aeed0a272ab2669815135699b413c (patch) | |
tree | d7597c3468197559948f9fe2bafe13a8c3d71106 /packages/webapi/src/lib/TreeWalker.ts | |
parent | 608b2d732d762bf1f7f44a82b278caa8853c8c2f (diff) | |
parent | ebaccf8c1a2f37eacb6e1957c82fdf7f93b62b08 (diff) | |
download | astro-f1c610636a7aeed0a272ab2669815135699b413c.tar.gz astro-f1c610636a7aeed0a272ab2669815135699b413c.tar.zst astro-f1c610636a7aeed0a272ab2669815135699b413c.zip |
Merge pull request #8188 from withastro/next
Astro 3.0
Diffstat (limited to 'packages/webapi/src/lib/TreeWalker.ts')
-rw-r--r-- | packages/webapi/src/lib/TreeWalker.ts | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/packages/webapi/src/lib/TreeWalker.ts b/packages/webapi/src/lib/TreeWalker.ts deleted file mode 100644 index 423397022..000000000 --- a/packages/webapi/src/lib/TreeWalker.ts +++ /dev/null @@ -1,67 +0,0 @@ -import * as _ from './utils' - -export class TreeWalker { - parentNode(): Node | null { - return null - } - - firstChild(): Node | null { - return null - } - - lastChild(): Node | null { - return null - } - - previousSibling(): Node | null { - return null - } - - nextSibling(): Node | null { - return null - } - - previousNode(): Node | null { - return null - } - - nextNode(): Node | null { - return null - } - - get currentNode(): Node { - const internals = _.internalsOf<TreeWalkerInternals>( - this, - 'TreeWalker', - 'currentNode' - ) - return internals.currentNode - } - - get root(): Node { - const internals = _.internalsOf<TreeWalkerInternals>( - this, - 'TreeWalker', - 'root' - ) - return internals.root - } - - get whatToShow(): number { - const internals = _.internalsOf<TreeWalkerInternals>( - this, - 'TreeWalker', - 'whatToShow' - ) - return internals.whatToShow - } -} - -_.allowStringTag(TreeWalker) - -export interface TreeWalkerInternals { - filter: NodeFilter - currentNode: Node - root: Node - whatToShow: number -} |