function* getReferences(names) {
            const globalScope = context.getScope()

            for (const name of names) {
                const variable = globalScope.set.get(name)

                if (variable && variable.defs.length === 0) {
                    yield* variable.references
                }
            }
        }
Gets the references of the specified global variables.

@param {string[]} names - Variable names to get.
@returns {void}