Skip to content

Commit bddfeae

Browse files
authored
Merge pull request #550 from ahoppen/pr/tokenkind-hashable
Mark `TokenKind` as `Hashable`
2 parents 7a77898 + ba99a6a commit bddfeae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftSyntax/TokenKind.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//===----------------------------------------------------------------------===//
1919

2020
/// Enumerates the kinds of tokens in the Swift language.
21-
public enum TokenKind {
21+
public enum TokenKind: Hashable {
2222
case eof
2323
% for token in SYNTAX_TOKENS:
2424
% kind = token.swift_kind()

Sources/SwiftSyntax/gyb_generated/TokenKind.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
/// Enumerates the kinds of tokens in the Swift language.
16-
public enum TokenKind {
16+
public enum TokenKind: Hashable {
1717
case eof
1818
case associatedtypeKeyword
1919
case classKeyword

0 commit comments

Comments
 (0)