syntax: Parse outer attributes in quote_method!

Fixes #17782.