* [SwiftSyntax] Add accessors for source locations and test diagnostic emission
* Add tests for endLocation
* Pre-emptively copy AbsolutePosition to avoid mutating it twice
This patch provides an API and Serialization for clang-style diagnostics
from within Swift. Libraries can use this API to pop their own custom
diagnostics that can be serialized to JSON.