```ruby
name = case n.type
when :def
# ...
```
was pointed out by `CaseIndentation`.