Commit Graph

5 Commits

Author SHA1 Message Date
Xi Ge
de34be29b2 SwiftSyntax: bridging absolute location with diagnostics location. (#15434)
We have two similar objects for source location. AbsoluteLocation
calculates the offset of a syntax node on the fly. SourceLocation is
designed to serialize a Swift syntax diagnostics to the driver. The only
difference is AbsoluteLocation doesn't contain source file name however
SourceLocation does. This patch bridges them by making AbsoluteLocation
a private member of SourceLocation. We also expect Swift syntax to
be file-name agnostic. The clients should keep track of the file name
when emitting diagnostics.
2018-03-23 15:36:22 -07:00
Slava Pestov
162187c4fe Revert "SwiftSyntax: Fix resilient build"
This reverts commit bbb21c84ca.
2018-01-17 21:02:09 -08:00
Harlan
a0512cd48a re-enable SwiftSyntax tests (#13399) 2017-12-14 23:39:16 -05:00
Slava Pestov
bbb21c84ca SwiftSyntax: Fix resilient build
Address-only types do not support multiple case labels yet.
2017-12-12 21:10:59 -08:00
Harlan
2cc756414b [SwiftSyntax] Swift Diagnostics API (#11511)
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.
2017-12-12 15:55:22 -05:00