SwiftSyntax Parser: expose parser diagnostics via C API.

This allows SwiftSyntax to listen to emitted diagnostics during
parsing.

rdar://48439271
This commit is contained in:
Xi Ge
2019-02-27 18:06:01 -08:00
parent 22c61e4b94
commit a86f89da48
5 changed files with 322 additions and 11 deletions

View File

@@ -4,3 +4,11 @@ swiftparse_parser_dispose
swiftparse_parser_set_node_handler
swiftparse_parser_set_node_lookup
swiftparse_syntax_structure_versioning_identifier
swiftparse_parser_set_diagnostic_handler
swiftparse_diagnostic_get_message
swiftparse_diagnostic_get_fixit_count
swiftparse_diagnostic_get_fixit
swiftparse_diagnostic_get_range_count
swiftparse_diagnostic_get_range
swiftparse_diagnostic_get_severity
swiftparse_diagnostic_get_source_loc