Skip to main content

declared_here

Function declared_here 

Source
pub fn declared_here<'d>(decl: &'d Declaration, name: &str) -> Option<Node<'d>>
Expand description

The declaration of name at this file’s top level, exported or not.

Both spellings, because a chain ends at whichever one the declaring file used: export declare class Big {} and declare class Big {} + export default Big name the same thing, and a walk that reached only through export_statement would find the first and lose the second.