Move implementations of ::accept out of AST.cpp.
Consts in SourceReferenceFormatter.