Don't parse class body when searching for parameter tokens

Fixes #319