[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.
This commit is contained in:
Harlan
2017-12-12 15:55:22 -05:00
committed by GitHub
parent 28ca1610ff
commit 2cc756414b
9 changed files with 641 additions and 10 deletions

View File

@@ -14,6 +14,12 @@
import Foundation
#if os(macOS)
import Darwin
#elseif os(Linux)
import Glibc
#endif
/// A list of possible errors that could be encountered while parsing a
/// Syntax tree.
public enum ParserError: Error {