Oh, I should have written like:
```ruby
name = case n.type
       when :def
       # ...
```