Last active
April 15, 2019 02:25
-
-
Save LucianoPAlmeida/b15f20b3005c3117dbef9dfd15fb1a71 to your computer and use it in GitHub Desktop.
SwiftSyntax SyntaxFactory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of creating a Any keyword. | |
SyntaxFactory.makeAnyKeyword() | |
// Example of creating a declaration modifier with a details also create with SyntaxFactory. | |
SyntaxFactory.makeBlankDeclModifier().withDetail( | |
SyntaxFactory.makeUnknown("").withLeadingTrivia(trivia) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment