pub fn defined_symbols(source: &str) -> BTreeSet<String>Expand description
Names declared in source via a DECL_KEYWORDS keyword.
Scans token by token: every time a declaration keyword is seen as a whole
word, the next identifier token is recorded as a defined symbol. This catches
pub fn multiply(...), def is_even(n):, export function f(),
struct Foo, class Bar, etc. without a full parser.