Don't parse class body when searching for parameter tokens

Fixes #319
Merge pull request #320 from domcleal/319-param-body

Don't parse class body when searching for parameter tokens