uber / mockolo

Efficient Mock Generator for Swift
Apache License 2.0
813 stars 86 forks source link

Use SwiftSyntax.TokenKind to determine a String is SwiftKeyword or not. #208

Closed sidepelican closed 1 year ago

sidepelican commented 1 year ago

extension is keyword of Swift, but it is not registered in String.SwiftKeywords so it doesn't be escaped.

In the new approach, use SwiftSyntax.TokenKind to determine a String is SwiftKeyword or not.