pub fn export_containing(
source: &str,
kind: SourceKind,
span: (u32, u32),
) -> Option<String>Expand description
The name of the export whose declaration holds span, for example the
function of a mutant. A mutant in a nested function gives the export of
the outer function. default names a default export. A class or an
object literal that holds the function is not a function to call, so it
gives None.
The lookup reads the top-level statements only: an export declaration
(export function f, export const f = () => {}, export default), and
a local function or variable that an export { f as g } list without a
source exports. None when the source does not parse or no export holds
the span.