pub fn shared_export_declarations(
path: &Path,
source: &str,
) -> Option<Vec<SharedExportDeclaration>>Expand description
The shared export declarations of the file at path.
A JavaScript or TypeScript file is parsed as a whole. A Vue or Svelte
file is parsed per inline <script> block and an Astro file per
frontmatter block. Each offset is an offset into source.
Returns None for another file type, or when a block does not parse
cleanly. The caller then does not know the names that a declaration
binds.