node_modules/svelte2tsx/index.js
/**
 * Returns a set of all identifiers that were used in this condition
 */
Returns a set of all identifiers that were used in this condition
Returns a set of all identifiers that were used in this condition
function collectReferencedIdentifiers(condition) {
    const identifiers = new Set();
    let current = condition;
    while (current) {
        if (current.type === IfType.ElseIf || current.type === IfType.If) {
            for (const identifier of current.condition.identifiers.keys()) {
                identifiers.add(identifier);
            }
        }
        current =
            current.type === IfType.ElseIf || current.type === IfType.Else
                ? current.parent
                : undefined;
    }
    return identifiers;
}
function collectReferencedIdentifiers ( condition ) { const identifiers = new Set ( ) ; let current = condition ; while ( current ) { if ( current . type === IfType . ElseIf || current . type === IfType . If ) { for ( const identifier of current . condition . identifiers . keys ( ) ) { identifiers . add ( identifier ) ; } } current = current . type === IfType . ElseIf || current . type === IfType . Else ? current . parent : undefined ; } return identifiers ; }
Returns a set of all identifiers that were used in this condition
Returns a set of all identifiers that were used in this condition