mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user