Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ts/a11y/explorer/KeyExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1835,8 +1835,9 @@ function parse(tokens: string[]): SexpTree {
*
* @param {SexpTree} tree The sexpression tree.
* @param {Map<string, Set<string>>} map The map to populate.
* @returns {Set<string>} The descendant map.
*/
function buildMap(tree: SexpTree, map: Map<string, Set<string>>) {
function buildMap(tree: SexpTree, map: Map<string, Set<string>>): Set<string> {
if (typeof tree === 'string') {
if (!map.has(tree)) map.set(tree, new Set());
return new Set();
Expand All @@ -1860,6 +1861,7 @@ function buildMap(tree: SexpTree, map: Map<string, Set<string>>) {
*
* @param {Set<string>} a Initial set.
* @param {Set<string>} b Set to remove from A.
* @returns {Set<string>} The difference A\B.
*/
function setdifference(a: Set<string>, b: Set<string>): Set<string> {
if (!a) {
Expand Down