Skip to content

Remove isExpr etc. methods #173

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 1 commit into from
Nov 8, 2019
Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 7, 2019

The canonical way of checking if a syntax node is an expression is to use is(ExprSyntaxProtocol.self), so we remove the unnecessary methods.

We still need to keep the isCollection property since SyntaxCollection is a protocol with associated type requirements and thus cannot be used as a return type.

@ahoppen ahoppen force-pushed the remove-is-expr-etc branch from cb7aab2 to 9cee7c5 Compare November 7, 2019 22:31
The canonical way of checking this is to use is(ExprSyntaxProtocol.self)
@ahoppen
Copy link
Member Author

ahoppen commented Nov 7, 2019

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Nov 7, 2019

Build failed
Swift Test OS X Platform
Git Sha - d8844b7

@ahoppen
Copy link
Member Author

ahoppen commented Nov 8, 2019

swiftlang/swift-stress-tester#110

@swift-ci Please test

@ahoppen ahoppen merged commit d6cea7a into swiftlang:master Nov 8, 2019
@ahoppen ahoppen deleted the remove-is-expr-etc branch November 8, 2019 00:58
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
Remove calls to `FileHandle.synchronizeFile()`.
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.

4 participants