(PUP-3274) Remove unused support for associating doc with ast
In 3x it was possible to associate documentation extracted by the lexer
with the produced ast. Different ast elements could do this in a
declarative way. This is not supported in 4x, and the now unused
methods and supporting classes can be removed