Skip to content

api-digester: teach the tool to detect new mutating functions #5284

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 13 commits into from
Oct 14, 2016
Merged

api-digester: teach the tool to detect new mutating functions #5284

merged 13 commits into from
Oct 14, 2016

Conversation

nkcsgexi
Copy link
Contributor

A function changing from non-mutating to mutating can be source-breaking. This patch teaches api-digester to detect such changes. It also detects non-throwing functions now throw.

…tions.

Keywords like 'let' can serve as argument labels. When they do so, we should
highlight them as identifiers instead of keywords. However, the check for this
situation seems overly lenient so that when 'let', 'var' appear in conditions
of IfStmt or GuardStmt, they are wrongly highlighted as identifiers too. This
commit strengthens the checking to preserve keywords' identity in these statements.
@nkcsgexi
Copy link
Contributor Author

@swift-ci smoke test

@nkcsgexi
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 7bb2910
Test requested by - @nkcsgexi

@nkcsgexi
Copy link
Contributor Author

@swift-ci smoke test

1 similar comment
@nkcsgexi
Copy link
Contributor Author

@swift-ci smoke test

@nkcsgexi nkcsgexi merged commit edea597 into swiftlang:master Oct 14, 2016
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