Skip to main content

adapter_requires

Function adapter_requires 

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

#2255: the npm packages an adapter source file’s binding … requires { … } names, with the adapter’s declared name: None when the file isn’t an adapter with a binding. Recovery-parsed, so a file with an error elsewhere still yields its clause; the compile reports the error.