-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add own wrappers for SyntaxTokens and Syntax Map #2955
Add own wrappers for SyntaxTokens and Syntax Map #2955
Conversation
Generated by 🚫 Danger |
dd32040
to
ebb8b5f
Compare
7dbe68f
to
d8c07d5
Compare
d8c07d5
to
61a6a27
Compare
Were you hoping that this would improve performance or is this for some other reason? |
I hoped that it would improve performance. But there's nothing apart from readability :) |
I, personally don't like the long names Still, since all of them were renamed, it can be a viable solution :)
|
Source/SwiftLintFramework/Extensions/Dictionary+SwiftLint.swift
Outdated
Show resolved
Hide resolved
Co-Authored-By: JP Simard <jp@jpsim.com>
What
This PR adds
SwiftLintSyntaxToken
andSwiftLintSyntaxMap
wrappers over the existingSyntaxToken
andSyntaxMap
structures.SwiftLintSyntaxToken
kind: SyntaxKind
propertySwiftLintSyntaxMap
tokens: [SwiftLintSyntaxToken]
Why