Skip to content

Commit b078e52

Browse files
authored
Merge pull request #503 from CodaFi/ids2
2 parents 545a5fd + 8493743 commit b078e52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftSyntax/Syntax.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ extension Syntax: CustomReflectable {
8181
}
8282
}
8383

84+
extension Syntax: Identifiable {
85+
public typealias ID = SyntaxIdentifier
86+
}
87+
8488
/// Protocol that provides a common Hashable implementation for all syntax nodes
8589
public protocol SyntaxHashable: Hashable {
8690
var _syntaxNode: Syntax { get }

0 commit comments

Comments
 (0)