get refs inside control flow statements
more comprehensive way of getting defs (via parser, instead of jedi.api.defined_names())
refactor defs and refs into one function (so we can re-use parser for both)
delete old get_defs and get_refs