Skip to content

[SwiftSyntax] Publicize DiagnosticEngine.addConsumer and add hasErrors property #14996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 6, 2018

Conversation

harlanhaskins
Copy link
Contributor

This patch adds a property, hasErrors, to determine if the DiagnosticEngine has registered any errors.

It also publicizes addConsumer so clients can add their own consumers.

@harlanhaskins harlanhaskins requested a review from nkcsgexi March 5, 2018 23:57
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins harlanhaskins merged commit d3f6b87 into swiftlang:master Mar 6, 2018
maldahleh pushed a commit to maldahleh/swift that referenced this pull request Oct 26, 2020
…s property (swiftlang#14996)

* [SwiftSyntax] Publicize DiagnosticEngine.addConsumer and add hasErrors property

* [Syntax] Make DiagnosticEngine.hasErrors public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants