'Is *name* a typedef-name in the current scope?'

def _is_type_in_scope(self, name):

    for scope in reversed(self._scope_stack):
        in_scope = scope.get(name)
        if (in_scope is not None):
            return in_scope
    return False
