class RuboCop::Cop::VariableForce::Scope
def belong_to_inner_scope?(target_node)
def belong_to_inner_scope?(target_node) return false if target_node.parent.equal?(node) return false unless SCOPE_TYPES.include?(target_node.parent.type) indices = OUTER_SCOPE_CHILD_INDICES[target_node.parent.type] return true unless indices !indices.include?(target_node.sibling_index) end