Add support for class member variable

supersedes #1417
Why can't you use parsePropertyDefinition here?