Closed sidepelican closed 1 year ago
extension is keyword of Swift, but it is not registered in String.SwiftKeywords so it doesn't be escaped.
extension
String.SwiftKeywords
In the new approach, use SwiftSyntax.TokenKind to determine a String is SwiftKeyword or not.
SwiftSyntax.TokenKind
extension
is keyword of Swift, but it is not registered inString.SwiftKeywords
so it doesn't be escaped.In the new approach, use
SwiftSyntax.TokenKind
to determine a String is SwiftKeyword or not.