mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-12 11:03:02 -05:00
TST#clear
This commit is contained in:
@@ -323,6 +323,10 @@ export class TernarySearchTree<E> {
|
||||
this._segments = segments;
|
||||
}
|
||||
|
||||
clear(): void {
|
||||
this._root = undefined;
|
||||
}
|
||||
|
||||
set(key: string, element: E): void {
|
||||
const segements = this._segments.reset(key);
|
||||
this._root = this._set(this._root, segements.next(), segements, element);
|
||||
|
||||
Reference in New Issue
Block a user