factor out parse_type_hint
support TNew in position/usage completion (closes #2995)