Skip to main content

extract_exported_names

Function extract_exported_names 

Source
pub fn extract_exported_names(source: &str) -> Vec<String>
Expand description

Scans a snippet module for every name it exports, so a namespace import can be rebuilt as a plain object. export function, export async function, export class and export const|let|var all count.

§Arguments

  • &str - The snippet module source to scan.

§Returns

  • Vec<String> - Every exported name, in source order.